codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#ifndef GAME_HPP_INCLUDED #define GAME_HPP_INCLUDED #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "enums.hpp" class Game { public: Game(); void run(); private: sf::RenderWindow mainWindow; sf::Vector2u windowSize, playableArea; gamestate gameState; std::string windowTitle; sf::Clock clock; sf::Time time; void init(); void processEvents(); void update(); void render(); }; #endif // GAME_HPP_INCLUDED
Private
[
?
]
Run code
Submit