Mercurial > touhou
diff examples/eclrenderer.rs @ 664:f08e8e3c6196
Use bitflags for the rank, instead of an u16.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 11 Aug 2019 19:55:45 +0200 |
parents | 107bb5ca5cc8 |
children | 965ecdbf0316 |
line wrap: on
line diff
--- a/examples/eclrenderer.rs +++ b/examples/eclrenderer.rs @@ -12,7 +12,7 @@ use luminance_glfw::event::{Action, Key, use luminance_glfw::surface::{GlfwSurface, Surface, WindowDim, WindowOpt}; use touhou::th06::anm0::Anm0; use touhou::th06::anm0_vm::{Sprite, Vertex as FakeVertex}; -use touhou::th06::ecl::Ecl; +use touhou::th06::ecl::{Ecl, Rank}; use touhou::th06::ecl_vm::EclRunner; use touhou::th06::enemy::{Enemy, Game, Position}; use touhou::util::math::{perspective, setup_camera}; @@ -124,7 +124,7 @@ fn main() { let prng = Rc::new(RefCell::new(Prng::new(0))); // Create the Game god object. - let game = Game::new(prng); + let game = Game::new(prng, Rank::Normal); let game = Rc::new(RefCell::new(game)); // And the enemy object.