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

Dependencies:   mbed MotionSensor

Entity/Bosses/Skull/Skull.cpp

Committer:
el17sm
Date:
2019-05-06
Revision:
34:1d5b4da3935e
Parent:
33:4f3948dcd2f7
Child:
36:92d131695e7c

File content as of revision 34:1d5b4da3935e:

#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, char * map, bool * doorways)
{
    
}

void Skull::draw(N5110 &lcd)
{
    
}

void Skull::take_damage(int damage)
{
    
}