Wannabe RPG which failed because of some problem with planning
Dependencies: Charachters N5110 Obstacles mbed
main.cpp
- Committer:
- el15lm
- Date:
- 2017-05-04
- Revision:
- 1:e555e1af2f99
- Parent:
- 0:111e3e4bea66
File content as of revision 1:e555e1af2f99:
#include "mbed.h" #include "Gamepad.h" #include "N5110.h" #include "Camera.h" #include "ActionRPGEngine.h" /////////////// objects /////////////// N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Gamepad pad; RPGengine engine; ///////////// prototypes /////////////// void init(); ///////////// functions //////////////// int main() { init(); while (1) { lcd.clear(); engine.readInput(pad); engine.update(); engine.draw(lcd); engine.playerCollisionDetector(lcd); engine.draw(lcd); wait(0.25); } } void init() { lcd.init(); pad.init(); engine.init(6, 0, 10, 13, 1, N, 0, 0, 48, 84, 84, 80, 150); }