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/Headless/Headless.h
- Revision:
- 22:7abf4581bc9b
- Parent:
- 16:ddb203a74dfc
- Child:
- 23:5a8f75e93508
diff -r 3c030560e31d -r 7abf4581bc9b Entity/Headless/Headless.h
--- a/Entity/Headless/Headless.h Thu Apr 25 03:32:36 2019 +0000
+++ b/Entity/Headless/Headless.h Thu Apr 25 05:53:30 2019 +0000
@@ -2,20 +2,22 @@
#define HEADLESS_H
#include "Entity.h"
-class Headless : public Entity {
-
- public:
+class Headless : public Entity
+{
+
+public:
// Constructor
Headless(float, float);
-
+
// Functions
virtual void move(float, float);
virtual int * get_frame();
-
+
};
const int sprite_headless[4][4][9][6] = { // Player [Face][SpriteAnimationFrame][Size_Y][Size_X]
- { // Up
+ {
+ // Up
{
{0,0,0,0,0,0,},
{1,0,0,0,0,0,},
@@ -61,7 +63,8 @@
{0,1,0,0,0,0,}
}
},
- { // Right
+ {
+ // Right
{
{0,0,0,0,0,0,},
{0,0,1,0,0,0,},
@@ -107,7 +110,8 @@
{0,1,0,0,0,1,}
}
},
- { // Down
+ {
+ // Down
{
{0,0,0,0,0,0,},
{1,0,0,0,0,0,},
@@ -153,7 +157,8 @@
{0,1,0,0,0,0,}
}
},
- { // Left
+ {
+ // Left
{
{0,0,0,0,0,0,},
{0,0,0,1,0,0,},