mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 17:59:21 +01:00
Add sun / moon, started on score / GameManager
This commit is contained in:
21
Game/Levels/World/OrbitingObject.h
Normal file
21
Game/Levels/World/OrbitingObject.h
Normal 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 };
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user