Reformat + Basic animation system

General fixes
This commit is contained in:
Bram Verhulst
2024-04-01 10:27:37 +02:00
parent 3b9c96ea8d
commit 0f9bb76973
28 changed files with 918 additions and 546 deletions

View File

@@ -1,10 +1,8 @@
#pragma once
#include <vector>
#include "BaseGame.h"
#include "Camera.h"
#include "WorldLevel.h"
#include "WorldTile.h"
class Game : public BaseGame
{
@@ -15,7 +13,7 @@ public:
Game(Game&& other) = delete;
Game& operator=(Game&& other) = delete;
// http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rh-override
~Game();
~Game() override;
void Update(float elapsedSec) override;
void Draw() const override;
@@ -40,8 +38,8 @@ private:
Camera m_Camera;
WorldLevel m_WorldLevel;
Point2f m_MousePos{};
Point2f m_MouseOffset{};
bool m_IsRightMouseDown{};
Point2f m_MousePos {};
Point2f m_MouseOffset {};
bool m_IsRightMouseDown {};
};