Mercurial > touhou
comparison examples/eclrenderer.rs @ 670:cdb484115c5b
Use the requested rank in eclrenderer.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 12 Aug 2019 15:10:39 +0200 |
parents | 965ecdbf0316 |
children | ac092b70c39a |
comparison
equal
deleted
inserted
replaced
669:1bb8b34dbd32 | 670:cdb484115c5b |
---|---|
123 | 123 |
124 // TODO: seed this PRNG with a valid seed. | 124 // TODO: seed this PRNG with a valid seed. |
125 let prng = Rc::new(RefCell::new(Prng::new(0))); | 125 let prng = Rc::new(RefCell::new(Prng::new(0))); |
126 | 126 |
127 // Create the Game god object. | 127 // Create the Game god object. |
128 let game = Game::new(prng, Rank::Normal); | 128 let game = Game::new(prng, rank); |
129 let game = Rc::new(RefCell::new(game)); | 129 let game = Rc::new(RefCell::new(game)); |
130 | 130 |
131 // And the enemy object. | 131 // And the enemy object. |
132 let enemy = Enemy::new(Position::new(0., 0.), 500, 0, 640, Rc::downgrade(&anm0), Rc::downgrade(&game)); | 132 let enemy = Enemy::new(Position::new(0., 0.), 500, 0, 640, Rc::downgrade(&anm0), Rc::downgrade(&game)); |
133 let mut ecl_runner = EclRunner::new(&ecl, enemy.clone(), sub); | 133 let mut ecl_runner = EclRunner::new(&ecl, enemy.clone(), sub); |