Files

  • Not Found
  • Invalid object requested. SHA must identify a commit or a tree.
Last update 1 year 1 week by fabiosouza
Filessoftwaredoom-nano
..
images
.gitattributes
.gitignore
README.md
constants.h
display.h
doom-nano.ino
entities.cpp
entities.h
input.cpp
input.h
level.h
sprites.h
types.cpp
types.h
entities.cpp
#include <stdint.h> #include "entities.h" #include "types.h" #include "constants.h" Entity create_entity(uint8_t type, uint8_t x, uint8_t y, uint8_t initialState, uint8_t initialHealth) { UID uid = create_uid(type, x, y); Coords pos = create_coords((double) x + .5, (double) y + .5); Entity new_entity = { uid, pos, initialState, initialHealth, 0, 0 }; return new_entity; } StaticEntity crate_static_entity(UID uid, uint8_t x, uint8_t y, bool active) { return { uid, x, y, active }; }
Report a bug