C++ scawy
parent
f3b323d71a
commit
38c898ad9c
|
@ -1,5 +1,8 @@
|
||||||
class Game
|
class Game
|
||||||
{
|
{
|
||||||
|
static:
|
||||||
|
PlayerSpeed;
|
||||||
|
|
||||||
public:Game();
|
public:Game();
|
||||||
void run();
|
void run();
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
#include "Game.hpp"
|
#include "Game.hpp"
|
||||||
|
|
||||||
|
const float Game::PlayerSpeed = 100.f;
|
||||||
|
const sf::Time Game::TimePerFrame = sf::seconds(1.f/60.f);
|
||||||
|
|
||||||
Game::Game()
|
Game::Game()
|
||||||
: mWindow(sf::VideoMode(640, 480), "SFML Application")
|
: mWindow(sf::VideoMode(640, 480), "SFML Application")
|
||||||
, mPlayer()
|
, mPlayer()
|
||||||
|
|
Loading…
Reference in New Issue