ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Committer:
el19tb
Date:
Mon Apr 13 17:08:55 2020 +0000
Revision:
2:86cef2afa648
Child:
3:648c9d5001be
created a grid system for the game; created a chicken object that moves ; worked a little on the menu;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el19tb 2:86cef2afa648 1 #ifndef CROSSYCHICKEN_H
el19tb 2:86cef2afa648 2 #define CROSSYCHICKEN_H
el19tb 2:86cef2afa648 3 #include "mbed.h"
el19tb 2:86cef2afa648 4 #include "N5110.h"
el19tb 2:86cef2afa648 5 #include "Gamepad.h"
el19tb 2:86cef2afa648 6
el19tb 2:86cef2afa648 7 struct Input{
el19tb 2:86cef2afa648 8 //UP,
el19tb 2:86cef2afa648 9 //DOWN,
el19tb 2:86cef2afa648 10 //LEFT,
el19tb 2:86cef2afa648 11 //RIGHT
el19tb 2:86cef2afa648 12 };
el19tb 2:86cef2afa648 13
el19tb 2:86cef2afa648 14 class CrossyChicken {
el19tb 2:86cef2afa648 15 public:
el19tb 2:86cef2afa648 16 void start();
el19tb 2:86cef2afa648 17 void input();
el19tb 2:86cef2afa648 18 void process_input();
el19tb 2:86cef2afa648 19 void clear();
el19tb 2:86cef2afa648 20
el19tb 2:86cef2afa648 21 void game();
el19tb 2:86cef2afa648 22 void refresh();
el19tb 2:86cef2afa648 23 N5110 lcd;
el19tb 2:86cef2afa648 24
el19tb 2:86cef2afa648 25 };
el19tb 2:86cef2afa648 26
el19tb 2:86cef2afa648 27
el19tb 2:86cef2afa648 28 #endif
el19tb 2:86cef2afa648 29
el19tb 2:86cef2afa648 30
el19tb 2:86cef2afa648 31