Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Revision:
44:cc4cecfc639f
Parent:
37:a404860171a9
Child:
51:4d0cd75e7ed3
diff -r 63f5c9d9689c -r cc4cecfc639f Entity/Mobs/Snake/Snake.cpp
--- 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;