Compare commits
No commits in common. "dea8937d65e1c108ab0f748f5e3b8e8089c35a65" and "bda8b1a747bd391684aee928e3f6c8d56477dfd7" have entirely different histories.
dea8937d65
...
bda8b1a747
5 changed files with 1 additions and 73 deletions
|
|
@ -66,7 +66,6 @@ func produce(production: Production):
|
||||||
sync_currency.call_deferred()
|
sync_currency.call_deferred()
|
||||||
var c := get_currency(production.currency)
|
var c := get_currency(production.currency)
|
||||||
c.amount += production.amount
|
c.amount += production.amount
|
||||||
c.amount = clamp(c.amount, 0, 9999)
|
|
||||||
|
|
||||||
func update_currencies():
|
func update_currencies():
|
||||||
productions_update.emit.call_deferred(currencies)
|
productions_update.emit.call_deferred(currencies)
|
||||||
|
|
@ -117,7 +116,6 @@ func get_all_inanimate_currencies() -> Array:
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
%SimulateTickTimer.start()
|
%SimulateTickTimer.start()
|
||||||
update_currencies()
|
update_currencies()
|
||||||
log.emit.call_deferred("Welcome to your kingdom!")
|
|
||||||
|
|
||||||
func _on_timer_timeout() -> void:
|
func _on_timer_timeout() -> void:
|
||||||
if get_tree().current_scene.scene_file_path != "res://game.tscn":
|
if get_tree().current_scene.scene_file_path != "res://game.tscn":
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ config_version=5
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
run/main_scene="uid://d1hx10534r452"
|
run/main_scene="uid://dkui3dlb4vu1c"
|
||||||
config/features=PackedStringArray("4.7")
|
config/features=PackedStringArray("4.7")
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
extends Control
|
|
||||||
|
|
||||||
func _on_button_pressed() -> void:
|
|
||||||
Dialogic.start(preload("res://test/timeline.dtl"))
|
|
||||||
await Dialogic.timeline_ended
|
|
||||||
get_tree().change_scene_to_file("res://game.tscn")
|
|
||||||
|
|
||||||
|
|
||||||
func _on_button_2_pressed() -> void:
|
|
||||||
get_tree().change_scene_to_file("res://game.tscn")
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
uid://qt8u20vettgk
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
[gd_scene format=3 uid="uid://d1hx10534r452"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://qt8u20vettgk" path="res://start_screen.gd" id="1_ncxyx"]
|
|
||||||
|
|
||||||
[node name="StartScreen" type="Control" unique_id=637740603]
|
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
script = ExtResource("1_ncxyx")
|
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=490588497]
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
color = Color(0, 0, 0, 1)
|
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=384868949]
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 7
|
|
||||||
anchor_left = 0.5
|
|
||||||
anchor_top = 1.0
|
|
||||||
anchor_right = 0.5
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
offset_left = -54.0
|
|
||||||
offset_top = -71.0
|
|
||||||
offset_right = 54.0
|
|
||||||
offset_bottom = -31.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 0
|
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="HBoxContainer" unique_id=1726767847]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Play Game"
|
|
||||||
|
|
||||||
[node name="Button2" type="Button" parent="HBoxContainer" unique_id=783169397]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Skip Intro"
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="." unique_id=380038515]
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 5
|
|
||||||
anchor_left = 0.5
|
|
||||||
anchor_right = 0.5
|
|
||||||
offset_left = -481.0
|
|
||||||
offset_top = 77.0
|
|
||||||
offset_right = 482.0
|
|
||||||
offset_bottom = 169.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
theme_override_font_sizes/font_size = 72
|
|
||||||
text = "For King and Currency"
|
|
||||||
|
|
||||||
[connection signal="pressed" from="HBoxContainer/Button" to="." method="_on_button_pressed"]
|
|
||||||
[connection signal="pressed" from="HBoxContainer/Button2" to="." method="_on_button_2_pressed"]
|
|
||||||
Loading…
Add table
Reference in a new issue