ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Committer:
Noximilien
Date:
Wed Apr 10 15:42:10 2019 +0000
Revision:
28:35af3843de8f
Parent:
27:f05f4e738ba9
Child:
29:579e00b7f118
Moved starSpawnDelay to stars.h. Made enemies move y-direction as the game score increase. Added more comments. Cleaned the code a bit. Changed struct to gameObject in the main.cpp. Made some functions less than 20 lines.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Noximilien 24:0570cb4b92d7 1 #ifndef TUTORIAL_H
Noximilien 24:0570cb4b92d7 2 #define TUTORIAL_H
Noximilien 24:0570cb4b92d7 3
Noximilien 24:0570cb4b92d7 4 const int right_arrow_pos_x = 66;
Noximilien 24:0570cb4b92d7 5 const int left_arrow_pos_x = 5;
Noximilien 24:0570cb4b92d7 6 const int arrows_pos_y = 0;
Noximilien 24:0570cb4b92d7 7
Noximilien 24:0570cb4b92d7 8 class Tutorial{
Noximilien 24:0570cb4b92d7 9 public:
Noximilien 28:35af3843de8f 10 /** A constructor for the Tutorial's page number*/
Noximilien 24:0570cb4b92d7 11 Tutorial();
Noximilien 28:35af3843de8f 12 /** Updates and draws a text that explains the game rules and gameplay
Noximilien 28:35af3843de8f 13 */
Noximilien 24:0570cb4b92d7 14 bool updateAndWriteTutorial();
Noximilien 24:0570cb4b92d7 15
Noximilien 24:0570cb4b92d7 16 private:
Noximilien 24:0570cb4b92d7 17 int current_page;
Noximilien 24:0570cb4b92d7 18 };
Noximilien 24:0570cb4b92d7 19
Noximilien 24:0570cb4b92d7 20
Noximilien 24:0570cb4b92d7 21 #endif