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 MotionSensor
Diff: Entity/Mobs/Snake/Snake.cpp
- Revision:
- 44:cc4cecfc639f
- Parent:
- 37:a404860171a9
- Child:
- 51:4d0cd75e7ed3
--- a/Entity/Mobs/Snake/Snake.cpp Tue May 07 20:57:44 2019 +0000
+++ b/Entity/Mobs/Snake/Snake.cpp Tue May 07 23:53:29 2019 +0000
@@ -73,13 +73,13 @@
// Movement
if (face == 0) {
- position.y += velocity;
+ position.y -= velocity;
update_hitbox(4, 7, 6, 12, -1, -6, 6);
} else if (face == 1) {
position.x += velocity;
update_hitbox(7, 4, 12, 7, -6, -4, 4);
} else if (face == 2) {
- position.y -= velocity;
+ position.y += velocity;
update_hitbox(4, 7, 6, 12, -1, -5, 6);
} else if (face == 3) {
position.x -= velocity;