comparison src/th06/enemy.rs @ 728:414f8611f344

ecl: Add support for bullet sounds, instruction 84.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 30 Oct 2019 16:27:43 +0100
parents c187e0a6b751
children b9928db975e1
comparison
equal deleted inserted replaced
727:eea03c9ca604 728:414f8611f344
207 pub(crate) bullets_per_shot: i16, 207 pub(crate) bullets_per_shot: i16,
208 pub(crate) number_of_shots: i16, 208 pub(crate) number_of_shots: i16,
209 pub(crate) bullet_type: i16, 209 pub(crate) bullet_type: i16,
210 // zero: x32, 210 // zero: x32,
211 pub(crate) flags: u32, 211 pub(crate) flags: u32,
212 pub(crate) ins84_param: i32, 212
213 /// Which sound to play when the bullet gets fired.
214 pub sound: Option<u8>,
213 } 215 }
214 216
215 impl BulletAttributes { 217 impl BulletAttributes {
216 /// Fire! 218 /// Fire!
217 pub fn fire(&mut self) { 219 pub fn fire(&mut self) {