![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Revision 52:beeffd296ea3, committed 2019-05-09
- Comitter:
- adambakerwa
- Date:
- Thu May 09 12:19:36 2019 +0000
- Parent:
- 51:fe04c7a94814
- Commit message:
Changed in this revision
diff -r fe04c7a94814 -r beeffd296ea3 Animation/Animation.h --- a/Animation/Animation.h Thu May 09 12:12:01 2019 +0000 +++ b/Animation/Animation.h Thu May 09 12:19:36 2019 +0000 @@ -181,7 +181,7 @@ */ bool pixelsDown(int x, int y, N5110 &lcd); - /** checks if pixels below above blockhead + /** checks if pixels above blockhead *@param x cordinate of blockhead (int) *@param y cordinate of blockhead (int) *@param N5110 class which controlls lcd screen @@ -189,7 +189,7 @@ */ bool pixelsUp(int x, int y, N5110 &lcd); - /** checks if pixels below left of blockhead + /** checks if pixels left of blockhead *@param x cordinate of blockhead (int) *@param y cordinate of blockhead (int) *@param N5110 class which controlls lcd screen @@ -197,7 +197,7 @@ */ bool pixelsLeft(int x, int y, N5110 &lcd); - /** checks if pixels below right of blockhead + /** checks if pixels right of blockhead *@param x cordinate of blockhead (int) *@param y cordinate of blockhead (int) *@param N5110 class which controlls lcd screen
diff -r fe04c7a94814 -r beeffd296ea3 Blockhead/Blockhead.h --- a/Blockhead/Blockhead.h Thu May 09 12:12:01 2019 +0000 +++ b/Blockhead/Blockhead.h Thu May 09 12:19:36 2019 +0000 @@ -16,7 +16,7 @@ class Blockhead { public: - /** Constructorn */ + /** Constructor */ Blockhead(); /** Deconstructor */ @@ -29,18 +29,18 @@ void continue_init(); /** changes level when character reaches side of screen - *@returs level blockhead is on (int) + *@returns level blockhead is on (int) */ int next_level(); - /** contrlls blockhead depending on position in game, and user input + /** controlls blockhead depending on position in game, and user input *@param pos struct which contains cordinates and direction of moving platforms *@param N5110 class which controlls lcd screen *@param Gamepad class for working with the gamepad */ void blockhead(Pos pos, N5110 &lcd, Gamepad &pad); - /** contrlls blockhead depending on position in game, and user input + /** retruns 1 when gameover occurs *@param Gamepad class for working with the gamepad *@returns gameover (0 when alive, 1 once died) (int) */
diff -r fe04c7a94814 -r beeffd296ea3 BlockheadEngine/BlockheadEngine.h --- a/BlockheadEngine/BlockheadEngine.h Thu May 09 12:12:01 2019 +0000 +++ b/BlockheadEngine/BlockheadEngine.h Thu May 09 12:19:36 2019 +0000 @@ -36,7 +36,7 @@ int playgame(N5110 &lcd, Gamepad &pad); /** sets highscore if new highest level reached - *@retunrs _highscore (int) + *@returns _highscore (int) */ int highscore();