ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Changes

RevisionDateWhoCommit message
37:71f2cd073739 2019-05-09 el17m2h Added comments to the enemy class documentation. default tip
36:0c852c5ade4b 2019-05-09 el17m2h Updated the comments on the documentation for the engine, floors and doodler.
35:b99b563c3eb6 2019-05-09 el17m2h Finished comments on floor file
34:a9b14a4ccd46 2019-05-09 el17m2h Finish adding comments to the engine file and started adding comments to the floors explaining each function.
33:de130e274391 2019-05-09 el17m2h Changed trivial functions to one-line structure.
32:83f410c433c2 2019-05-09 el17m2h Finished commenting the doodler.cpp file and changed the coding structure to simplify it (splitted the update function into 2 and wrote simple functions as one-line functions).
31:5c4acae51026 2019-05-09 el17m2h Added comments to the doodler cpp.
30:863565e9859f 2019-05-09 el17m2h Changed the size of the enemy and updated the new values in the floors cpp. I also added the test code for the doodler's movement and called it on the main cpp.
29:15e9640646b7 2019-05-08 el17m2h Changed the enemy file so that it has functions to make it update its position or make it disappear from the screen. The floors h file includes the enemy, and depending on its position it updates it or not.
28:e0161a52a8b9 2019-05-08 el17m2h Added a get function to the engine in order to be able to call the final score on the main.cpp to display on the game over screen function.;
27:af14fcd5a520 2019-05-08 el17m2h Added a game over screen by adding a set function and get function to the engine. The set functions decides if the game should end and this is read in the main.cpp by the get function.
26:d16a5b1e0ace 2019-05-08 el17m2h Added comments for the documentation file.
25:f122e1862cd1 2019-05-08 el17m2h Made some changes to the doodler h file.
24:67dc71a8f009 2019-05-08 el17m2h Added comments to the doodler h file.
23:9be87557b89a 2019-05-08 el17m2h Added a sprite for the doodler and the enemy.
22:0d2ac98a8b48 2019-05-06 el17m2h Re-organized the functions for the engine and the doodler so that the velocity and position of the doodler are changed as separate functions.
21:6b16ca9834e6 2019-05-01 el17m2h Changed the values the floors need to be to add score points, so that the score value will increase every time the floors are y=10.
20:a359092079b0 2019-04-25 el17m2h I added a rectangle for the screen, updated the screen range and removed a floor. Added a tone for when the bullet is shot. Also added an enemy file that in contact with doodler the game ends. It also disappears if shot by bullet.
19:5a7b0cdf013b 2019-04-25 el17m2h Added a game over function to the main file so that once the doodler hits the floor the game is finalized.
18:9f40a2f8c2c5 2019-04-24 el17m2h Fixed the function so that it shoots a bullet at a time, by making the engine read the button instead of it being read inside of the bullet file. ;
17:74de8c17ddac 2019-04-24 el17m2h Corrected the errors in the engine h file and the doodler's update function.
16:e0542761fc8c 2019-04-24 el17m2h I added another folder for the bullets the doodler can fire controlled by the Y button. I created three bullets and once they reach the end of the screen they will go back and remain at the doodler's position.
15:4efa04a6a376 2019-04-23 el17m2h Changed the main function so that the back button takes the user back to the welcome menu.;
14:529f798adae4 2019-04-21 el17m2h Changed the doodler's update function so that it only affects the position of the doodler and the init function so that it also changes the velocity of the doodler. I also included the init function in the check wall collisions.
13:10851784af9a 2019-04-18 el17m2h Fixed the order of functions in the update section of the engine so that the doodler and floors are updated after checking both the floors collision and the shift of the floors
12:c5123abb4fbe 2019-04-17 el17m2h I fixed the direction of the floors and them being in a random x position when they reappear at the top.
11:2041290b5a74 2019-04-17 el17m2h I added a function in the engine cpp to shift the floors when the doodler goes beyond the middle. I also added a function in the floors cpp that will check if the floors leave the screen so that it will move the floor to the top and in a random x-pos
10:e1d2289705ef 2019-04-17 el17m2h Managed to fix the doodler's bounce by changing the velocity to a double instead of a int type. I also added a get_velocity_y() function to the function checking the floor's collisions.
9:5e53bca2a4c2 2019-04-16 el17m2h Changed the values of the positions and velocities to vectors so that they are easier to manipulate. I made use of the float absolute function (fabs) function to make the ball decelerate to a zero velocity while going upwards.
8:90e789413e0b 2019-04-16 el17m2h Changed the update function in the doodler so that it will be reading the position and velocity and setting a new one every time it updates (so that I will not have to write it in the engine file).
7:0d9cee90ab0d 2019-04-14 el17m2h Removed the jump function and instead created a gravity value for the doodler to accelerate downwards at all times.
6:848d1e4c1a31 2019-04-13 el17m2h I created a jump function in the doodler file in order to make the doodler constantly jump vertically if it collides with any of the floors.
5:8814d6de77d0 2019-04-13 el17m2h Created an update function for the doodler to change its position depending on the user moving the joystick left or right.
4:8ec314f806ae 2019-04-11 el17m2h Added a doodler that will be controlled by the user using the joystick.
3:116913e97fd7 2019-04-10 el17m2h I added 10 floors and made their position be random on the screen. I divided these in ranges in order to avoid the collision of the floors and also changed the width to have a random length between 10 and 15.
2:360a6c301a4e 2019-04-10 el17m2h I created an engine .cpp and .h file to add 10 floors to the screen once the button start is pressed and I used the rand syntax to place them in random positions within the screen
1:0001cb3eb053 2019-04-09 el17m2h Main introductory page that draws the floors once the start button is pressed. I will then add a function to add multiple random floors and the doodler controlled by the user.
0:40c03e733b77 2019-03-11 el17m2h initial commit