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.h
- Revision:
- 6:478f81e79d9b
- Parent:
- 5:5667c4ec3d7e
- Child:
- 7:ffbc921c20f7
--- a/main.h Sun May 05 03:29:31 2019 +0000 +++ b/main.h Tue May 07 15:19:56 2019 +0000 @@ -6,29 +6,12 @@ #include "N5110.h" #include "Gamepad.h" -N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); -Gamepad pad; - -// function prototypes +// main menu ------------------------ void init(); void print_menu(); void welcome(); void arrow_location(); void arrow_select(); -//----------------------- -void game_engine_run(); -void donkeykong_x_movement(); -//----------------------- -void controls_run(); -//----------------------- -void instructions_run(); -//----------------------- -void options_run(); -void options_brightness(); -void options_contrast(); -void options_volume(); -//----------------------- -void high_scores_run(); int menu_arrow[7][7] = { // Arrow pointer used in main menu {0,0,0,0,0,0,0,}, @@ -79,6 +62,10 @@ { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0 }, }; +// Game Engine ---------------------- +void game_engine_run(); +// Donkey ----- +void donkeykong_x_movement(); int game_dk_walking_right_1[16][16] = { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,}, @@ -136,4 +123,32 @@ {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,}, }; +// Barrel ----- +// Banana ----- +// Controls ------------------------- +void controls_run(); +// Instructions --------------------- +void instructions_run(); +// Options -------------------------- + +class Options +{ + + public: + + Options(); + + ~Options(); + + void options_run(Gamepad &pad, N5110 &lcd); + void options_brightness(Gamepad &pad, N5110 &lcd); + void options_contrast(Gamepad &pad, N5110 &lcd); + void options_volume(Gamepad &pad, N5110 &lcd); + + +}; + +// High Scores----------------------- +void high_scores_run(); + #endif \ No newline at end of file