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/Bosses/Skull/Skull.h
- Revision:
- 36:92d131695e7c
- Parent:
- 34:1d5b4da3935e
- Child:
- 38:09832e662803
- Child:
- 56:ef9521b7ed78
--- a/Entity/Bosses/Skull/Skull.h Mon May 06 20:05:14 2019 +0000
+++ b/Entity/Bosses/Skull/Skull.h Tue May 07 01:11:07 2019 +0000
@@ -1,8 +1,19 @@
#ifndef SKULL_H
#define SKULL_H
#include "Entity.h"
+#define DASH_DELAY 120
class Skull : public Entity {
+private:
+ // Member Variables
+ SpriteSize _shadow;
+ bool _dash;
+ int _dash_counter;
+ int _velocity_index;
+
+ // Member Functions
+ void increment_frames();
+ void update_offsets();
public:
// Constructor
@@ -14,58 +25,219 @@
virtual void draw(N5110 &lcd);
};
-const char skull_sprite[2][23][21] = //skull_sprite[mouthclose/mouthopen][Size_Y][Size_X]
+const float skull_velocity_pattern[7] = {0, 0, 0, 0.8, 1.6, 2};
+
+const char skull_sprite[4][2][23][21] = //skull_sprite[Face][mouthclose/mouthopen][Size_Y][Size_X]
{
- {
- {0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0},
- {0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
- {0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0},
- {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
- {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0},
- {0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0},
- {0,1,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,0,0,1,0},
- {1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,1},
- {1,0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