A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.

Dependencies:   mbed MotionSensor

Revision:
33:4f3948dcd2f7
Parent:
32:fe6359ef9916
Child:
34:1d5b4da3935e
--- a/Entity/Bosses/Skull/Skull.cpp	Mon May 06 08:56:48 2019 +0000
+++ b/Entity/Bosses/Skull/Skull.cpp	Mon May 06 13:27:26 2019 +0000
@@ -1,2 +1,43 @@
-//#include "Skull.h"
-//
+#include "Skull.h"
+Skull::Skull(float pos_x, float pos_y)
+{
+    hp = 5;
+    attack = 1;
+    
+    moving = false;
+    hitbox.width = 0;
+    hitbox.height = 0;
+    
+    sprite_size.width = 0;
+    sprite_size.height = 0;
+    sprite_size.offset_x = 0;
+    sprite_size.offset_y = 0;
+    
+    position.x = 31;
+    position.y = 12;
+    update_prev_pos();
+    
+    frame.count = 0;
+    frame.number = 0;
+    frame.max = 4;
+    face = 0;
+    
+    velocity = 0.1;
+    _damage_self_upon_collision = false;
+    _hp_drop_chance = 30;
+}
+
+void Skull::move(float player_x, float player_y, int * map, bool * doorways)
+{
+    
+}
+
+void Skull::draw(N5110 &lcd)
+{
+    
+}
+
+void Skull::take_damage(int damage)
+{
+    
+}
\ No newline at end of file