player scaling

This commit is contained in:
Simon Kellet 2024-08-02 17:26:22 +01:00
parent 88faf2538b
commit db3559b8c6

View File

@ -15,7 +15,7 @@ function Player:new(p, x, y, health, image, speed)
-- Collision Stuff
--self.collider = World:newRectangleCollider(x, y, 50, 62)
self.collider = World:newCircleCollider(x, y, 24)
self.collider = World:newCircleCollider(x, y, 24 * X_SCALE)
self.collider:setFixedRotation(true)
if self.p == 1 then
@ -27,6 +27,8 @@ function Player:new(p, x, y, health, image, speed)
-- Rotation Stuff
self.rotation = math.rad(90)
self.rotSpeed = 2
--self.scaleX = 1 * _G.X_SCALE
--self.scaleY = 1 * _G.Y_SCALE
self.scaleX = 1
self.scaleY = 1
self.originX = self.width / 2