Add sun / moon, started on score / GameManager

This commit is contained in:
Bram Verhulst
2024-05-16 12:44:53 +02:00
parent 8866f33c09
commit 3c83e566dd
12 changed files with 176 additions and 35 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include "Texture.h"
class OrbitingObject {
public:
OrbitingObject(const Vector2f& orbit, float distance, float speed, Texture* texture, float offset = 0);
void Update(float elapsedSecs);
void Draw() const;
private:
Texture* m_Texture;
Vector2f m_Position;
Vector2f m_Orbit;
float m_Distance;
float m_Speed;
float m_currentCycle{ 0 };
};