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.
Diff: main.cpp
- Revision:
- 18:8f7291885e19
- Parent:
- 17:cb208b15be5c
- Child:
- 19:913d123554ee
--- a/main.cpp Thu May 07 10:36:39 2020 +0000 +++ b/main.cpp Sat May 09 08:19:00 2020 +0000 @@ -30,6 +30,7 @@ void initialise(); void game(); + //variables bool game_check = false; bool game_playing = false; @@ -40,6 +41,8 @@ initialise(); menu.first_screen(); while(1) { + //menu + menu.menu_screen(); //create the game game(); } @@ -48,7 +51,7 @@ void initialise() { pad.init();//initialises the gamepad - lcd.init();//initialises the N5100 screen + lcd.init();//initialises the N5110 screen lcd.clear(); } @@ -59,6 +62,7 @@ Objects objects; Functions functions; while(game_check == false) { + lcd.clear(); objects.draw_shots(lcd,pad, true);// draws the shot