udpated SDL_GetTicks() to SDL_GetTicks64()
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user