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: N5110 mbed PowerControl
Diff: GameScreen.h
- Revision:
- 8:ebddb721f1ee
- Parent:
- 6:b1c54f8b28fe
- Child:
- 10:d8ef8633bd98
diff -r 1bcd54606f34 -r ebddb721f1ee GameScreen.h
--- a/GameScreen.h Tue Mar 10 03:07:11 2015 +0000
+++ b/GameScreen.h Tue Mar 10 21:17:58 2015 +0000
@@ -36,17 +36,17 @@
explicit GameScreen(PinName pwrPin, PinName scePin, PinName rstPin, PinName dcPin, PinName mosiPin, PinName sclkPin, PinName ledPin)
:N5110(pwrPin, scePin,rstPin,dcPin,mosiPin,sclkPin,ledPin) {} //classes needed are private...dont want to steal code so we'll just inheret constructor aswell :)
- void Initialize(Ball ball);
-
- //draw horizontal platform where y top pixel layer location. x hole location
+ void Initialize();
void printString(const char * str,int x,int y); //overide base class
void drawBall();
- void eraseBall();
- void createAllPlatforms();
+ void eraseBall();
void drawAllPlatforms();
void eraseAllPlatforms();
void shiftAllPlatforms(); //move all platforms up 1 pixel
Platform nextClosestPlatform(int y);
+ void displayStartScreen();
+ void displayInstructionScreen();
+ void displayCountdown();
//Write Access, set
void setBallPos(int x, int y) { playerBall.x = x; playerBall.y = y; }
@@ -62,6 +62,7 @@
int getBallY() { return playerBall.y; }
private:
+ void createAllPlatforms();
void drawPlatform(int x,int y);
void erasePlatform(int y);
void freeAllPlatforms(); //garbage cleanup