Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revisions of game/game.cpp

Revision Date Message Actions
39:ca77a6d574e6 2019-05-07 The Final, Submission version. I have read and agreed to the terms of academic integrity. SID:201160286 File  Diff  Annotate
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
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
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
22:4dc3c95f2146 2019-03-27 I have started creating Doxygen comments for the report. 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
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
13:5c3dc6e827c2 2019-03-17 Have converted spaceship movement, a small star and medium star from class into the struct. File  Diff  Annotate
12:bfe3a3deaac3 2019-03-17 I have decided to switch from class to struct. So far I have changed the enemy and blast, still, need to change stars and menu. I have made a collision function for blast and enemy. Need to create interesting enemy death. File  Diff  Annotate
11:cf2ba52e8b7e 2019-03-12 Have made medium stars (the same principle as in small star) - This is the code before making the enemy ship with the same method and the background planet. File  Diff  Annotate
10:f02413ae09fe 2019-03-12 I have made multiple stars flow using the same method I used for blasters. 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
7:42376925945c 2019-03-11 Have made the bullet to move independently from the ship movement (still the position of the bullet resets when button pressed again - fix). File  Diff  Annotate
6:100b46be4bea 2019-03-05 I have made the ship firing animation. To do the multiple shots at the same time I need to make "shipFire" int a separate library. 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