More upgrades

This commit is contained in:
2024-02-17 12:04:43 +08:00
parent 8be0789b17
commit f8bb0d3975
11 changed files with 97 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=10 format=3 uid="uid://l4mybb2dw107"]
[gd_scene load_steps=11 format=3 uid="uid://l4mybb2dw107"]
[ext_resource type="PackedScene" uid="uid://cwkcf8h5rspoh" path="res://scenes/objects/player.tscn" id="1_nq1ke"]
[ext_resource type="PackedScene" uid="uid://cxlgt8h33u7os" path="res://scenes/objects/tower.tscn" id="2_betjv"]
@@ -8,10 +8,11 @@
[ext_resource type="PackedScene" uid="uid://cjam63kp5sg2o" path="res://scenes/ui/stats_overlay.tscn" id="5_rymed"]
[ext_resource type="PackedScene" uid="uid://dy51uqtr2ng32" path="res://scenes/ui/finish_screen.tscn" id="6_b264x"]
[ext_resource type="PackedScene" uid="uid://5mt7abqkbpei" path="res://scenes/ui/reward_claim_screen.tscn" id="6_t43s0"]
[ext_resource type="JSON" path="res://behaviours/rewards.json" id="7_yubu4"]
[sub_resource type="Curve2D" id="Curve2D_gwd20"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -309, -271, 0, 0, 0, 0, -309, 850, 0, 0, 0, 0, 1369, 849, 0, 0, 0, 0, 1368, -272, 0, 0, 0, 0, -309, -271)
"points": PackedVector2Array(0, 0, 0, 0, -174, -153, 0, 0, 0, 0, -170, 795, 0, 0, 0, 0, 1362, 801, 0, 0, 0, 0, 1358, -153, 0, 0, 0, 0, -174, -151)
}
point_count = 5
@@ -34,8 +35,8 @@ statistics = NodePath("../Statistics")
curve = SubResource("Curve2D_gwd20")
[node name="EnemySpawnPoint" type="PathFollow2D" parent="EnemySpawnPath"]
position = Vector2(-309, -271)
rotation = 1.5708
position = Vector2(-174, -153)
rotation = 1.56658
[node name="StatsOverlay" parent="." node_paths=PackedStringArray("stats") instance=ExtResource("5_rymed")]
stats = NodePath("../Statistics")
@@ -44,6 +45,7 @@ stats = NodePath("../Statistics")
visible = false
tower = NodePath("../Tower")
player = NodePath("../Player")
behaviour_asset = ExtResource("7_yubu4")
[node name="FinishScreen" parent="." node_paths=PackedStringArray("stats") instance=ExtResource("6_b264x")]
visible = false

View File

@@ -7,18 +7,17 @@
[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")]
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("dash_cooldown_timer", "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
wait_time = 0.8
[node name="PlayerSprite" type="Sprite2D" parent="."]
position = Vector2(1.90735e-06, 1.78814e-06)

View File

@@ -25,10 +25,21 @@ offset_right = 1152.0
offset_bottom = 648.0
theme_override_styles/panel = SubResource("StyleBoxFlat_3xnq2")
[node name="RewardContainer" type="HBoxContainer" parent="Panel"]
[node name="Title" type="Label" parent="Panel"]
layout_mode = 0
offset_left = 32.0
offset_top = 32.0
offset_right = 1120.0
offset_bottom = 88.0
theme_override_font_sizes/font_size = 28
text = "Pick a Upgrade"
horizontal_alignment = 1
vertical_alignment = 1
[node name="RewardContainer" type="HBoxContainer" parent="Panel"]
layout_mode = 0
offset_left = 32.0
offset_top = 96.0
offset_right = 1120.0
offset_bottom = 616.0
alignment = 1

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://scripts/ui/reward_item.gd" id="1_v4j3k"]
[node name="RewardItem" type="Panel"]
custom_minimum_size = Vector2(360, 584)
custom_minimum_size = Vector2(360, 520)
script = ExtResource("1_v4j3k")
[node name="Title" type="Label" parent="."]
@@ -29,15 +29,15 @@ layout_mode = 0
offset_left = 52.0
offset_top = 208.0
offset_right = 308.0
offset_bottom = 504.0
offset_bottom = 432.0
bbcode_enabled = true
text = "This is the world most powerful reward. Trust me, choose this is a great choice."
[node name="ClaimButton" type="Button" parent="."]
offset_left = 52.0
offset_top = 520.0
offset_top = 448.0
offset_right = 308.0
offset_bottom = 552.0
offset_bottom = 480.0
text = "Claim"
[connection signal="pressed" from="ClaimButton" to="." method="_on_claim"]