ELEC2645 (2017/18) / Mbed 2 deprecated el16a2t

Dependencies:   mbed

Changes

RevisionDateWhoCommit message
17:43cea0e1352b 2018-05-08 el16a2t Final commit. I have read and agreed to the statement of academic integrity. default tip
16:b0fb01fc21f8 2018-05-08 el16a2t added in comments;
15:2b98d03e7ab6 2018-05-08 el16a2t split my main file into classes and folders, including seperate ones for the player, car sprites, and creating a separate game engine folder. I got rid of the main.h
14:ce231137d2f2 2018-05-07 el16a2t added in comments explaining the difficulty adjustment and the function which stops sprites overlapping
13:61aeeb4e4e47 2018-05-07 el16a2t made it so that randomly spawned car sprites can't overlap, by forcing one to change lanes before appearing on screen if overlap conditions fulfilled. Also introduced cars occasionally changing lanes when player reaches certain score(makes it harder)
12:c36bc59d120e 2018-05-07 el16a2t also created another random variable so that each car sprite uses its own random variable rather than both having their co-ordinate set by the same random number. This stops both carsw being in the same lane one after another
11:4907e6e7e855 2018-05-07 el16a2t integrated a "difficulty" measure by allowing the user to change the speed of the game by turning the potentiometer. the potentiometer sets the wait time at the end of the game function. also created another random variable so that each car sprite us
10:e81aacef805b 2018-05-06 el16a2t randomised when the next car spawns down the screen by using a range of values in an array that selects at which y value the next car spawns
9:514c6f98ca5a 2018-05-06 el16a2t changes to titlescreen sprite and titlescreen text;
8:8d25574b14cd 2018-05-06 el16a2t moved generate random number function to main game file so it constantly changes the random number as it goes through tge while loop. defined index as an integer. changed size of titlescreen sprite;
7:d1a1f7c5eb0d 2018-05-05 el16a2t added printf's to newgame and gameover functions. removed 'main' while loop and instead now loop around newgame and gameover functions. this allowed me to press start from the gameover function tostart a new game.
6:933bb2b03b38 2018-05-01 el16a2t changed the titlescreen sprite
5:cd63b0b896aa 2018-05-01 el16a2t changed road lines from drawRect functions to drawLine functions;
4:a6ca44e29e97 2018-05-01 el16a2t added a second car sprite, so 2 cars to dodge can be on the screen at the same time. added hard-coded condition that when one reaches a set y value, the other spawns (to be changed). cant compile at the mom so may be some errors that need addressing
3:124a5eb55c77 2018-05-01 el16a2t minor screen contrast adjustment. some comments made;
2:a48df109588e 2018-04-30 el16a2t got score working. This included integrating sprintf function to print value held by "score" variable into a string and then printing on the lcd. also minor adjustments to sprite and score placements/positioning
1:a3c9025e0dad 2018-04-24 el16a2t put road lines in, allowed the car to move left and right with the use of the L and R buttons
0:1a1863a687d3 2018-04-17 el16a2t initial commit