A free/libre fast-paced arcade collection of mini-games. https://yeldham.itch.io/librerama
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

136 lines
4.1 KiB

[gd_scene load_steps=12 format=2]
[ext_resource path="res://nanogames/thing_factory/main.gd" type="Script" id=1]
[ext_resource path="res://nanogames/thing_factory/conveyor/conveyor.tscn" type="PackedScene" id=2]
[ext_resource path="res://nanogames/thing_factory/assets/sign.svg" type="Texture" id=3]
[ext_resource path="res://nanogames/thing_factory/assets/background.svg" type="Texture" id=4]
[ext_resource path="res://nanogames/thing_factory/assets/music.ogg" type="AudioStream" id=5]
[ext_resource path="res://nanogames/thing_factory/assets/alarm.wav" type="AudioStream" id=6]
[ext_resource path="res://shaders/texture_scroll_zigzag.shader" type="Shader" id=7]
[ext_resource path="res://nanogames/thing_factory/thing/thing.tscn" type="PackedScene" id=8]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 7 )
shader_param/direction_speed = Vector2( 0, 0.5 )
shader_param/offset_x = 0.0
shader_param/offset_y = 0.0
[sub_resource type="Animation" id=2]
length = 0.6
tracks/0/type = "value"
tracks/0/path = NodePath("ThingSign/ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0.2, 0.4, 0.6 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 3,
"values": [ Color( 0.776471, 0.133333, 0.329412, 1 ), Color( 0.811765, 0.447059, 0.556863, 1 ), Color( 0.776471, 0.133333, 0.329412, 1 ) ]
}
[sub_resource type="Animation" id=3]
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("ThingSign/ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0.568627, 0.784314, 0.729412, 1 ), Color( 0.168627, 0.717647, 0.584314, 1 ) ]
}
[node name="Main" type="Node2D"]
script = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = -1
[node name="Background" type="TextureRect" parent="CanvasLayer"]
material = SubResource( 1 )
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 4 )
stretch_mode = 2
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Conveyors" type="VBoxContainer" parent="CanvasLayer"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -480.0
margin_top = -115.0
margin_right = 480.0
margin_bottom = 360.0
custom_constants/separation = 110
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Conveyor" parent="CanvasLayer/Conveyors" instance=ExtResource( 2 )]
margin_top = 31.0
margin_bottom = 95.0
[node name="Conveyor2" parent="CanvasLayer/Conveyors" instance_placeholder="res://nanogames/thing_factory/conveyor/conveyor.tscn"]
margin_top = 205.0
margin_bottom = 269.0
[node name="Conveyor3" parent="CanvasLayer/Conveyors" instance_placeholder="res://nanogames/thing_factory/conveyor/conveyor.tscn"]
margin_top = 379.0
margin_bottom = 443.0
[node name="ThingSign" type="Sprite" parent="."]
position = Vector2( 480, 83 )
texture = ExtResource( 3 )
[node name="ThingCorrect" parent="ThingSign" instance=ExtResource( 8 )]
position = Vector2( -48, 0 )
input_pickable = false
[node name="ColorRect" type="ColorRect" parent="ThingSign"]
show_behind_parent = true
margin_left = -118.0
margin_top = -58.0
margin_right = 118.0
margin_bottom = 58.0
color = Color( 0.568627, 0.784314, 0.729412, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 480, 360 )
current = true
[node name="ThingSpawn" type="Timer" parent="."]
wait_time = 0.8
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
autoplay = true
bus = "Music"
[node name="Alarm" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
bus = "Effects"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
anims/fail = SubResource( 2 )
anims/idle = SubResource( 3 )
[connection signal="end_reached" from="CanvasLayer/Conveyors/Conveyor" to="." method="_on_conveyor_end_reached"]
[connection signal="timeout" from="ThingSpawn" to="." method="_spawn_things"]