CyberTower/scenes/objects/player.tscn

33 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-02-16 12:35:30 +00:00
[gd_scene load_steps=5 format=3 uid="uid://cwkcf8h5rspoh"]
2024-02-16 10:10:00 +00:00
2024-02-16 12:35:30 +00:00
[ext_resource type="Script" path="res://scripts/player.gd" id="1_sa7t7"]
2024-02-16 15:35:39 +00:00
[ext_resource type="Texture2D" uid="uid://b4daomndc1ag" path="res://assets/images/player.svg" id="2_3pad2"]
2024-02-16 12:35:30 +00:00
[ext_resource type="PackedScene" uid="uid://h4fxpxqc6bpt" path="res://scenes/objects/bullet.tscn" id="2_v83ov"]
2024-02-16 10:10:00 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_k56cq"]
radius = 52.0096
2024-02-16 12:35:30 +00:00
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("dash_cooldown_timer", "weapon_bullet_parent", "fire_cooldown_timer")]
collision_mask = 3
script = ExtResource("1_sa7t7")
2024-02-16 10:10:00 +00:00
dash_cooldown_timer = NodePath("DashCooldown")
2024-02-16 12:35:30 +00:00
weapon_bullet_scene = ExtResource("2_v83ov")
weapon_bullet_parent = NodePath("")
fire_cooldown_timer = NodePath("ShootCooldown")
2024-02-16 10:10:00 +00:00
[node name="DashCooldown" type="Timer" parent="."]
2024-02-16 12:35:30 +00:00
[node name="ShootCooldown" type="Timer" parent="."]
wait_time = 0.2
2024-02-16 10:10:00 +00:00
[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")
2024-02-16 12:35:30 +00:00
[connection signal="timeout" from="DashCooldown" to="." method="_on_dash_cooled_down"]
[connection signal="timeout" from="ShootCooldown" to="." method="_on_fire_cooled_down"]