Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
MainMenuScreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "KatanaEngine.h"
4
5using namespace KatanaEngine;
6
9{
10
11public:
12
15 virtual ~MainMenuScreen() { }
16
20 virtual void LoadContent(ResourceManager& resourceManager);
21
23 virtual void Update(const GameTime& gameTime);
24
27 virtual void Draw(SpriteBatch& spriteBatch);
28
30 virtual void SetQuittingGame() { m_isQuittingGame = true; }
31
34 virtual bool IsQuittingGame() { return m_isQuittingGame; }
35
36
37private:
38
39 Texture *m_pTexture = nullptr;
40
41 Vector2 m_texturePosition;
42
43 bool m_isQuittingGame = false;
44
45};
Contains timing values for game updates and rendering.
Definition GameTime.h:21
Base class for all game menu screens.
Definition MenuScreen.h:23
Loads and manages the lifespan of objects from external files.
Enables a group of sprites to be drawn using the same settings.
Definition SpriteBatch.h:48
Represents a 2D grid of texels.
Definition Texture.h:21
Defines a vector with 2 components (x and y).
Definition Vector2.h:21
The main menu screen for the game.
MainMenuScreen()
Instantiate a main menu screen object.
virtual void Update(const GameTime &gameTime)
Unload the content for the screen.
virtual ~MainMenuScreen()
virtual void Draw(SpriteBatch &spriteBatch)
Render the screen.
virtual void SetQuittingGame()
Set the flag to quit the game, so the game will exit when screen fades out.
virtual bool IsQuittingGame()
Check if the game is quitting.
virtual void LoadContent(ResourceManager &resourceManager)
Load the content for the screen.
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition Animation.cpp:18