ELEC2645 (2017/18) / Mbed 2 deprecated el16a2t

Dependencies:   mbed

Revisions of engine/main.cpp

Revision Date Message Actions
11:4907e6e7e855 2018-05-07 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 File  Diff  Annotate
10:e81aacef805b 2018-05-06 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 File  Diff  Annotate
9:514c6f98ca5a 2018-05-06 changes to titlescreen sprite and titlescreen text; File  Diff  Annotate
8:8d25574b14cd 2018-05-06 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; File  Diff  Annotate
7:d1a1f7c5eb0d 2018-05-05 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. File  Diff  Annotate
6:933bb2b03b38 2018-05-01 changed the titlescreen sprite File  Diff  Annotate
5:cd63b0b896aa 2018-05-01 changed road lines from drawRect functions to drawLine functions; File  Diff  Annotate
4:a6ca44e29e97 2018-05-01 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 File  Diff  Annotate
3:124a5eb55c77 2018-05-01 minor screen contrast adjustment. some comments made; File  Diff  Annotate
2:a48df109588e 2018-04-30 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 File  Diff  Annotate
1:a3c9025e0dad 2018-04-24 put road lines in, allowed the car to move left and right with the use of the L and R buttons File  Diff  Annotate