Game designed for project

Dependencies:   mbed Gamepad2

Committer:
vaib
Date:
Tue May 19 09:51:13 2020 +0000
Revision:
2:e67ca889c81b
The game I planned to make is based heavily on the game Breakout. The main elements of the game include the paddle at the bottom of the screen a ball and blocks that need to be destroyed. I am currently creating a class for the paddle

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vaib 2:e67ca889c81b 1 #ifndef PADDLECONTROL_H
vaib 2:e67ca889c81b 2 #define PADDLECONTROL_H
vaib 2:e67ca889c81b 3
vaib 2:e67ca889c81b 4 #include "mbed.h"
vaib 2:e67ca889c81b 5 #include "N5110.h"
vaib 2:e67ca889c81b 6 #include "Gamepad.h"
vaib 2:e67ca889c81b 7
vaib 2:e67ca889c81b 8
vaib 2:e67ca889c81b 9 class PaddleControl
vaib 2:e67ca889c81b 10 {
vaib 2:e67ca889c81b 11 public:
vaib 2:e67ca889c81b 12
vaib 2:e67ca889c81b 13 void init(int y,int length,int height);
vaib 2:e67ca889c81b 14 void print_lcd(N5110 &lcd);
vaib 2:e67ca889c81b 15 void setsize(int length. int height);
vaib 2:e67ca889c81b 16 void setspeed();
vaib 2:e67ca889c81b 17 void update(char direction);
vaib 2:e67ca889c81b 18 Vector 2D position();
vaib 2:e67ca889c81b 19
vaib 2:e67ca889c81b 20
vaib 2:e67ca889c81b 21 private:
vaib 2:e67ca889c81b 22
vaib 2:e67ca889c81b 23
vaib 2:e67ca889c81b 24
vaib 2:e67ca889c81b 25 };
vaib 2:e67ca889c81b 26 #endif