Platform game written for the GHI/OutrageousCircuits RETRO game device. Navigate the caves collecting all the pickups and avoiding the creatures and haunted mine carts that patrol the caves. Oh and remember to watch out for the poisonous plants... This game demonstrates the ability to have multiple animated sprites where the sprites can overlap the background environment. See how the player moves past the fence and climbs the wall in the 3rd screen.
ScreenIntro.h
00001 #ifndef __SCREENINTRO_H__ 00002 #define __SCREENINTRO_H__ 00003 00004 class ScreenIntro : public Scene 00005 { 00006 public: 00007 ScreenIntro() : 00008 _player() 00009 { 00010 Game::Surface.clearScreen(); 00011 00012 addGameObject(&_player); 00013 00014 restartScreen(); 00015 } 00016 00017 virtual void restartScreen() 00018 { 00019 _player.setIntroMode(true); 00020 _player.setStartPosition(72, 40); 00021 00022 setPosition(0, 16); 00023 setMap(Maps::ScreenIntro, 20, 7, blocks, sprites); 00024 00025 Scene::restartScreen(); 00026 } 00027 00028 virtual void update() 00029 { 00030 Scene::update(); 00031 00032 if (GameInput::isSquarePressed()) Game::Instance->completeScreen(); 00033 } 00034 00035 virtual void draw() 00036 { 00037 Scene::draw(); 00038 00039 Game::Surface.drawBitmap(43, 8, bmpText, 0, 24, 74, 8, Color565::White, Color565::Black); 00040 Game::Surface.drawBitmap(43, 80, bmpText, 0, 32, 74, 8, Color565::White, Color565::Black); 00041 Game::Surface.drawBitmap(44, 116, bmpText, 0, 40, 71, 8, Color565::White, Color565::Black); 00042 } 00043 00044 private: 00045 Player _player; 00046 }; 00047 00048 #endif //__SCREENINTRO_H__
Generated on Wed Jul 13 2022 06:18:15 by 1.7.2