diff options
-rw-r--r-- | main_scene/management.tscn | 5 | ||||
-rw-r--r-- | riot/riot.gd | 3 | ||||
-rw-r--r-- | riot/riot.tscn | 16 |
3 files changed, 21 insertions, 3 deletions
diff --git a/main_scene/management.tscn b/main_scene/management.tscn index 734ad21..a7f511b 100644 --- a/main_scene/management.tscn +++ b/main_scene/management.tscn @@ -163,7 +163,10 @@ margin_left = 379.131 margin_top = 203.762 margin_right = 654.131 margin_bottom = 302.762 -text = "To prevent riots from happening again +text = "Riots result in some of your devs leaving +(just like you, Magnus, please, i just want the kids back, +they are mine too) +To prevent riots from happening again it is recommended you hire some interns to automatically brew coffee for your devs. You can also hire some lawyers so your diff --git a/riot/riot.gd b/riot/riot.gd index 30f18ba..396703d 100644 --- a/riot/riot.gd +++ b/riot/riot.gd @@ -2,13 +2,14 @@ extends Node2D var dev_blueprint = preload("res://riot/angrydev.tscn") onready var manager: Manager = $manager -onready var riot_won: TutorialPopup = $riot_won +onready var riot_won: TutorialPopup = $CanvasLayer/riot_won var time_passed = 0.0 func random_position(): return Vector2(rand_range(30, 1000), rand_range(30, 600)) func _process(delta): time_passed += delta + $CanvasLayer/timer.text = "Security will arive in "+ str(30-time_passed) if time_passed > 30: riot_won.manual_trigger() if time_passed > 30.5: diff --git a/riot/riot.tscn b/riot/riot.tscn index 2833216..4c0bd89 100644 --- a/riot/riot.tscn +++ b/riot/riot.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=8 format=2] [ext_resource path="res://riot/riot.gd" type="Script" id=1] [ext_resource path="res://assets/manager.tres" type="Texture" id=2] @@ -9,6 +9,9 @@ [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 33.1266, 62.8009 ) +[sub_resource type="StyleBoxFlat" id=2] +bg_color = Color( 0, 0.156863, 1, 1 ) + [node name="Node2D" type="Node2D"] script = ExtResource( 1 ) @@ -49,3 +52,14 @@ margin_bottom = 210.218 text = "The security arrived and saved you. For now." identifier = "riot_won" + +[node name="timer" type="Label" parent="CanvasLayer"] +margin_left = 379.417 +margin_top = 18.8558 +margin_right = 574.417 +margin_bottom = 40.8558 +custom_styles/normal = SubResource( 2 ) +custom_colors/font_color = Color( 0, 0, 0, 1 ) +__meta__ = { +"_edit_use_anchors_": false +} |