SpelunkyRemake / Platform.h
Platform.h
Raw
#pragma once
#include "Texture.h"

class Platform
{
public:
	Platform(const Point2f& bottomLeft);
	
	void Draw() const;
	void HandleCollision(Rectf& actorShape, Vector2f& actorVelocity) const;
	bool IsOnGround(const Rectf& actorShape, Vector2f& actorVelocity) const;

private:
	Rectf m_Shape;
	Texture m_Texture;
};