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 FXOS8700CQ mbed-rtos
Diff: Game_two/Insta_files/Insta.cpp
- Revision:
- 26:c60becf3f840
- Parent:
- 19:903d67bb0dea
--- a/Game_two/Insta_files/Insta.cpp Mon Apr 29 20:59:49 2019 +0000
+++ b/Game_two/Insta_files/Insta.cpp Tue Apr 30 09:40:35 2019 +0000
@@ -16,42 +16,42 @@
// 8 possibilities. Get random modulo and set velocities and position accordingly
if (position == 0) {
- _x = -9;
+ _x = -12;
_y = 12;
_velocity.x = speed * 2;
_velocity.y = speed;
} else if (position == 1) {
_x = 20;
- _y = -9;
+ _y = -12;
_velocity.x = speed * 2;
_velocity.y = speed *2;
} else if (position == 2) {
_x = 60;
- _y = -9;
+ _y = -12;
_velocity.x = -speed * 2;
_velocity.y = speed *2;
} else if (position == 3) {
- _x = 83;
+ _x = 84;
_y = 14;
_velocity.x = -speed * 3;
_velocity.y = speed;
} else if (position == 4) {
- _x = 83;
+ _x = 84;
_y = 35;
_velocity.x = -speed * 3;
_velocity.y = -speed *2;
} else if (position == 5) {
_x = 60;
- _y = 47;
+ _y = 48;
_velocity.x = -speed * 2;
_velocity.y = -speed *2;
} else if (position == 6) {
_x = 20;
- _y = 47;
+ _y = 48;
_velocity.x = speed * 2;
_velocity.y = -speed *2;
} else if (position == 7) {
- _x = -9;
+ _x = -12;
_y = 30;
_velocity.x = speed * 3;
_velocity.y = -speed *2;