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
Diff: main.cpp
- Revision:
- 5:0da65740cd5e
- Parent:
- 4:d744920089ea
- Child:
- 6:e7ac87a41840
--- a/main.cpp Sun May 05 13:53:39 2019 +0000
+++ b/main.cpp Wed May 08 10:08:05 2019 +0000
@@ -5,8 +5,8 @@
#include "SpaceRebEngine.h"
-#define SPACEINVADER_WIDTH 2
-#define SPACEINVADER_HEIGHT 8
+#define SPACEINVADER_WIDTH 8
+#define SPACEINVADER_HEIGHT 11
#define MISSILES_SIZE 2
#define MISSILES_SPEED 3
@@ -29,6 +29,7 @@
///////////// functions ////////////////
int main()
{
+ int time =0;
int fps = 8; // frames per second
init(); // initialise and then display welcome screen...
@@ -71,8 +72,9 @@
// simple splash screen displayed on start-up
void welcome() {
- lcd.printString(" Space Rebellion! ",0,1);
- lcd.printString(" Press Start ",0,4);
+ lcd.printString(" Space ",0,1);
+ lcd.printString(" Rebellion! ",0,2);
+ lcd.printString("Press Start...",0,4);
lcd.refresh();
// wait flashing LEDs until start button is pressed