"Lost treasure of mBedungu" 100 level puzzle game for RETRO
Dependencies: LCD_ST7735 RetroPlatform mbed
Diff: Game/GameScreen.h
- Revision:
- 1:dcea5500a32d
- Parent:
- 0:f5f961973d01
--- a/Game/GameScreen.h Sat Feb 21 06:19:29 2015 +0000 +++ b/Game/GameScreen.h Sun Mar 01 05:32:06 2015 +0000 @@ -1,3 +1,23 @@ +/* + * (C) Copyright 2015 Valentin Ivanov. All rights reserved. + * + * This file is part of the "Lost treasure of mBedungu" game application for Retro + * + * The "Lost treasure of mBedungu" application is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ + #ifndef __GAME_SCREEN_H__ #define __GAME_SCREEN_H__ @@ -15,6 +35,9 @@ #define CELL_CRATE 8 #define CELL_TOTEM 9 #define CELL_RICK 10 +#define CELL_TOP 11 +#define CELL_HAPPY 12 + class GameScreen : public ScreenBase @@ -31,12 +54,21 @@ uint8_t _totemY; uint8_t _level; uint8_t _rickDirection; + + bool _gameOver; + bool _gameComplete; + + int frame; + + + char _gameData[8]; public: GameScreen(); virtual Screen Update(); void unpackLevel( int level ); void resetLevel(); + uint8_t getLevel(){ return _level; }; private: void next(); @@ -53,8 +85,7 @@ bool putInPocket( int item ); bool getKeyFromPocket(); bool getBarrelFromPocket(); - - void drawSprite(int x, int y, int sprite, bool mirrored = false); + void drawPocket(); void drawLevel(); };