🎉 Start developing!

This commit is contained in:
2024-02-16 18:10:00 +08:00
commit 23143ba9bf
14 changed files with 271 additions and 0 deletions

View File

@ -0,0 +1,23 @@
[gd_scene load_steps=4 format=3 uid="uid://cwkcf8h5rspoh"]
[ext_resource type="Script" path="res://scripts/PlayerMovement.gd" id="1_e1gjl"]
[ext_resource type="Texture2D" uid="uid://b4daomndc1ag" path="res://assets/player.svg" id="2_3pad2"]
[sub_resource type="CircleShape2D" id="CircleShape2D_k56cq"]
radius = 52.0096
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("dash_cooldown_timer")]
script = ExtResource("1_e1gjl")
dash_cooldown_timer = NodePath("DashCooldown")
[node name="DashCooldown" type="Timer" parent="."]
[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_cooled_down"]

17
scenes/objects/tower.tscn Normal file
View File

@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=3 uid="uid://cxlgt8h33u7os"]
[ext_resource type="Script" path="res://scripts/Tower.gd" id="1_58egr"]
[ext_resource type="Texture2D" uid="uid://jxub8lma4oud" path="res://assets/tower_background.svg" id="2_ynj1l"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7mogk"]
radius = 129.139
[node name="Tower" type="Area2D"]
script = ExtResource("1_58egr")
[node name="TowerSprite" type="Sprite2D" parent="."]
scale = Vector2(0.25, 0.25)
texture = ExtResource("2_ynj1l")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_7mogk")