![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.
Dependencies: mbed FXOS8700CQ mbed-rtos
Diff: Game_two/YouTube_files/YouTube.cpp
- Revision:
- 26:c60becf3f840
- Parent:
- 19:903d67bb0dea
- Child:
- 33:f7ec806e14b6
--- a/Game_two/YouTube_files/YouTube.cpp Mon Apr 29 20:59:49 2019 +0000 +++ b/Game_two/YouTube_files/YouTube.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 = -30; + _x = -32; _y = 12; _velocity.x = speed * 2; _velocity.y = speed; } else if (position == 1) { _x = 20; - _y = -9; + _y = -11; _velocity.x = speed * 2; _velocity.y = speed *2; } else if (position == 2) { _x = 60; - _y = -9; + _y = -11; _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 = -30; + _x = -32; _y = 30; _velocity.x = speed * 3; _velocity.y = -speed *2;