Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revisions of main/main.cpp

Revision Date Message Actions
38:ef3968546d36 2019-05-07 Final version. File  Diff  Annotate
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
36:207ec7db8648 2019-05-02 Have added boss explosion animation. have added debug sections. Have cleaned a code a bit. positioned some functions from public to private. File  Diff  Annotate
35:172db1608332 2019-04-30 Have finished added comments. Cleaned the code. added a note to the player. added intro credits. File  Diff  Annotate
34:754915ce9de5 2019-04-30 Finished the boss class. added additional comments Have fixed the high score problem. File  Diff  Annotate
32:5403bb974294 2019-04-26 Have added small features. Have cleaned the code a bit.; 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
30:d454d0cb72bc 2019-04-16 Hace modified some comments. Have added a feature of a force shield. Updated the tutorial, Have finished the settings mode. 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
26:676874c42883 2019-04-06 I have created a difficulty feature based on the in-game score. As the score gets higher, so does the game. Have added more comments. Started cleaning up the code and simplify it. File  Diff  Annotate
24:0570cb4b92d7 2019-04-02 I have created and finished a tutorial file where is described what controls need to be used and what to do in the game. I have broken up my into code into several functions to improve efficiency. I have started working on my settings mode. File  Diff  Annotate
23:240bc00ef25b 2019-03-31 Made player class and stored everything related to player. Have made stars class. modified player ship movement. created gameOver function and made it using sprites. Created a collision of enemy ship and a player ship function. added more comments. 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
20:557e84189a57 2019-03-26 Have made the intro for my game. I need to implement class system again in order to get more marks. Need to a function that will be resetting in game values when the game is over.; File  Diff  Annotate
19:b78fa41d04a9 2019-03-21 I have made a game over screen when the player dies. I made the red light flash (when health is low). I have started making a new intro to my game - animated. I have made a "game over" title - need to add to the screen. Have made multiple led flash. File  Diff  Annotate
18:6becc9f9de5e 2019-03-19 I have made the enemy blast to collide with the player ship and deplete the player's health every time the ship is hit. Need to create game over function and damage animation. File  Diff  Annotate
17:69a85c909566 2019-03-19 I have made the enemy appear at truly random positions using srand, I have made player's life show as LEDs light. 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
5:2b9181bc5c89 2019-03-04 Have made the ship moving around in the "start game". Have done 4 different models of stars and a model of a blaster. Have made that the ship would not leave the set border limit (beyond the screen). 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 | base