C++ scawy
parent
f3b323d71a
commit
38c898ad9c
|
@ -1,5 +1,8 @@
|
|||
class Game
|
||||
{
|
||||
static:
|
||||
PlayerSpeed;
|
||||
|
||||
public:Game();
|
||||
void run();
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue