godot-ultimate-tutorial/scenes/player/player.tscn
2023-10-08 19:29:32 +02:00

56 lines
1.8 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://cdo8mdy41ooe8"]
[ext_resource type="Script" path="res://scenes/player/player.gd" id="1_v2hsv"]
[ext_resource type="Texture2D" uid="uid://dqo0m7ok23wh6" path="res://graphics/player/player.png" id="1_x6dmn"]
[ext_resource type="Script" path="res://scenes/player/camera.gd" id="3_uf66x"]
[sub_resource type="CircleShape2D" id="CircleShape2D_aph52"]
radius = 12.641
[node name="Player" type="CharacterBody2D"]
collision_mask = 31
script = ExtResource("1_v2hsv")
[node name="PlayerImage" type="Sprite2D" parent="."]
position = Vector2(27, -16)
rotation = 1.5708
scale = Vector2(0.901109, 0.901109)
texture = ExtResource("1_x6dmn")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-4, -14)
scale = Vector2(4.8615, 5.02786)
shape = SubResource("CircleShape2D_aph52")
[node name="LaserTimer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="GrenadeTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="LaserStartPositions" type="Node2D" parent="."]
[node name="LaserMarker1" type="Marker2D" parent="LaserStartPositions"]
position = Vector2(115, 0)
[node name="LaserMarker2" type="Marker2D" parent="LaserStartPositions"]
position = Vector2(115, -3)
[node name="LaserMarker3" type="Marker2D" parent="LaserStartPositions"]
position = Vector2(115, 3)
[node name="GrenadeStartPositions" type="Node2D" parent="."]
[node name="GrenadeMarker1" type="Marker2D" parent="GrenadeStartPositions"]
position = Vector2(115, 0)
[node name="Camera" type="Camera2D" parent="."]
zoom = Vector2(0.75, 0.75)
position_smoothing_enabled = true
script = ExtResource("3_uf66x")
[connection signal="timeout" from="LaserTimer" to="." method="_on_laser_timeout"]
[connection signal="timeout" from="GrenadeTimer" to="." method="_on_grenade_timer_timeout"]