Giter Site home page Giter Site logo

game-of-life's Introduction

game-of-life's People

Contributors

craigmayhew avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

luvnft

game-of-life's Issues

bug: flickering when paused

There is evidence of a bug that needs investigating. When paused the game is flickering between render states.

paused-flicker

Optimization: Deliberate u8 overflow for universe size 256x256x256x6

Currently we have an if statement for every rule, checking if we are at the edge of the universe. This could be avoided if we have a deliberate overflow without an index out of range error. This would be possible for a universe of size 256x256x256 using a u8.

This is twice as big as our performant universes that top out at about 140^3 and so may need other performance improvements first before it is possible.

Add music to the game

At some point we may have a soundtrack. Here is some code for that.

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_startup_system(setup)
        .run();
}

fn setup(asset_server: Res<AssetServer>, audio: Res<Audio>) {
    let music = asset_server.load("sounds/Windless soundtrack.ogg");
    audio.play(music);
}

Optimization: Have 6 correctly rotated/positioned obj files

This reduces LOC, removes the need for several if statements, and a rotating transform in systems::life::create_life_xyz(). It would also remove the need to know which of the 6 tetras are being placed and so reduces function arguments to (x,y,z) from (n,x,y,z).

Config files need to be present or an obscure error is displayed

Currently several ron files need to exist in a config directory within the game of life.

If those files or the whooe config directory is missing, the game errors out with "The system cannot find the path specified".

Either improve the error message so it says how to fix it, or fix the production version to come with these files.

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.