Giter Club home page Giter Club logo

micropolis-rs's People

Contributors

pierreyoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

liamoc

micropolis-rs's Issues

Front: Basic TileMapRenderer

๐Ÿ’„ Basic TileMapRenderer

The current TileMapRenderer has positioning and display bugs:

image

Fix them so that it works properly on a randomly generated basic TileMap (basic in the sense that no back-end meta is truly available, just a 2D array of numbers effectively).

Core: MapGenerator conformity pass

๐Ÿ› Core: MapGenerator Pass

Crash

thread 'main' panicked at 'MapGenerator.plop_big_river set tile error: "MapGenerator.set_tile map X overflow"', micropolis_core/src/map/generator.rs:548:22

First investigation: we use a real RNG instead of the original C++ PNRG. This may cause some issues. If this is not the cause, check the conformity of all logic code.

Conformity

Check that all lines are the proper equivalent of the C++ code.

Improvements

Fix clippy warnings. Improve idiomatic code wherever possible and easy to do so.

What's the status?

Hi, I'm the author of the Micro Entertainment Pack a collection of games written in Rust using my tesserae tile graphics library.

I was thinking it would be super cool to write a port of micropolis using an interface from my library, and I found that you seem to have already ported it to Rust!

What's the status of this project? Would I be able to take the micropolis_core crate, add an interface and have the full simcity experience? Or is there still more work to be done?

Core+WASM: Provide a public and fully-fledged CityBuilder to the WASM interface

Following the builder pattern, provide a new CityBuilder facility accessible from the WASM interface.

Proposed interface

let mut city_generator = CityGeneratorBuilder::new()
    .set_map_generator_options(/* ... */)
    .set_simulation_rng_seed(123456)
    .build()?;
let map1 = city_generator.build_random_map(1234)?;
let map2 = city_generator.build_random_map(4567)?;
let city = city_generator.generate(GameLevelDifficulty::Normal, map1)?;

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.