comparison src/th06/enemy.rs @ 690:eecb8626f472

ecl_vm: implement SetBulletLaunchOffset.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2019 14:04:59 +0200
parents 482d81f50a11
children a35df65e0d57
comparison
equal deleted inserted replaced
689:482d81f50a11 690:eecb8626f472
17 } 17 }
18 18
19 /// An offset which can be added to a Position. 19 /// An offset which can be added to a Position.
20 #[derive(Debug, Clone, Copy, Default, PartialEq)] 20 #[derive(Debug, Clone, Copy, Default, PartialEq)]
21 pub struct Offset { 21 pub struct Offset {
22 dx: f32, 22 pub(crate) dx: f32,
23 dy: f32, 23 pub(crate) dy: f32,
24 } 24 }
25 25
26 impl Position { 26 impl Position {
27 /// Create said position. 27 /// Create said position.
28 pub fn new(x: f32, y: f32) -> Position { 28 pub fn new(x: f32, y: f32) -> Position {