Recently released https://crates.io/crates/pipe-gpt and soon I will return to Game-Of-Life. Follow on X and Twitch for rust related content.
craigmayhew / game-of-life Goto Github PK
View Code? Open in Web Editor NEWGame of Life, in 3D, using Bevy
Game of Life, in 3D, using Bevy
Recently released https://crates.io/crates/pipe-gpt and soon I will return to Game-Of-Life. Follow on X and Twitch for rust related content.
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.
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);
}
This appears to be a known issue being worked on in Amethyst
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).
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.
Hill's tetrahedron should be considered for their tessellation in 3D space http://maths.ac-noumea.nc/polyhedr/Hill_.htm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.