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:
Sun Apr 21 23:23:35 2019 +0000
Revision:
10:1a3499f6b583
Parent:
Entity.cpp@7:4aaa37a711a1
Child:
11:63e54f6e7939
Added entity_collision, Added start of Bullets,; ; Problems:; Headless can be inside player without detected by entity_collision if on the same y level

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17sm 7:4aaa37a711a1 1 #include "Entity.h"
el17sm 7:4aaa37a711a1 2
el17sm 7:4aaa37a711a1 3 // constructors
el17sm 7:4aaa37a711a1 4
el17sm 7:4aaa37a711a1 5
el17sm 7:4aaa37a711a1 6 // accessors
el17sm 7:4aaa37a711a1 7 bool Entity::get_moving(){return moving;}
el17sm 10:1a3499f6b583 8 int Entity::get_hitbox_width(){return hitbox.width;}
el17sm 10:1a3499f6b583 9 int Entity::get_hitbox_height(){return hitbox.height;}
el17sm 7:4aaa37a711a1 10 int Entity::get_face(){return face;}
el17sm 7:4aaa37a711a1 11 int Entity::get_sprite_width(){return sprite_size.width;}
el17sm 7:4aaa37a711a1 12 int Entity::get_sprite_height(){return sprite_size.height;}
el17sm 7:4aaa37a711a1 13 int Entity::get_offset_x(){return sprite_size.offset_x;}
el17sm 7:4aaa37a711a1 14 int Entity::get_offset_y(){return sprite_size.offset_y;}
el17sm 7:4aaa37a711a1 15 int Entity::get_pos_x(){return position.x;}
el17sm 7:4aaa37a711a1 16 int Entity::get_pos_y(){return position.y;}