comparison src/th06/enemy.rs @ 692:a35df65e0d57

ecl_vm: stub PlaySound.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2019 14:09:39 +0200
parents eecb8626f472
children 14fddc27e6f5
comparison
equal deleted inserted replaced
691:f5d85a646975 692:a35df65e0d57
357 if self.bullet_launch_interval > 0 { 357 if self.bullet_launch_interval > 0 {
358 self.bullet_launch_timer = rand_start % self.bullet_launch_interval; 358 self.bullet_launch_timer = rand_start % self.bullet_launch_interval;
359 } 359 }
360 } 360 }
361 361
362 /// Stubbed for now.
363 pub(crate) fn play_sound(&self, sound_index: i32) {
364 println!("Playing sound {}!", sound_index);
365 }
366
362 /// Run all interpolators and such, and update internal variables once per 367 /// Run all interpolators and such, and update internal variables once per
363 /// frame. 368 /// frame.
364 pub fn update(&mut self) { 369 pub fn update(&mut self) {
365 let Position { mut x, mut y } = self.pos; 370 let Position { mut x, mut y } = self.pos;
366 371