// // Created by Wouter Groeneveld on 09/08/18. // #ifndef GBA_SPRITE_ENGINE_PROJECT_FOOD_SCENE_H #define GBA_SPRITE_ENGINE_PROJECT_FOOD_SCENE_H #include #include #include #include "bullet.h" class FoodScene : public Scene { private: int counter = 0; std::unique_ptr avatar; std::unique_ptr someBulletSprite; std::vector> bullets; int avatarRotation; u32 bulletCooldown; std::unique_ptr> spriteBuilder; std::unique_ptr createBullet(); void removeBulletsOffScreen(); VECTOR rotateAround(VECTOR center, VECTOR point); VECTOR defaultBulletTarget; public: explicit FoodScene(const std::shared_ptr &engine); FoodScene(FoodScene& other) = delete; std::vector sprites() override; std::vector backgrounds() override; void load() override; void tick(u16 keys) override; }; #endif //GBA_SPRITE_ENGINE_PROJECT_FOOD_SCENE_H