Skip to content

flipscholtz/rust_bubbles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust bubbles

A simple game: Catch numbered bubbles with your ship to make up a target sum.

Uses the ggez game engine for rendering and input handling.

Running

cargo run

Settings

constants.rs contains various settings related to the difficulty and appearance of the game, although there are still some magic numbers dotted about the code.

Code

  • All game state lives in the GameState struct ( structs.rs ).
  • Game logic lives in GameState implementation ( game.rs ).
  • Game state is rendered to screen by renderer.rs .

On every tick, ggez calls 'update' followed by 'draw', both on GameState's implementation of EventHandler.

Known issues

Nothing is rendered with the latest version of ggez. Downgrading to 0.8.5 fixes it. ggez/ggez#1185

About

A simple game written in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages