diff options
Diffstat (limited to 'riot')
-rw-r--r-- | riot/angrydev.tscn | 2 | ||||
-rw-r--r-- | riot/riot.gd | 14 | ||||
-rw-r--r-- | riot/riot.tscn | 27 |
3 files changed, 40 insertions, 3 deletions
diff --git a/riot/angrydev.tscn b/riot/angrydev.tscn index dc80f17..e7f5fb2 100644 --- a/riot/angrydev.tscn +++ b/riot/angrydev.tscn @@ -14,7 +14,7 @@ extents = Vector2( 7.90784, 32.0742 ) [node name="Node2D" type="Node2D"] position = Vector2( -24.1174, 33.1615 ) script = ExtResource( 3 ) -speed = 80.0 +speed = 60.0 laser_pitchfork_texture = ExtResource( 4 ) [node name="body" type="Sprite" parent="."] diff --git a/riot/riot.gd b/riot/riot.gd index 2efafc3..331b290 100644 --- a/riot/riot.gd +++ b/riot/riot.gd @@ -2,9 +2,23 @@ extends Node2D var dev_blueprint = preload("res://riot/angrydev.tscn") onready var manager: Manager = $manager +onready var riot_won: TutorialPopup = $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 + if time_passed > 30: + riot_won.manual_trigger() + if time_passed > 30.5: + for child in get_parent().get_children(): + if child is CanvasItem: + child.show() + child.pause_mode = PAUSE_MODE_INHERIT + SaveState.riot_cooldown = 20 + queue_free() + var devs = [] func _ready() -> void: for i in range(SaveState.upgrades['wageslavery'] + 1): diff --git a/riot/riot.tscn b/riot/riot.tscn index f80c768..46937bf 100644 --- a/riot/riot.tscn +++ b/riot/riot.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=7 format=2] [ext_resource path="res://riot/riot.gd" type="Script" id=1] [ext_resource path="res://assets/manager.tres" type="Texture" id=2] [ext_resource path="res://riot/manager.gd" type="Script" id=3] +[ext_resource path="res://tutorial/riot.gd" type="Script" id=4] +[ext_resource path="res://tutorial/popup.tscn" type="PackedScene" id=5] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 33.1266, 62.8009 ) @@ -11,7 +13,7 @@ extents = Vector2( 33.1266, 62.8009 ) script = ExtResource( 1 ) [node name="manager" type="KinematicBody2D" parent="."] -position = Vector2( 600.978, 319.858 ) +position = Vector2( 717.859, 323.754 ) script = ExtResource( 3 ) speed = 200.0 @@ -24,3 +26,24 @@ texture = ExtResource( 2 ) [node name="midpoint_marker" type="Node2D" parent="manager"] position = Vector2( -13.5661, -3.01468 ) + +[node name="riot" parent="." instance=ExtResource( 5 )] +visible = false +margin_left = 379.864 +margin_top = 212.334 +margin_right = 462.864 +margin_bottom = 243.334 +text = "Your developers are rioting. Because you paid to +little attention to their (coffee) needs they thirst for +blood instead. Run as fast as you can!" +script = ExtResource( 4 ) +identifier = "riot" + +[node name="riot_won" parent="." instance=ExtResource( 5 )] +margin_left = 374.02 +margin_top = 179.218 +margin_right = 457.02 +margin_bottom = 210.218 +text = "The security arrived and saved you. +For now." +identifier = "riot_won" |