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.
main.h@7:08f78909dda7, 2019-05-09 (annotated)
- Committer:
- el17ttds
- Date:
- Thu May 09 01:30:57 2019 +0000
- Revision:
- 7:08f78909dda7
- Parent:
- 4:3446009e2f38
- Child:
- 8:d1c04f0e4890
Hero now has health and can die
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17ttds | 0:7769e2ad5d7a | 1 | #include "mbed.h" |
el17ttds | 0:7769e2ad5d7a | 2 | #include "Gamepad.h" |
el17ttds | 0:7769e2ad5d7a | 3 | #include "N5110.h" |
el17ttds | 2:ee9b361ba6df | 4 | #include "Engine.h" |
el17ttds | 2:ee9b361ba6df | 5 | |
el17ttds | 3:3d35ab70b565 | 6 | #define SCREEN_WIDTH 84 |
el17ttds | 3:3d35ab70b565 | 7 | #define SCREEN_HEIGHT 48 |
el17ttds | 3:3d35ab70b565 | 8 | #define MAP_WIDTH 100 |
el17ttds | 3:3d35ab70b565 | 9 | #define MAP_HEIGHT 100 |
el17ttds | 2:ee9b361ba6df | 10 | #define MAX_SPEED 3 |
el17ttds | 0:7769e2ad5d7a | 11 | |
el17ttds | 0:7769e2ad5d7a | 12 | /////////////// structs ///////////////// |
el17ttds | 0:7769e2ad5d7a | 13 | |
el17ttds | 0:7769e2ad5d7a | 14 | ///////////// prototypes /////////////// |
el17ttds | 0:7769e2ad5d7a | 15 | void init(); |
el17ttds | 0:7769e2ad5d7a | 16 | void welcome(); |
el17ttds | 1:8e319bd14b84 | 17 | string menu(); |
el17ttds | 1:8e319bd14b84 | 18 | void ask(string option); |
el17ttds | 1:8e319bd14b84 | 19 | void begin(string option); |
el17ttds | 1:8e319bd14b84 | 20 | void play(); |
el17ttds | 7:08f78909dda7 | 21 | void gameLoop(); |
el17ttds | 1:8e319bd14b84 | 22 | void tutorial(); |
el17ttds | 0:7769e2ad5d7a | 23 | void highscores(); |
el17ttds | 4:3446009e2f38 | 24 | void credits(); |
el17ttds | 7:08f78909dda7 | 25 | |
el17ttds | 7:08f78909dda7 | 26 | bool alive; |