-
Notifications
You must be signed in to change notification settings - Fork 0
/
menuscreen.cpp
48 lines (35 loc) · 982 Bytes
/
menuscreen.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "menuscreen.h"
#include "gameManager.h"
#include <iostream>
// define Sprites and Textures
//sf::Sprite
//sf::Texture
void Menuscreen::init()
{
std::cout << " In Menuscreen.Init()\n"; //TEST
// load textures, fonts
// load texture files
// set texture for sprites
//set inital position of sprites
}
void Menuscreen::handleInput(sf::Event* event)
{
std::cout << " In Menuscreen Init()\n"; // TEST
// handle inputs, keystrokes, mouse button etc.
if (event->type == sf::Event::KeyPressed || event->type == sf::Event::MouseButtonPressed)
{
// set new state = stateOne setState(GameManager::State s)
GameManager::setState(GameManager:: State1);
}
}
void Menuscreen::update(float timeElapsed)
{
std::cout << " In Menuscreen.update()\n"; //TEST
}
void Menuscreen::draw(sf::RenderWindow* window)
{
std::cout << " In Menuscreen.draw()\n";
}
void Menuscreen::endGameLogic()
{
}