Rename camera body, tweak collissions
This commit is contained in:
parent
2365ba765c
commit
c8e9a93ffe
|
|
@ -4,7 +4,7 @@
|
|||
[ext_resource path="res://src/levels/TestBox.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://src/ui/HUD.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://src/ui/scene_transition.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://src/camera_control.gd" type="Script" id=5]
|
||||
[ext_resource path="res://src/camera_guide.gd" type="Script" id=5]
|
||||
[ext_resource path="res://src/game_camera.gd" type="Script" id=6]
|
||||
|
||||
[sub_resource type="Shader" id=2]
|
||||
|
|
@ -50,18 +50,17 @@ position = Vector2( 112, 56 )
|
|||
|
||||
[node name="UI_Layer" parent="ViewportContainer/Viewport" instance=ExtResource( 3 )]
|
||||
|
||||
[node name="KinematicBody2D" type="KinematicBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="CameraGuide" type="KinematicBody2D" parent="ViewportContainer/Viewport"]
|
||||
position = Vector2( 160, 90 )
|
||||
collision_layer = 0
|
||||
collision_mask = 256
|
||||
collision/safe_margin = 0.25
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/KinematicBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CameraGuide"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="ViewportContainer/Viewport"]
|
||||
position = Vector2( 160, 90 )
|
||||
current = true
|
||||
script = ExtResource( 6 )
|
||||
tracking_node_path = NodePath("../KinematicBody2D")
|
||||
tracking_node_path = NodePath("../CameraGuide")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user