Browse Source

:tada: Center camera on player

DricomDragon 2 years ago
parent
commit
e2db3b1cd2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      godot/world.tscn

+ 3 - 0
godot/world.tscn

@@ -21,3 +21,6 @@ layer_1/tile_data = PackedInt32Array(65539, 2, 6, 3, 2, 6, -7, 2, 6, -6, 65538,
 
 
 [node name="Player" parent="." instance=ExtResource("2_21hk1")]
 [node name="Player" parent="." instance=ExtResource("2_21hk1")]
 position = Vector2(311, 431)
 position = Vector2(311, 431)
+
+[node name="Camera2d" type="Camera2D" parent="Player"]
+current = true