CyberTower/scenes/objects/player.tscn
2024-02-16 20:35:30 +08:00

33 lines
1.3 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://cwkcf8h5rspoh"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_sa7t7"]
[ext_resource type="Texture2D" uid="uid://b4daomndc1ag" path="res://assets/player.svg" id="2_3pad2"]
[ext_resource type="PackedScene" uid="uid://h4fxpxqc6bpt" path="res://scenes/objects/bullet.tscn" id="2_v83ov"]
[sub_resource type="CircleShape2D" id="CircleShape2D_k56cq"]
radius = 52.0096
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("dash_cooldown_timer", "weapon_bullet_parent", "fire_cooldown_timer")]
collision_mask = 3
script = ExtResource("1_sa7t7")
dash_cooldown_timer = NodePath("DashCooldown")
weapon_bullet_scene = ExtResource("2_v83ov")
weapon_bullet_parent = NodePath("")
fire_cooldown_timer = NodePath("ShootCooldown")
[node name="DashCooldown" type="Timer" parent="."]
[node name="ShootCooldown" type="Timer" parent="."]
wait_time = 0.2
[node name="PlayerSprite" type="Sprite2D" parent="."]
position = Vector2(1.90735e-06, 1.78814e-06)
scale = Vector2(0.1, 0.1)
texture = ExtResource("2_3pad2")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_k56cq")
[connection signal="timeout" from="DashCooldown" to="." method="_on_dash_cooled_down"]
[connection signal="timeout" from="ShootCooldown" to="." method="_on_fire_cooled_down"]