Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
CrossyChicken/CrossyChicken.h
- Committer:
- el19tb
- Date:
- 2020-05-13
- Revision:
- 13:cd6d2f999057
- Parent:
- 11:cc5861abfca5
- Child:
- 15:b15bf9357cd9
File content as of revision 13:cd6d2f999057:
#ifndef CROSSYCHICKEN_H #define CROSSYCHICKEN_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Chicken.h" #include "Car.h" #include "Level.h" #include "Vehicle.h" #include <vector> struct Input{ //UP, //DOWN, //LEFT, //RIGHT }; class CrossyChicken { public: Level *local_level; CrossyChicken(Level *level); public: void start(); void input(); void process_input(); void clear(); void game(); void refresh(); void moveChicken(int xWay, int yWay); void moveCar(Car *car, int dir, int x); void move(); void setup(); void setCollision(Car* object); void frogOnLog(Car* car); bool returnCollision(Car* log); private: }; #endif