My Project
|
The Level3Scene class sets up and manages the third level of the game. More...
#include <Level3Scene.h>
Additional Inherited Members | |
![]() | |
BaseScene (SDL_Renderer *renderer, SDL_Window *window) | |
Constructor for BaseScene. | |
virtual | ~BaseScene () override |
Destructor for BaseScene. | |
void | Init () override |
Initializes the scene. | |
void | StartUp () override |
Starts up the scene. | |
void | Cleanup () override |
Cleans up the scene. | |
bool | IsCompleted () const override |
Checks if the scene is completed. | |
bool | IsWin () const override |
Checks if the player has won the scene. | |
void | HandleInput (float deltaTime) override |
Handles player input for the scene. | |
void | Render () override |
Renders all entities in the scene. | |
void | Update (float deltaTime) override |
Updates the state of the scene. | |
![]() | |
std::vector< std::shared_ptr< EnemyGameEntity > > | enemies |
std::vector< std::shared_ptr< FoodGameEntity > > | foods |
std::unique_ptr< PlayerGameEntity > | mainCharacter |
std::vector< std::shared_ptr< GroundGameEntity > > | Grounds |
std::unique_ptr< BackGroundGameEntity > | backGround |
bool | mRun {true} |
float | mPoints {0.0f} |
SDL_Window * | mWindow = nullptr |
SDL_Renderer * | mRenderer = nullptr |
bool | isCompleted = false |
bool | isWin = false |
The Level3Scene class sets up and manages the third level of the game.
Inherits from BaseScene and implements the SetupLevel method to create a specific game level, including initializing enemies and food items at positions defined in a configuration file.