udpated SDL_GetTicks() to SDL_GetTicks64()

This commit is contained in:
2022-05-30 14:02:21 -04:00
parent 4aa7fe1692
commit 70402c5382
6 changed files with 53 additions and 23 deletions

View File

@ -24,7 +24,7 @@ public:
int height = 40;
int width = 30;
int scale = 1;
int speed = 2;
int speed = 1;
TransformComponent()
{
@ -54,6 +54,16 @@ public:
speed = speed*sc;
}
TransformComponent(int x, int y, int w, int h, int sc, int spd)
{
position.x = x;
position.y = y;
width = w;
height = h;
scale = sc;
speed = spd*sc;
}
void init() override
{
velocity.Zero();