diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-05 17:36:21 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-05 17:36:21 +0100 |
commit | 152b9439805369aee79a0734927ae0475b97eee9 (patch) | |
tree | 3e14c46360732c45a401b1a38d1cce90d30189b8 /src/gameplay.hpp | |
parent | FINALLY add cowboy (diff) | |
download | threshold-152b9439805369aee79a0734927ae0475b97eee9.tar.gz threshold-152b9439805369aee79a0734927ae0475b97eee9.tar.bz2 threshold-152b9439805369aee79a0734927ae0475b97eee9.tar.xz threshold-152b9439805369aee79a0734927ae0475b97eee9.tar.zst threshold-152b9439805369aee79a0734927ae0475b97eee9.zip |
v0.0.3 onwards to better levels
Diffstat (limited to 'src/gameplay.hpp')
-rw-r--r-- | src/gameplay.hpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/gameplay.hpp b/src/gameplay.hpp index f53b094..e325730 100644 --- a/src/gameplay.hpp +++ b/src/gameplay.hpp @@ -29,17 +29,24 @@ class Game { Camera2D * camera; - public: - Game(std::string const & path); - ~Game(); + int frameWidth; + int frameHeight; - void start() const ; - void draw() const ; - int tick() const ; - int getKeys() const ; - int shoot() const ; + Rectangle sourceRec; - std::string const & getNext() const ; // returns next level's string + Vector2 origin; + + public: + Game(std::string const &path); + ~Game(); + + void start() ; + void draw() const; + int tick() const; + int getKeys() const; + int shoot() const; + + std::string const &getNext() const; // returns next level's string }; #endif // GAMEPLAY_H_ |