Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revisions of main/main.h

Revision Date Message Actions
37:6a2bf4488022 2019-05-06 Have made finishing changes for comments and game. Have added a debug in main.h. Have separate the simplified sprite drawing into sprite.h. File  Diff  Annotate
33:c623c6d5ed16 2019-04-29 Have started working on boss mode. Changed the structure of game.cpp to finite state machine. Moved Game Over to a separate class. slightlight changed the player class. changed geometry into collision library. Cleaned the code to be under 20 lines. File  Diff  Annotate
31:becb8f6bf7b7 2019-04-23 Have changed comments structure as well as the content. Finished intro music. Have cleaned a code in some places to make it readable. File  Diff  Annotate
29:579e00b7f118 2019-04-15 Added a lot of comments. File  Diff  Annotate
28:35af3843de8f 2019-04-10 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. File  Diff  Annotate
27:f05f4e738ba9 2019-04-08 I have created "press START" for the intro pause. Added more comments for the report. Fixed the bug I had in my small star function. Changed some drawsprite functions to new one I made. Slightly simplified the code. File  Diff  Annotate
21:0eb394495b8a 2019-03-27 switched all enemies functions into the class system in a separate file. Created a struct for writing sprites more easily. Created a function that resets all values when the game is over. Separated collision, gameObject and constants into new files. File  Diff  Annotate
16:b7d0cac561cc 2019-03-18 Have made the enemy to shoot. Have partially created a function that will monitor and display the player's life. Need to create a collision function of the enemy blast and player ship. File  Diff  Annotate
15:0145c5f0bea1 2019-03-18 Have created new limit borders to suit the score line. Have created intro sprites for my intro. Need to fix the problem where enemy ship is generated beyond screen. File  Diff  Annotate
14:e8de27c4d0d4 2019-03-18 I have added a high score function which would show the score on lcd. Each enemy killed give 30 points. -- Need to adjust screen limits for the high score print out on lcd. File  Diff  Annotate
9:5ad5501c702e 2019-03-11 I have found a way to make multiple fire shots at the same time. Have moved the blasts into a separate file. I have created a small function in lcd library so that 1 will overwrite 0 on top. Have modified Models folder - moved from .h to .cpp. File  Diff  Annotate
8:c18c240665aa 2019-03-11 Have made a foe ship to appear at random y-position and slowly moving towards the player (speed is adjustable). ; ; Need to make the ship to fire and create the background. File  Diff  Annotate
4:02c63aaa2df9 2019-03-03 Decided to switch to the class system (need to understand it better). Removed the parts of the menu from the main (was adviced to keep it separate). Have made it go from the menu into the game. ; To Do: the animation, setting, tutorial, in-game menu. File  Diff  Annotate
3:10918b0f7a7d 2019-02-28 I have created game.cpp file where the actual game will be happening. I have created one model of a spaceship and stored in header file. Have linked game and main together. ; ; However I cannot find a way of how to read buttons. File  Diff  Annotate