Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Bullet/Bullet.cpp
- Revision:
- 24:67dc71a8f009
- Parent:
- 23:9be87557b89a
- Child:
- 29:15e9640646b7
diff -r 9be87557b89a -r 67dc71a8f009 Bullet/Bullet.cpp
--- a/Bullet/Bullet.cpp Wed May 08 08:46:11 2019 +0000
+++ b/Bullet/Bullet.cpp Wed May 08 14:24:53 2019 +0000
@@ -6,7 +6,7 @@
void Bullet::init(float dood_pos_x, float dood_pos_y){
_radius = 1;
- _position_x = dood_pos_x + 15; // initially in same position as doodler's trunk
+ _position_x = dood_pos_x + 12;
_position_y = dood_pos_y + 4;
}
@@ -17,7 +17,7 @@
void Bullet::update(float dood_pos_x, float dood_pos_y){
_position_y -= 3;
if (_position_y < 9){ // reached end of screen
- _position_x = dood_pos_x + 15;
+ _position_x = dood_pos_x + 12;
_position_y = dood_pos_y + 4;
}
}