Mercurial > touhou
comparison examples/anmrenderer.rs @ 656:988e5130fb00
Add a simpler Sprite::new() which doesn’t override width/height.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 09 Aug 2019 01:03:43 +0200 |
parents | 967627181a76 |
children | 6be3320a1cb3 |
comparison
equal
deleted
inserted
replaced
655:6b4d2b405442 | 656:988e5130fb00 |
---|---|
107 eprintln!("This anm0 doesn’t contain a script named {}.", script); | 107 eprintln!("This anm0 doesn’t contain a script named {}.", script); |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |
111 // Create the sprite. | 111 // Create the sprite. |
112 let sprite = Rc::new(RefCell::new(Sprite::new(0., 0.))); | 112 let sprite = Rc::new(RefCell::new(Sprite::new())); |
113 | 113 |
114 // TODO: seed this PRNG with a valid seed. | 114 // TODO: seed this PRNG with a valid seed. |
115 let prng = Rc::new(RefCell::new(Prng::new(0))); | 115 let prng = Rc::new(RefCell::new(Prng::new(0))); |
116 | 116 |
117 // Create the AnmRunner from the ANM and the sprite. | 117 // Create the AnmRunner from the ANM and the sprite. |