mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 09:59:20 +01:00
Started on GuiIcon, General fixes
This commit is contained in:
10
Game/Particle/Particle.cpp
Normal file
10
Game/Particle/Particle.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "pch.h"
|
||||
#include "Particle.h"
|
||||
Particle::Particle(const Vector2f& pos, const Vector2f& velocity, Texture* pTexture): m_Position{ pos }, m_Velocity{ velocity }, m_pTexture{ pTexture }
|
||||
{}
|
||||
void Particle::Update(float elapsedSec) {
|
||||
|
||||
}
|
||||
void Particle::Draw() const {
|
||||
|
||||
}
|
||||
16
Game/Particle/Particle.h
Normal file
16
Game/Particle/Particle.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "Texture.h"
|
||||
|
||||
class Particle {
|
||||
public:
|
||||
Particle() = default;
|
||||
Particle(const Vector2f& pos, const Vector2f& velocity, Texture* pTexture);
|
||||
void Update(float elapsedSec);
|
||||
void Draw() const;
|
||||
private:
|
||||
Vector2f m_Position;
|
||||
Vector2f m_Velocity;
|
||||
Vector2f m_Acceleration;
|
||||
|
||||
Texture* m_pTexture;
|
||||
};
|
||||
Reference in New Issue
Block a user