You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
348 B

#pragma once
#include "olcPixelGameEngine.h"
#include "Rect.h"
class Player{
olc::vf2d pos;
Rect*sprite;
float lastShootTime=0;
public:
Player(olc::vi2d pos,Rect*sprite);
olc::vf2d GetPos();
olc::vi2d GetSprPos();
olc::vi2d GetSprSize();
void Update(float fElapsedTime);
bool CanShoot();
void OnShoot();
void Move(olc::vf2d moveAmt);
};