Mercurial > touhou
comparison src/th06/ecl_vm.rs @ 721:bbf0da7de481
ecl_vm: work on laevateinn
author | Gauvain "GovanifY" Roussel-Tarbouriech <gauvain@govanify.com> |
---|---|
date | Mon, 28 Oct 2019 19:52:06 +0100 |
parents | cffb0f1531fc |
children | e71ea8214ee2 |
comparison
equal
deleted
inserted
replaced
720:cffb0f1531fc | 721:bbf0da7de481 |
---|---|
986 let mut enemy = self.enemy.borrow_mut(); | 986 let mut enemy = self.enemy.borrow_mut(); |
987 let pos = [rand_x * range_x + enemy.pos.x as f64 - range_x / 2., | 987 let pos = [rand_x * range_x + enemy.pos.x as f64 - range_x / 2., |
988 rand_y * range_y + enemy.pos.x as f64 - range_y / 2.]; | 988 rand_y * range_y + enemy.pos.x as f64 - range_y / 2.]; |
989 enemy.bullet_attributes.fire(); | 989 enemy.bullet_attributes.fire(); |
990 } | 990 } |
991 14 => { // Lävatein | |
992 let mut enemy = self.enemy.borrow_mut(); | |
993 self.frame.ints1[3] = 0; | |
994 for laser in enemy.laser_by_id.values() { | |
995 //for pos in laser.get_bullets_pos(){ | |
996 //TODO: the game checks for laser end_offset before firing | |
997 // enemy.fire(launch_pos=pos); | |
998 //} | |
999 self.frame.ints1[3] += 1; | |
1000 } | |
1001 } | |
991 16 => { // QED: Ripples of 495 years | 1002 16 => { // QED: Ripples of 495 years |
992 let mut enemy = self.enemy.borrow_mut(); | 1003 let mut enemy = self.enemy.borrow_mut(); |
993 let game = enemy.game.upgrade().unwrap(); | 1004 let game = enemy.game.upgrade().unwrap(); |
994 let mut game = game.borrow_mut(); | 1005 let mut game = game.borrow_mut(); |
995 if arg == 0 { | 1006 if arg == 0 { |