Преглед изворни кода

tools: fix new project template

Daniele Bartolini пре 7 година
родитељ
комит
70e1b45a5c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/level_editor/project.vala

+ 1 - 1
tools/level_editor/project.vala

@@ -171,7 +171,7 @@ function Game.update(dt)
 	if Mouse.pressed(Mouse.button_id("right")) then move = true end
 	if Mouse.released(Mouse.button_id("right")) then move = false end
 	if move then delta = Mouse.axis(Mouse.axis_id("cursor_delta")) end
-	Game.camera:update(-delta.x, -delta.y)
+	Game.camera:update(dt, delta.x, delta.y)
 end
 
 function Game.render(dt)