Code Monkey home page Code Monkey logo

civ-sim's Introduction

This (currently, still nameless) project is going to be a simulator for tribes / peoples moving around a procedurally generated map and generally interacting with each other. This idea was something I wanted to do for a while, but was heavily influenced by a YouTube Shorts video I saw on Hunnic migrations!

This is also very much a Rust study project; before this, I had never dealt with image generation, noise functions or multithreading, and I expect to deal with other concepts moving forward.

This idea is based on two modules of sorts - a map generator, which I am currently working on, and the simulator itself, which will use a randomly generated map.

Status

As of March 2024, I am still simply generating noise-based maps, without any advanced image processing techniques. I did begin using nannou in order to facilitate outputting an image to screen, whereas before I saved each generated image instead of displaying it.

'Example map in 1920x1080'

Currently I plan on converting the code to run via WebGPU, in order to facilitate faster iterations, then adding other features such as rivers. This noise-based approach is still just a study path, however, as I intend to use other methods to generate realistic, planet-spanning terrain.

How to Use

If you want to try the project in its current shabby form, you'll need Rust installed on your machine. The project itself can be run directly with cargo run, which will use default values, but you can specify a bunch of stuff with command line arguments (courtesy of the clap crate!). You can do cargo run -- --help to see what arguments are available so far. I haven't tested the code on anything other than x86-64 Linux, however.

civ-sim's People

Contributors

taernsietr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.