(&mut self, app: &mut App)
| 126 | } |
| 127 | |
| 128 | fn draw(&mut self, app: &mut App) { |
| 129 | app.gfx.clear(&app.window, Color::rgb(0.392, 0.584, 0.929)); |
| 130 | |
| 131 | for bunny in &self.bunnies { |
| 132 | self.batch |
| 133 | .texture(&self.texture, bunny.position, DrawParams::new()); |
| 134 | } |
| 135 | |
| 136 | self.batch.draw(&app.window); |
| 137 | } |
| 138 | } |