From 152b9439805369aee79a0734927ae0475b97eee9 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Wed, 5 Jan 2022 17:36:21 +0100 Subject: v0.0.3 onwards to better levels --- src/gameplay.hpp | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'src/gameplay.hpp') 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_ -- cgit v1.2.3