aboutsummaryrefslogtreecommitdiff
path: root/src/objs/player.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/objs/player.lua')
-rw-r--r--src/objs/player.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objs/player.lua b/src/objs/player.lua
index 55a8ebe..dee4df5 100644
--- a/src/objs/player.lua
+++ b/src/objs/player.lua
@@ -119,6 +119,9 @@ function new_player(x, y)
layers = {},
mask = { "Hard" },
})
+ add_comp(ent, "Camera")
+ set_active_camera(ent.camera)
+ ent.camera.zoom = 0.5
add_comp(ent, "Sprite", "res/img/player.ase", {
offsetx = 0.5,