C++ scawy

main
Johannes Hendrik Gerard van der Weide 2023-10-11 14:28:22 +02:00
parent f3b323d71a
commit 38c898ad9c
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
class Game
{
static:
PlayerSpeed;
public:Game();
void run();

View File

@ -1,6 +1,9 @@
#include <SFML/Graphics.hpp>
#include "Game.hpp"
const float Game::PlayerSpeed = 100.f;
const sf::Time Game::TimePerFrame = sf::seconds(1.f/60.f);
Game::Game()
: mWindow(sf::VideoMode(640, 480), "SFML Application")
, mPlayer()