Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revisions of main.cpp

Revision Date Message Actions
87:871d9fecb593 2019-05-08 I have changed some variable names so that they have more meaning, and also added some more comments File  Diff  Annotate
84:9950d561fdf8 2019-05-06 Added some more comments to describe what some of my functions and methods do. File  Diff  Annotate
83:329da564799a 2019-05-06 Now, I have put gamepad and lcd objects from the main() in a pointer, so that i can declare them in init() in every class i use them in and use them as global objects for each class, without having to send their addresses to all of the functions. File  Diff  Annotate
79:35cb65c52d25 2019-05-05 Fixed a bug where the snake wouldn't move if its length is 1. Also sorted out Collision functions so that they perform tasks independently. File  Diff  Annotate
73:80556a279962 2019-05-05 Added a header file for main.cpp , called main.h, this is used to define all the function prototypes and reference pre-processor directives. File  Diff  Annotate
72:4d49d2544cef 2019-05-04 JUST REALIZED THAT I FORGOT TO PUT THE DATE IN MY INITIAL COMMIT, I have put it now by looking at the date of my commit. File  Diff  Annotate
70:7caab8069b9b 2019-05-04 Thanks to my newly created test files, I removed some of the most uselessly redundant functions in my snake class relating to get pos. The test classes helped me debug the problems with the bulky code by letting me know what coordinates were saved. File  Diff  Annotate
69:55e309da7efd 2019-05-04 fixed a bug where i couldn't see any thing in tutorial class only sometimes by adding an extra lcd.clear(); File  Diff  Annotate
68:b9cfd27987ac 2019-05-04 Added test headers and functions that makes sure that my snake moves and updates as expected. File  Diff  Annotate
67:39b9ba6019b0 2019-05-04 Made the startscreen class much more organised File  Diff  Annotate
66:e47333ffc6ca 2019-05-03 Created separate functions for detecting back being pressed, also changed names of some functions and variables File  Diff  Annotate
63:205f0ca48473 2019-05-01 Sorted out some functions, specifically related to their functionality File  Diff  Annotate
62:ebf6ecf8a6d5 2019-04-30 Cleaned the code style of the Block Side Collision File  Diff  Annotate
56:142e9fdb77a8 2019-04-28 Removed some old feature that seems to never make a difference and also added some logos for joystick and motion control, along with changing some code style File  Diff  Annotate
54:20abd16c7d74 2019-04-26 There was a bug where the snake didnt detect the block on some occasions , i think it's fixed now. File  Diff  Annotate
50:3cf9a94a264e 2019-04-26 Solved a problem caused by the previous update of level not progressing, the problem of show credits not working still persists. File  Diff  Annotate
49:441c32f6603e 2019-04-26 Fixed multiple issues with menu code, the show credits still needs some work File  Diff  Annotate
47:b448ffd073e7 2019-04-26 the default game speed is now rabbit. File  Diff  Annotate
46:dc7dccae9f9e 2019-04-26 Levels were not getting saved because of a previous edit, fixed it! File  Diff  Annotate
41:4edac50f010d 2019-04-23 This version has a separate class to interface with length, and also changed a lot of the code to interface with it. File  Diff  Annotate
40:1debed7ec01c 2019-04-22 i had forgotten to init the device in the previous commit, also altered the code appearance a bit. File  Diff  Annotate
39:210ac915e0a0 2019-04-22 Removed some unnecessary get pos functions. File  Diff  Annotate
38:30e4e6191762 2019-04-22 This might be the biggest yet!!! THIS HAS MOTION CONTROL File  Diff  Annotate
33:249cf423fb18 2019-04-17 Added Stats Class and now i can store the highest level. File  Diff  Annotate
32:3a3bdeffdf62 2019-04-15 Some weird error of the joystick misbehaving occurs by fixing the program bouncing regularly File  Diff  Annotate
25:e827f1a8fadc 2019-04-10 Now if we press back during a game, we go to main menu, also reduced code size File  Diff  Annotate
16:7b474f873683 2019-04-05 Added speed controls and end condition File  Diff  Annotate
11:d6ceff1ff6d7 2019-03-30 Fixed a bug with random numbers File  Diff  Annotate
9:d1d79d4ee673 2019-03-27 Food Created, now if the snake eats food, it's length will increase. File  Diff  Annotate
8:890b986b16a4 2019-03-26 Created the snake completely with animation, of different lengths up-to 15,; the next step would be adding food to increase the length from default value. File  Diff  Annotate
7:48ba87cd79b5 2019-03-26 Game screen created, snake class and snake vs block class also created. File  Diff  Annotate
6:3ffab44ed49c 2019-03-23 Added some tones and animation in Launch File  Diff  Annotate
3:fbb1fa853f09 2019-03-17 Converted all my menu functions from the main.cpp to a class called StartScreen. File  Diff  Annotate
2:83e85dea3c89 2019-03-12 Added Menu items and selection arrow, branching remaining File  Diff  Annotate
1:32e312688a65 2019-03-12 Worked on Start Screen and Typed Menu File  Diff  Annotate
0:4b15c2d4aa58 2019-03-07 initial commit File  Diff  Annotate