112 lines
2.9 KiB
Plaintext
112 lines
2.9 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://player.png" type="Texture" id=2]
|
|
[ext_resource path="res://PlayerFollow.gd" type="Script" id=3]
|
|
[ext_resource path="res://Sword.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://assets/light.png" type="Texture" id=5]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 15.0
|
|
|
|
[node name="Player" type="KinematicBody2D" groups=["player"]]
|
|
script = ExtResource( 1 )
|
|
weapons = ExtResource( 4 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( -1, 0 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
current = true
|
|
zoom = Vector2( 0.7, 0.7 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="Camera2D"]
|
|
|
|
[node name="Score" type="Label" parent="Camera2D/CanvasLayer"]
|
|
margin_left = 2.0
|
|
margin_top = 2.0
|
|
margin_right = 51.0
|
|
margin_bottom = 16.0
|
|
text = "SCORE !"
|
|
|
|
[node name="Victory" type="Label" parent="Camera2D/CanvasLayer"]
|
|
visible = false
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = -135.0
|
|
margin_top = -71.9999
|
|
margin_right = -80.9999
|
|
margin_bottom = -57.9999
|
|
rect_scale = Vector2( 5, 5 )
|
|
text = "VICTORY"
|
|
|
|
[node name="Cheater" type="Label" parent="Camera2D/CanvasLayer"]
|
|
visible = false
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = -243.0
|
|
margin_top = -132.0
|
|
margin_right = -124.0
|
|
margin_bottom = -101.0
|
|
rect_scale = Vector2( 4, 4 )
|
|
text = "Cheater :)
|
|
Press Space to win"
|
|
align = 1
|
|
|
|
[node name="Lose" type="Label" parent="Camera2D/CanvasLayer"]
|
|
visible = false
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -158.0
|
|
margin_top = -27.0
|
|
margin_right = -93.9999
|
|
margin_bottom = -13.0
|
|
rect_scale = Vector2( 5, 5 )
|
|
text = "YOU DIED"
|
|
|
|
[node name="Restart" type="Button" parent="Camera2D/CanvasLayer"]
|
|
visible = false
|
|
margin_left = 139.0
|
|
margin_top = 36.0
|
|
margin_right = 241.0
|
|
margin_bottom = 56.0
|
|
rect_scale = Vector2( 3, 3 )
|
|
text = "Restart game?"
|
|
|
|
[node name="CheatTimer" type="Timer" parent="Camera2D/CanvasLayer"]
|
|
wait_time = 3.0
|
|
|
|
[node name="Light2D2" type="Light2D" parent="."]
|
|
position = Vector2( -0.500001, -4.76837e-07 )
|
|
scale = Vector2( 0.3, 0.3 )
|
|
texture = ExtResource( 5 )
|
|
texture_scale = 4.0
|
|
shadow_enabled = true
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="WeaponTimer" type="Timer" parent="."]
|
|
wait_time = 0.3
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="pressed" from="Camera2D/CanvasLayer/Restart" to="." method="_on_Button_pressed"]
|
|
[connection signal="timeout" from="Camera2D/CanvasLayer/CheatTimer" to="." method="_on_CheatTimer_timeout"]
|
|
[connection signal="timeout" from="WeaponTimer" to="." method="_on_WeaponTimer_timeout"]
|