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

Dependencies:   mbed MotionSensor

Committer:
el17sm
Date:
Mon May 06 13:58:39 2019 +0000
Revision:
34:1d5b4da3935e
Parent:
33:4f3948dcd2f7
Child:
36:92d131695e7c
Char conversion complete;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17sm 33:4f3948dcd2f7 1 #include "Skull.h"
el17sm 33:4f3948dcd2f7 2 Skull::Skull(float pos_x, float pos_y)
el17sm 33:4f3948dcd2f7 3 {
el17sm 33:4f3948dcd2f7 4 hp = 5;
el17sm 33:4f3948dcd2f7 5 attack = 1;
el17sm 33:4f3948dcd2f7 6
el17sm 33:4f3948dcd2f7 7 moving = false;
el17sm 33:4f3948dcd2f7 8 hitbox.width = 0;
el17sm 33:4f3948dcd2f7 9 hitbox.height = 0;
el17sm 33:4f3948dcd2f7 10
el17sm 33:4f3948dcd2f7 11 sprite_size.width = 0;
el17sm 33:4f3948dcd2f7 12 sprite_size.height = 0;
el17sm 33:4f3948dcd2f7 13 sprite_size.offset_x = 0;
el17sm 33:4f3948dcd2f7 14 sprite_size.offset_y = 0;
el17sm 33:4f3948dcd2f7 15
el17sm 33:4f3948dcd2f7 16 position.x = 31;
el17sm 33:4f3948dcd2f7 17 position.y = 12;
el17sm 33:4f3948dcd2f7 18 update_prev_pos();
el17sm 33:4f3948dcd2f7 19
el17sm 33:4f3948dcd2f7 20 frame.count = 0;
el17sm 33:4f3948dcd2f7 21 frame.number = 0;
el17sm 33:4f3948dcd2f7 22 frame.max = 4;
el17sm 33:4f3948dcd2f7 23 face = 0;
el17sm 33:4f3948dcd2f7 24
el17sm 33:4f3948dcd2f7 25 velocity = 0.1;
el17sm 33:4f3948dcd2f7 26 _damage_self_upon_collision = false;
el17sm 33:4f3948dcd2f7 27 _hp_drop_chance = 30;
el17sm 33:4f3948dcd2f7 28 }
el17sm 33:4f3948dcd2f7 29
el17sm 34:1d5b4da3935e 30 void Skull::move(float player_x, float player_y, char * map, bool * doorways)
el17sm 33:4f3948dcd2f7 31 {
el17sm 33:4f3948dcd2f7 32
el17sm 33:4f3948dcd2f7 33 }
el17sm 33:4f3948dcd2f7 34
el17sm 33:4f3948dcd2f7 35 void Skull::draw(N5110 &lcd)
el17sm 33:4f3948dcd2f7 36 {
el17sm 33:4f3948dcd2f7 37
el17sm 33:4f3948dcd2f7 38 }
el17sm 33:4f3948dcd2f7 39
el17sm 33:4f3948dcd2f7 40 void Skull::take_damage(int damage)
el17sm 33:4f3948dcd2f7 41 {
el17sm 33:4f3948dcd2f7 42
el17sm 33:4f3948dcd2f7 43 }