Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Changes

RevisionDateWhoCommit message
104:17040265b7b4 2019-05-09 AhmedPlaymaker Final Submission. I have read and agreed with Statement of Academic Integrity. default tip
103:64bc823d71f4 2019-05-09 AhmedPlaymaker Fixed a bug with tests.h docs
102:79d7bff6543f 2019-05-09 AhmedPlaymaker Checking if all publishes are implemented
101:5108621b207f 2019-05-09 AhmedPlaymaker added documentation to snake-test.h
100:6403c1705a08 2019-05-09 AhmedPlaymaker Added some documentation in main.h
99:4841f326200f 2019-05-09 AhmedPlaymaker added file documentation lines to non classes
98:3061aa318fa2 2019-05-09 AhmedPlaymaker Updated some part of the SnakevsBlocks documentation
97:819c0689efa7 2019-05-09 AhmedPlaymaker Added snake food documentation
96:1ab67b3e6898 2019-05-09 AhmedPlaymaker Documented snakes class
95:b068b0735f45 2019-05-09 AhmedPlaymaker documented the blocks class
94:4e603bd6c381 2019-05-08 AhmedPlaymaker added barrier class documentation
93:7f9c31ed5cab 2019-05-08 AhmedPlaymaker Documented WinLoose and LengthManager
92:693a6ae0ff8e 2019-05-08 AhmedPlaymaker Added documentation for snakevsblock class
91:ca8cff78f2fe 2019-05-08 AhmedPlaymaker fixed an error with my documentation syntax
90:741120c09784 2019-05-08 AhmedPlaymaker Made documentation for stats and tutorial.
89:8fbb0405a916 2019-05-08 AhmedPlaymaker Added documentation for settings.
88:1e2e70a484e7 2019-05-08 AhmedPlaymaker Created the documentation for the startscreen class.
87:871d9fecb593 2019-05-08 AhmedPlaymaker I have changed some variable names so that they have more meaning, and also added some more comments
86:fafb72e08195 2019-05-07 AhmedPlaymaker Worked on aesthetics of stats.
85:d50ba0994676 2019-05-06 AhmedPlaymaker I Think the tutorial needs no more content work... But i know i cant help but improvise ;)
84:9950d561fdf8 2019-05-06 AhmedPlaymaker Added some more comments to describe what some of my functions and methods do.
83:329da564799a 2019-05-06 AhmedPlaymaker 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.
82:c51ae8a501d1 2019-05-06 AhmedPlaymaker Improved barrier collision
81:4c1641e10dcd 2019-05-06 AhmedPlaymaker Made Some Barriers, not sure about them tough
80:51ca38c5dcdf 2019-05-06 AhmedPlaymaker Implemented back functionality in tutorials.
79:35cb65c52d25 2019-05-05 AhmedPlaymaker 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.
78:10e5cc013806 2019-05-05 AhmedPlaymaker Added some functions in tutorial;
77:5c6bd659c32d 2019-05-05 AhmedPlaymaker now the default motion of the snake is called directly from update, and this doesn't make it dependent on other functions
76:7fa91122907f 2019-05-05 AhmedPlaymaker Fixed a problem i did not know i had about block sides collision, where i added the x axis coordinates of the block to the collision loop.
75:f00c79f79b6a 2019-05-05 AhmedPlaymaker Improved the snake test file to perform various sorts of tests on my snake, that can test all it's functionalities every time i change the code.
74:7b6568bc16d5 2019-05-05 AhmedPlaymaker edited the test file so that it tests more functionalities of the snake
73:80556a279962 2019-05-05 AhmedPlaymaker Added a header file for main.cpp , called main.h, this is used to define all the function prototypes and reference pre-processor directives.
72:4d49d2544cef 2019-05-04 AhmedPlaymaker 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.
71:4bd2b27693f3 2019-05-04 AhmedPlaymaker Further modulated the snake class, also need to fix a problem with the size of array.
70:7caab8069b9b 2019-05-04 AhmedPlaymaker 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.
69:55e309da7efd 2019-05-04 AhmedPlaymaker fixed a bug where i couldn't see any thing in tutorial class only sometimes by adding an extra lcd.clear();
68:b9cfd27987ac 2019-05-04 AhmedPlaymaker Added test headers and functions that makes sure that my snake moves and updates as expected.
67:39b9ba6019b0 2019-05-04 AhmedPlaymaker Made the startscreen class much more organised
66:e47333ffc6ca 2019-05-03 AhmedPlaymaker Created separate functions for detecting back being pressed, also changed names of some functions and variables
65:2872ca289b49 2019-05-03 AhmedPlaymaker Refactored some function into smaller ones
64:540aa1602372 2019-05-02 AhmedPlaymaker Made header file more readable
63:205f0ca48473 2019-05-01 AhmedPlaymaker Sorted out some functions, specifically related to their functionality
62:ebf6ecf8a6d5 2019-04-30 AhmedPlaymaker Cleaned the code style of the Block Side Collision
61:f3c402bc2ad0 2019-04-30 AhmedPlaymaker Fixed an issue with the gamepad library that made it remember the previous button pressed, also removed pad.init() because of this
60:d3a9e0e4a0de 2019-04-29 AhmedPlaymaker Created Tutorials class and added some sprites in it i will use later to implement
59:c65a2e933c47 2019-04-29 AhmedPlaymaker Changed Winning criteria and level progression in general, also fixed an error with motion control in menu and joystick misbehavior problem, next is tutorials.
58:affb42c56cf8 2019-04-28 AhmedPlaymaker added led feedback for motion control
57:845781aea5ec 2019-04-28 AhmedPlaymaker added brightness and contrast logos
56:142e9fdb77a8 2019-04-28 AhmedPlaymaker 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
55:df0825049171 2019-04-27 AhmedPlaymaker Converted menus from if implementation to case structures
54:20abd16c7d74 2019-04-26 AhmedPlaymaker There was a bug where the snake didnt detect the block on some occasions , i think it's fixed now.
53:527cf297b088 2019-04-26 AhmedPlaymaker Sub-Divided the Blocks::Draw Function to make it easier to debug the mistake in selecting a block number of a small size.
52:c2faa96cf293 2019-04-26 AhmedPlaymaker Solved the problem with show credits and control speed due to initialization
51:387249f9b333 2019-04-26 AhmedPlaymaker Sorted my game classes into folders to make it more organized
50:3cf9a94a264e 2019-04-26 AhmedPlaymaker Solved a problem caused by the previous update of level not progressing, the problem of show credits not working still persists.
49:441c32f6603e 2019-04-26 AhmedPlaymaker Fixed multiple issues with menu code, the show credits still needs some work
48:d774bb162c61 2019-04-26 AhmedPlaymaker Made minor changes to blocks class to alter the way block gap and random numbers were handled
47:b448ffd073e7 2019-04-26 AhmedPlaymaker the default game speed is now rabbit.
46:dc7dccae9f9e 2019-04-26 AhmedPlaymaker Levels were not getting saved because of a previous edit, fixed it!
45:1d5472477df4 2019-04-25 AhmedPlaymaker Fixed a bug regarding invisible blocks.