-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main menu is here, after 3 months, ur welcome guys (didnt make it in …
…a seperate class, but made the class and its useless for now)
- Loading branch information
1 parent
a41741f
commit 7eb4588
Showing
9 changed files
with
239 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Created by Mim on 6/5/2023. | ||
// | ||
|
||
#include "Menu.h" | ||
GameReference* Window; | ||
AssetsManager* AssetsHandler; | ||
SoundManager* SoundHandler; | ||
Menu::Menu(GameReference* GameWindow,Drawing* Render, Texture* TextureStart, int width, int height){ | ||
TextureButtonStart = TextureStart; | ||
Renderer = Render; | ||
Window = GameWindow; | ||
m_Height = height; | ||
m_Width = width; | ||
AssetsHandler = Window->Assets(); | ||
SoundHandler = AssetsHandler->SoundHandler(); | ||
GameWindow->Render()->SetWorld(reinterpret_cast<GameWorld *>(this)); | ||
StartButtonRect = { int(GameWindow->GetWidth2()) - 150, | ||
int(GameWindow->GetHeight2()) - 200, | ||
300, 100 }; | ||
|
||
} | ||
void Menu::Draw() { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// Created by Mim on 6/5/2023. | ||
// | ||
|
||
#ifndef TRIALANDERROR_MENU_H | ||
#define TRIALANDERROR_MENU_H | ||
#include "game/indicators/TextSurface.h" | ||
#include "GameReference.h" | ||
|
||
class Menu { | ||
private: | ||
double m_Width, m_Height; | ||
Drawing* Renderer; | ||
Texture* TextureButtonStart; | ||
public: | ||
SDL_Rect StartButtonRect; | ||
Menu(GameReference* GameWindow,Drawing* Render,Texture* TextureStart, int width, int height); | ||
void Event(const SDL_Event& currentEvent); | ||
void Tick(); | ||
void Draw(); | ||
}; | ||
|
||
|
||
#endif //TRIALANDERROR_MENU_H |
Large diffs are not rendered by default.
Oops, something went wrong.