added price economy
This commit is contained in:
+19
-2
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://bmscox3qtwvs2"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://bmscox3qtwvs2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/level.gd" id="1_3qps3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7wvhwsys1ll4" path="res://resources/backgrounds/levelbg.webp" id="1_7ct6t"]
|
||||
@@ -9,6 +9,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://s6hl2xf6o6sg" path="res://scenes/ball_vendor_object.tscn" id="4_y3846"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsqcbd2cffw6e" path="res://balls/speed/speed.webp" id="5_mxuen"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1i1fp3xbp6ly" path="res://blocks/block.tscn" id="7_7fnx3"]
|
||||
[ext_resource type="Script" path="res://scenes/money_label.gd" id="7_wjy10"]
|
||||
[ext_resource type="Script" path="res://misc/ball_vendor.gd" id="9_qgihr"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3mf1b"]
|
||||
@@ -71,7 +72,7 @@ horizontal_alignment = 1
|
||||
layout_mode = 2
|
||||
offset_top = 260.0
|
||||
offset_right = 340.0
|
||||
offset_bottom = 1040.0
|
||||
offset_bottom = 960.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_3mf1b")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="GUI/Panel"]
|
||||
@@ -96,6 +97,17 @@ _ball_texture = ExtResource("5_mxuen")
|
||||
_ball_name = "Speed Ball"
|
||||
_ball_id = 2
|
||||
|
||||
[node name="MoneyLabel" type="RichTextLabel" parent="GUI"]
|
||||
layout_mode = 0
|
||||
offset_top = 980.0
|
||||
offset_right = 340.0
|
||||
offset_bottom = 1058.0
|
||||
theme_override_fonts/normal_font = ExtResource("2_musvo")
|
||||
theme_override_font_sizes/normal_font_size = 50
|
||||
bbcode_enabled = true
|
||||
text = "[wave amp=70.0 freq=6.0 connected=1]$400[/wave]"
|
||||
script = ExtResource("7_wjy10")
|
||||
|
||||
[node name="GameContent" type="Node2D" parent="."]
|
||||
|
||||
[node name="WorldBoundary" type="StaticBody2D" parent="GameContent"]
|
||||
@@ -167,3 +179,8 @@ position = Vector2(1140, 540)
|
||||
|
||||
[node name="BallVendor" type="Node2D" parent="."]
|
||||
script = ExtResource("9_qgihr")
|
||||
_basic_ball = 10
|
||||
_speed_ball = 40
|
||||
|
||||
[connection signal="on_update_ball_price" from="BallVendor" to="GUI/Panel/MarginContainer/VBoxContainer/VendorBasic" method="_on_update_ball_price"]
|
||||
[connection signal="on_update_ball_price" from="BallVendor" to="GUI/Panel/MarginContainer/VBoxContainer/VendorSpeed" method="_on_update_ball_price"]
|
||||
|
||||
Reference in New Issue
Block a user