citylimits/scenes/deparments/CoalPlant.tscn
Tony Bark 239fa63a0c Basic AI
- If a power plant is present, the zone animates. Just like the original.
- Your budget also goes through the roof

This is just a proof-of-concept right now, and will likely crash your machine if you leave it on too long.
2023-01-21 05:45:38 -05:00

59 lines
1.8 KiB
Text

[gd_scene load_steps=8 format=2]
[ext_resource path="res://scripts/simtactics/turn_on.gd" type="Script" id=1]
[ext_resource path="res://assets/coal.png" type="Texture" id=2]
[ext_resource path="res://addons/beehave/nodes/composites/sequence.gd" type="Script" id=3]
[ext_resource path="res://scripts/simtactics/zone.gd" type="Script" id=4]
[ext_resource path="res://addons/beehave/nodes/beehave_root.gd" type="Script" id=6]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 32.2297, 31.8602 )
[sub_resource type="Animation" id=2]
resource_name = "Animante"
length = 5.0
loop = true
step = 1.0
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 2, 3, 4 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 1, 2, 3, 4, 6 ]
}
[node name="PowerStation" type="KinematicBody2D"]
input_pickable = true
[node name="BeehaveRoot" type="Node" parent="."]
script = ExtResource( 6 )
[node name="SequenceComposite" type="Node" parent="BeehaveRoot"]
script = ExtResource( 3 )
[node name="TurnOn" type="Node" parent="BeehaveRoot/SequenceComposite"]
script = ExtResource( 1 )
[node name="ActionLeaf" type="Node" parent="BeehaveRoot/SequenceComposite"]
script = ExtResource( 4 )
zone_texture = "res://assets/res_houses.png"
[node name="Quarters" type="Timer" parent="."]
wait_time = 10.0
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
playback_speed = 5.0
anims/Animante = SubResource( 2 )
[node name="RayCast2D" type="RayCast2D" parent="."]