infinite scroll

This commit is contained in:
2022-12-11 00:43:30 +01:00
36 changed files with 1307 additions and 235 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://biyvvql2ufkdf"
path.s3tc="res://.godot/imported/Opera_senza_titolo (1).png-25dbee0de56c7859add7106467c21436.s3tc.ctex"
path.etc2="res://.godot/imported/Opera_senza_titolo (1).png-25dbee0de56c7859add7106467c21436.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Opera_senza_titolo (1).png"
dest_files=["res://.godot/imported/Opera_senza_titolo (1).png-25dbee0de56c7859add7106467c21436.s3tc.ctex", "res://.godot/imported/Opera_senza_titolo (1).png-25dbee0de56c7859add7106467c21436.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bhmyyu0uhx541"
path.s3tc="res://.godot/imported/Opera_senza_titolo (2).png-18daf683486c3c1f1928755a41dbce09.s3tc.ctex"
path.etc2="res://.godot/imported/Opera_senza_titolo (2).png-18daf683486c3c1f1928755a41dbce09.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Opera_senza_titolo (2).png"
dest_files=["res://.godot/imported/Opera_senza_titolo (2).png-18daf683486c3c1f1928755a41dbce09.s3tc.ctex", "res://.godot/imported/Opera_senza_titolo (2).png-18daf683486c3c1f1928755a41dbce09.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cet5o7wla1x7t"
path.s3tc="res://.godot/imported/Opera_senza_titolo.png-b572925c3cfbdcda723be9c32de6e84b.s3tc.ctex"
path.etc2="res://.godot/imported/Opera_senza_titolo.png-b572925c3cfbdcda723be9c32de6e84b.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Opera_senza_titolo.png"
dest_files=["res://.godot/imported/Opera_senza_titolo.png-b572925c3cfbdcda723be9c32de6e84b.s3tc.ctex", "res://.godot/imported/Opera_senza_titolo.png-b572925c3cfbdcda723be9c32de6e84b.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@@ -1,7 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://vwjd5od63jgh"]
[gd_scene load_steps=4 format=3 uid="uid://vwjd5od63jgh"]
[ext_resource type="Script" path="res://scripts/Player.gd" id="1_dta8q"]
[ext_resource type="Texture2D" uid="uid://7qppu15lvd1j" path="res://Nodes/Keys.png" id="2_h1504"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_h8ivv"]
radius = 0.494048
@@ -11,6 +10,7 @@ radius = 0.808068
[node name="CharacterBody3D" type="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
collision_mask = 3
script = ExtResource("1_dta8q")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
@@ -22,24 +22,3 @@ shape = SubResource("CylinderShape3D_h8ivv")
[node name="CollisionShape3D" type="CollisionShape3D" parent="HitBox"]
transform = Transform3D(2.74062, 0, 0, 0, 2.24144, 0, 0, 0, 2.70992, 0, 0, 0)
shape = SubResource("CylinderShape3D_8lrgm")
[node name="MiniGameButton0" type="Sprite3D" parent="."]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 0, 6, 0)
texture = ExtResource("2_h1504")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton1" type="Sprite3D" parent="."]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 1.5, 6, 0)
texture = ExtResource("2_h1504")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton2" type="Sprite3D" parent="."]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 3, 6, 0)
texture = ExtResource("2_h1504")
hframes = 5
vframes = 8
frame = 26

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=23 format=3 uid="uid://md2ofbviios3"]
[gd_scene load_steps=20 format=3 uid="uid://md2ofbviios3"]
[ext_resource type="Script" path="res://scripts/Train.gd" id="1_0x664"]
[ext_resource type="PackedScene" uid="uid://bhivunrkj87cy" path="res://Nodes/engine.tscn" id="3_1ix85"]
@@ -15,21 +15,10 @@
[ext_resource type="Texture2D" uid="uid://ctbxpx6p36bdi" path="res://walking_ball2.png" id="8_0u1e2"]
[ext_resource type="Texture2D" uid="uid://ckdlv6b7okseq" path="res://walking_powder2.png" id="10_a137a"]
[ext_resource type="Texture2D" uid="uid://b5ioch3ad8y6r" path="res://walking_coal2.png" id="11_1jgcf"]
[ext_resource type="Texture2D" uid="uid://7qppu15lvd1j" path="res://Nodes/Keys.png" id="13_d8wle"]
[ext_resource type="PackedScene" uid="uid://bkpnrgcfr1jgl" path="res://Nodes/Bin.tscn" id="16_q3kvk"]
[ext_resource type="AudioStream" uid="uid://b52sd64x20ulv" path="res://Assets/Sounds/_SOUNDFX_/Gunpowder.wav" id="17_ajifv"]
[sub_resource type="BoxShape3D" id="BoxShape3D_okaqh"]
size = Vector3(1, 3.77669, 24)
[sub_resource type="BoxShape3D" id="BoxShape3D_0svax"]
size = Vector3(12, 1, 24)
[sub_resource type="BoxShape3D" id="BoxShape3D_torlc"]
size = Vector3(12, 4, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_sm5ue"]
size = Vector3(1, 6, 9.05915)
[sub_resource type="SpriteFrames" id="SpriteFrames_6p0y6"]
animations = [{
"frames": [ExtResource("4_c3xfc")],
@@ -77,36 +66,6 @@ animations = [{
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, 0, 0, 0)
script = ExtResource("1_0x664")
[node name="train" parent="." instance=ExtResource("3_jmv6b")]
transform = Transform3D(-6.55671e-08, 0, 1.5, 0, 1.5, 0, -1.5, 0, -6.55671e-08, 3, 0, 9)
[node name="StaticBody3D" type="StaticBody3D" parent="train"]
transform = Transform3D(-2.91409e-08, 0, -0.666667, 0, 0.666667, 0, 0.666667, 0, -2.91409e-08, 6, -0.137826, -1.33333)
[node name="CollisionShape3D2" type="CollisionShape3D" parent="train/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.5, 2, 4.23516e-22)
shape = SubResource("BoxShape3D_okaqh")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="train/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.5, 2, 3.55271e-15)
shape = SubResource("BoxShape3D_okaqh")
[node name="CollisionShape3D" type="CollisionShape3D" parent="train/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -3.55271e-15)
shape = SubResource("BoxShape3D_0svax")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="train/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 2, -12)
shape = SubResource("BoxShape3D_torlc")
[node name="CollisionShape3D5" type="CollisionShape3D" parent="train/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 2, 12)
shape = SubResource("BoxShape3D_torlc")
[node name="CollisionShape3D6" type="CollisionShape3D" parent="train/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 3, -1.52864)
shape = SubResource("BoxShape3D_sm5ue")
[node name="CharacterBody3D" parent="." instance=ExtResource("3_in6up")]
transform = Transform3D(1, 0, -3.55271e-15, 0, 1, 0, 3.55271e-15, 0, 1, 3.19744e-14, 3, -9)
@@ -117,6 +76,27 @@ animation = &"walking_coal"
speed_scale = 2.0
playing = true
[node name="MiniGameButton0" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 0, 6, 0)
texture = ExtResource("13_d8wle")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton1" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 1.5, 6, 0)
texture = ExtResource("13_d8wle")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton2" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 3, 6, 0)
texture = ExtResource("13_d8wle")
hframes = 5
vframes = 8
frame = 26
[node name="Storage" parent="." instance=ExtResource("4_5jw5g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31598, 0.0193453, -5.2771)
@@ -140,3 +120,6 @@ transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.7029
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.63306, -0.501894, -11.5457)
currentType = 1
audioClip = ExtResource("17_ajifv")
[node name="train" parent="." instance=ExtResource("3_jmv6b")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0)

125
Nodes/Train_P1_2.tscn Normal file
View File

@@ -0,0 +1,125 @@
[gd_scene load_steps=20 format=3 uid="uid://c3p3k8ytvc32e"]
[ext_resource type="Script" path="res://scripts/Train.gd" id="1_hg4dh"]
[ext_resource type="PackedScene" uid="uid://vwjd5od63jgh" path="res://Nodes/Player.tscn" id="2_0fjcv"]
[ext_resource type="Texture2D" uid="uid://dsphpbpt27t1i" path="res://a3TCqhg.png" id="3_jfnq6"]
[ext_resource type="Texture2D" uid="uid://d1m2jplf8u0h0" path="res://Nodes/walking_ball1.png" id="4_felkj"]
[ext_resource type="Texture2D" uid="uid://b5hai0ap763xu" path="res://walking_coal1.png" id="5_t3pnu"]
[ext_resource type="Texture2D" uid="uid://d35iaj0nq122a" path="res://walking_powder1.png" id="6_0vuit"]
[ext_resource type="Texture2D" uid="uid://eg0k8esm2scp" path="res://p5lFkJY.png" id="7_37us6"]
[ext_resource type="Texture2D" uid="uid://du7d6fk4dabd7" path="res://cVOQuID.png" id="8_uawfa"]
[ext_resource type="Texture2D" uid="uid://ctbxpx6p36bdi" path="res://walking_ball2.png" id="9_ssjd8"]
[ext_resource type="Texture2D" uid="uid://b5ioch3ad8y6r" path="res://walking_coal2.png" id="10_y3g4p"]
[ext_resource type="Texture2D" uid="uid://ckdlv6b7okseq" path="res://walking_powder2.png" id="11_h0rqm"]
[ext_resource type="Texture2D" uid="uid://7qppu15lvd1j" path="res://Nodes/Keys.png" id="12_287nh"]
[ext_resource type="PackedScene" uid="uid://cet80w4yr8rse" path="res://Storage.tscn" id="13_3fxhr"]
[ext_resource type="PackedScene" uid="uid://byo1m0n20yl45" path="res://Nodes/cannon.tscn" id="14_3pfub"]
[ext_resource type="PackedScene" uid="uid://bhivunrkj87cy" path="res://Nodes/engine.tscn" id="15_4kp3s"]
[ext_resource type="PackedScene" uid="uid://bkpnrgcfr1jgl" path="res://Nodes/Bin.tscn" id="16_ep4dv"]
[ext_resource type="AudioStream" uid="uid://b52sd64x20ulv" path="res://Assets/Sounds/_SOUNDFX_/Gunpowder.wav" id="17_06sqf"]
[ext_resource type="PackedScene" uid="uid://c1mymb38wqdg6" path="res://Nodes/train.tscn" id="18_6adfq"]
[sub_resource type="SpriteFrames" id="SpriteFrames_6p0y6"]
animations = [{
"frames": [ExtResource("3_jfnq6")],
"loop": true,
"name": &"idle",
"speed": 1.0
}, {
"frames": [ExtResource("4_felkj")],
"loop": true,
"name": &"idle_ball",
"speed": 1.0
}, {
"frames": [ExtResource("5_t3pnu")],
"loop": true,
"name": &"idle_coal",
"speed": 1.0
}, {
"frames": [ExtResource("6_0vuit")],
"loop": true,
"name": &"idle_powder",
"speed": 1.0
}, {
"frames": [ExtResource("7_37us6"), ExtResource("8_uawfa")],
"loop": true,
"name": &"walking",
"speed": 2.0
}, {
"frames": [ExtResource("4_felkj"), ExtResource("9_ssjd8")],
"loop": true,
"name": &"walking_ball",
"speed": 2.0
}, {
"frames": [ExtResource("5_t3pnu"), ExtResource("10_y3g4p")],
"loop": true,
"name": &"walking_coal",
"speed": 2.0
}, {
"frames": [ExtResource("6_0vuit"), ExtResource("11_h0rqm")],
"loop": true,
"name": &"walking_powder",
"speed": 2.0
}]
[node name="Train1" type="Node3D"]
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, 0, 0, 0)
script = ExtResource("1_hg4dh")
[node name="CharacterBody3D" parent="." instance=ExtResource("2_0fjcv")]
transform = Transform3D(1, 0, -3.55271e-15, 0, 1, 0, 3.55271e-15, 0, 1, 3.19744e-14, 3, -9)
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="CharacterBody3D"]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, 0, -2, 0)
frames = SubResource("SpriteFrames_6p0y6")
animation = &"walking_coal"
speed_scale = 2.0
playing = true
[node name="MiniGameButton0" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 0, 6, 0)
texture = ExtResource("12_287nh")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton1" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 1.5, 6, 0)
texture = ExtResource("12_287nh")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton2" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 3, 6, 0)
texture = ExtResource("12_287nh")
hframes = 5
vframes = 8
frame = 26
[node name="Storage" parent="." instance=ExtResource("13_3fxhr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31598, 0.0193453, -5.2771)
[node name="Storage2" parent="." instance=ExtResource("13_3fxhr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31598, 0.0193453, 0.876562)
currentType = 2
[node name="Cannon" parent="." instance=ExtResource("14_3pfub")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.32927, 1.2303, 0.0486939)
[node name="Cannon2" parent="." instance=ExtResource("14_3pfub")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.38381, 1.2303, 5.95106)
[node name="Engine" parent="." instance=ExtResource("15_4kp3s")]
transform = Transform3D(-6.55671e-08, 0, 1.5, 0, 1.5, 0, -1.5, 0, -6.55671e-08, -3.45639, 1.1688, 9)
[node name="Bin" parent="." instance=ExtResource("16_ep4dv")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.70291, -0.287106, 10.1948)
[node name="Storage3" parent="." instance=ExtResource("13_3fxhr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.63306, -0.501894, -11.5457)
currentType = 1
audioClip = ExtResource("17_06sqf")
[node name="train" parent="." instance=ExtResource("18_6adfq")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0)

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=24 format=3 uid="uid://bikdn7ep2vpxw"]
[gd_scene load_steps=25 format=3 uid="uid://bikdn7ep2vpxw"]
[ext_resource type="Script" path="res://scripts/Train.gd" id="1_mcmgl"]
[ext_resource type="PackedScene" uid="uid://c1mymb38wqdg6" path="res://Nodes/train.tscn" id="2_xoa1a"]
@@ -14,6 +14,7 @@
[ext_resource type="Texture2D" uid="uid://ctssikrodjqvc" path="res://o_walking_powder2.png" id="11_eefgn"]
[ext_resource type="Texture2D" uid="uid://nctqw3vt5q0y" path="res://o_walking_coal2.png" id="12_581v4"]
[ext_resource type="PackedScene" uid="uid://bkpnrgcfr1jgl" path="res://Nodes/Bin.tscn" id="14_n2rwc"]
[ext_resource type="Texture2D" uid="uid://7qppu15lvd1j" path="res://Nodes/Keys.png" id="14_otf4l"]
[ext_resource type="PackedScene" uid="uid://byo1m0n20yl45" path="res://Nodes/cannon.tscn" id="15_sof53"]
[ext_resource type="PackedScene" uid="uid://cet80w4yr8rse" path="res://Storage.tscn" id="16_7dojn"]
[ext_resource type="PackedScene" uid="uid://bhivunrkj87cy" path="res://Nodes/engine.tscn" id="17_regf7"]
@@ -118,6 +119,27 @@ animation = &"walking_coal"
speed_scale = 2.0
playing = true
[node name="MiniGameButton0" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 0, 6, 0)
texture = ExtResource("14_otf4l")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton1" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 1.5, 6, 0)
texture = ExtResource("14_otf4l")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton2" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 3, 6, 0)
texture = ExtResource("14_otf4l")
hframes = 5
vframes = 8
frame = 26
[node name="Bin" parent="." instance=ExtResource("14_n2rwc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.18577, 0.622175, 10.6544)

165
Nodes/Train_P2_2.tscn Normal file
View File

@@ -0,0 +1,165 @@
[gd_scene load_steps=25 format=3 uid="uid://cq6vbhvrpqkiy"]
[ext_resource type="Script" path="res://scripts/Train.gd" id="1_hjs75"]
[ext_resource type="PackedScene" uid="uid://c1mymb38wqdg6" path="res://Nodes/train.tscn" id="2_jaa8m"]
[ext_resource type="PackedScene" uid="uid://vwjd5od63jgh" path="res://Nodes/Player.tscn" id="3_mmqok"]
[ext_resource type="Texture2D" uid="uid://cxfybbp5idjwg" path="res://o_idle1.png" id="4_tox2m"]
[ext_resource type="Texture2D" uid="uid://dh6hvv1lfdnm1" path="res://o_idle2.png" id="5_jipmo"]
[ext_resource type="Texture2D" uid="uid://c1v5tc8lk8pdo" path="res://o_walking_ball1.png" id="6_ndwd0"]
[ext_resource type="Texture2D" uid="uid://ci4yd4vjr17o1" path="res://o_walking_coal1.png" id="7_ehq5f"]
[ext_resource type="Texture2D" uid="uid://os0kogn0mkus" path="res://o_walking_powder1.png" id="8_scx2e"]
[ext_resource type="Texture2D" uid="uid://bjrhp4dqckoxf" path="res://o_walking1.png" id="9_c8uyv"]
[ext_resource type="Texture2D" uid="uid://j7jwtqmvg0m8" path="res://o_walking2.png" id="10_eceo1"]
[ext_resource type="Texture2D" uid="uid://djsergj3l4t2c" path="res://o_walking_ball2.png" id="11_ryiak"]
[ext_resource type="Texture2D" uid="uid://nctqw3vt5q0y" path="res://o_walking_coal2.png" id="12_w8c3m"]
[ext_resource type="Texture2D" uid="uid://ctssikrodjqvc" path="res://o_walking_powder2.png" id="13_vxnkq"]
[ext_resource type="Texture2D" uid="uid://7qppu15lvd1j" path="res://Nodes/Keys.png" id="14_xklxf"]
[ext_resource type="PackedScene" uid="uid://bkpnrgcfr1jgl" path="res://Nodes/Bin.tscn" id="15_q7blv"]
[ext_resource type="PackedScene" uid="uid://byo1m0n20yl45" path="res://Nodes/cannon.tscn" id="16_bmbr8"]
[ext_resource type="PackedScene" uid="uid://cet80w4yr8rse" path="res://Storage.tscn" id="17_rdygb"]
[ext_resource type="AudioStream" uid="uid://b52sd64x20ulv" path="res://Assets/Sounds/_SOUNDFX_/Gunpowder.wav" id="18_skoud"]
[ext_resource type="PackedScene" uid="uid://bhivunrkj87cy" path="res://Nodes/engine.tscn" id="19_ubtn3"]
[sub_resource type="BoxShape3D" id="BoxShape3D_dijw3"]
size = Vector3(1, 3.77669, 24)
[sub_resource type="BoxShape3D" id="BoxShape3D_ao4pd"]
size = Vector3(12, 1, 24)
[sub_resource type="BoxShape3D" id="BoxShape3D_g76js"]
size = Vector3(12, 4, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_psmwd"]
size = Vector3(1, 6, 9.05915)
[sub_resource type="SpriteFrames" id="SpriteFrames_ltjyh"]
animations = [{
"frames": [ExtResource("4_tox2m"), ExtResource("5_jipmo")],
"loop": true,
"name": &"idle",
"speed": 2.0
}, {
"frames": [ExtResource("6_ndwd0")],
"loop": true,
"name": &"idle_ball",
"speed": 1.0
}, {
"frames": [ExtResource("7_ehq5f")],
"loop": true,
"name": &"idle_coal",
"speed": 1.0
}, {
"frames": [ExtResource("8_scx2e")],
"loop": true,
"name": &"idle_powder",
"speed": 1.0
}, {
"frames": [ExtResource("9_c8uyv"), ExtResource("10_eceo1")],
"loop": true,
"name": &"walking",
"speed": 2.0
}, {
"frames": [ExtResource("6_ndwd0"), ExtResource("11_ryiak")],
"loop": true,
"name": &"walking_ball",
"speed": 2.0
}, {
"frames": [ExtResource("7_ehq5f"), ExtResource("12_w8c3m")],
"loop": true,
"name": &"walking_coal",
"speed": 2.0
}, {
"frames": [ExtResource("8_scx2e"), ExtResource("13_vxnkq")],
"loop": true,
"name": &"walking_powder",
"speed": 2.0
}]
[node name="Train2" type="Node3D"]
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, 0, 0, 0)
script = ExtResource("1_hjs75")
[node name="train" parent="." instance=ExtResource("2_jaa8m")]
transform = Transform3D(1.96701e-07, 0, -1.5, 0, 1.5, 0, 1.5, 0, 1.96701e-07, -3, 0, -9)
[node name="StaticBody3D2" type="StaticBody3D" parent="train"]
transform = Transform3D(-2.91409e-08, 0, -0.666667, 0, 0.666667, 0, 0.666667, 0, -2.91409e-08, 6, -0.137826, -1.33333)
[node name="CollisionShape3D2" type="CollisionShape3D" parent="train/StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.5, 2, 4.23516e-22)
shape = SubResource("BoxShape3D_dijw3")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="train/StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.5, 2, 3.55271e-15)
shape = SubResource("BoxShape3D_dijw3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="train/StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -3.55271e-15)
shape = SubResource("BoxShape3D_ao4pd")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="train/StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 2, -12)
shape = SubResource("BoxShape3D_g76js")
[node name="CollisionShape3D5" type="CollisionShape3D" parent="train/StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 2, 12)
shape = SubResource("BoxShape3D_g76js")
[node name="CollisionShape3D6" type="CollisionShape3D" parent="train/StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 3, -1.52864)
shape = SubResource("BoxShape3D_psmwd")
[node name="CharacterBody3D" parent="." instance=ExtResource("3_mmqok")]
transform = Transform3D(1, 0, -3.55271e-15, 0, 1, 0, 3.55271e-15, 0, 1, 2.84217e-14, 3, -8)
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="CharacterBody3D"]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, 0, -2, 0)
frames = SubResource("SpriteFrames_ltjyh")
animation = &"walking_coal"
speed_scale = 2.0
playing = true
[node name="MiniGameButton0" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 0, 6, 0)
texture = ExtResource("14_xklxf")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton1" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 1.5, 6, 0)
texture = ExtResource("14_xklxf")
hframes = 5
vframes = 8
frame = 26
[node name="MiniGameButton2" type="Sprite3D" parent="CharacterBody3D"]
transform = Transform3D(8, 0, 0, 0, -3.93403e-07, 1, 0, -9, -4.37114e-08, 3, 6, 0)
texture = ExtResource("14_xklxf")
hframes = 5
vframes = 8
frame = 26
[node name="Bin" parent="." instance=ExtResource("15_q7blv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.18577, 0.622175, 10.6544)
[node name="Cannon" parent="." instance=ExtResource("16_bmbr8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.90697, 1.80346, 0.245877)
[node name="Cannon2" parent="." instance=ExtResource("16_bmbr8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.90697, 1.80346, -5.83086)
[node name="Storage" parent="." instance=ExtResource("17_rdygb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.30738, 0.293261, -10.1586)
[node name="Storage2" parent="." instance=ExtResource("17_rdygb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.67656, 0.293261, -1.79235)
currentType = 1
[node name="Storage3" parent="." instance=ExtResource("17_rdygb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.79878, 0.293261, 6.13508)
currentType = 2
audioClip = ExtResource("18_skoud")
[node name="Engine" parent="." instance=ExtResource("19_ubtn3")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 2.86451, 1.17834, 10.1923)

View File

@@ -1,4 +1,8 @@
<<<<<<< HEAD
[gd_scene load_steps=11 format=3 uid="uid://cqkd0g15r5btu"]
=======
[gd_scene load_steps=10 format=3 uid="uid://db0pxwq1hvs45"]
>>>>>>> bd10d8ca58e6a0e8419cbdc69a905587f0691bee
[ext_resource type="Script" path="res://scripts/Logic/Game.gd" id="1_gf730"]
[ext_resource type="PackedScene" uid="uid://nxapkgcq2c70" path="res://Nodes/light_setup.tscn" id="2_8im8o"]

52
Nodes/game2.tscn Normal file
View File

@@ -0,0 +1,52 @@
[gd_scene load_steps=10 format=3 uid="uid://dyw054t0rhigr"]
[ext_resource type="Script" path="res://scripts/Logic/Game.gd" id="1_gf730"]
[ext_resource type="PackedScene" path="res://Nodes/light_setup.tscn" id="2_8im8o"]
[ext_resource type="PackedScene" uid="uid://bqe8ucbruto1j" path="res://Nodes/StartNode.tscn" id="3_s558u"]
[ext_resource type="PackedScene" uid="uid://md2ofbviios3" path="res://Nodes/Train_P1.tscn" id="4_05mbx"]
[ext_resource type="PackedScene" uid="uid://bikdn7ep2vpxw" path="res://Nodes/Train_P2.tscn" id="5_gee2r"]
[ext_resource type="PackedScene" uid="uid://cys06pnxfjl2m" path="res://Nodes/UI.tscn" id="6_l0q7q"]
[ext_resource type="AudioStream" uid="uid://c5jhukuk8r3mf" path="res://Assets/Sounds/_MUSIC_/GameJamGameLoop.wav" id="7_0xbd4"]
[ext_resource type="AudioStream" uid="uid://n4ynf7hg2pcl" path="res://Assets/Sounds/_SOUNDFX_/GleiseLoop.wav" id="8_1d2gk"]
[ext_resource type="AudioStream" uid="uid://dovvnflvxtqpi" path="res://Assets/Sounds/_SOUNDFX_/WindLoop.wav" id="9_8qwj6"]
[node name="Game" type="Node"]
script = ExtResource("1_gf730")
[node name="LightSetup" parent="." instance=ExtResource("2_8im8o")]
[node name="StartNode" parent="." instance=ExtResource("3_s558u")]
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, 0, 43, 26.0132)
current = true
fov = 30.0
size = 32.0
near = 0.041
[node name="Train1" parent="." instance=ExtResource("4_05mbx")]
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, -10, 0, 0)
[node name="Train2" parent="." instance=ExtResource("5_gee2r")]
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, 9.90113, -0.0549407, -0.085681)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.875944, -0.294781, 0.381872, -0.106805, 0.65344, 0.749406, -0.470441, -0.697224, 0.540892, 0, 8.25958, 0)
visible = false
[node name="Control" parent="." instance=ExtResource("6_l0q7q")]
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_0xbd4")
volume_db = -27.238
autoplay = true
[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
stream = ExtResource("8_1d2gk")
volume_db = -10.0
autoplay = true
[node name="AudioStreamPlayer3" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_8qwj6")
volume_db = -2.476
autoplay = true

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://c1mymb38wqdg6"]
[gd_scene load_steps=16 format=3 uid="uid://c1mymb38wqdg6"]
[ext_resource type="PackedScene" uid="uid://by5dkvik2ti0a" path="res://Assets/Model/Train/TrainFloorTile4x4.glb" id="1_ruoy4"]
[ext_resource type="PackedScene" uid="uid://bbt38m8mno0d2" path="res://Assets/Model/Train/TrainWall.glb" id="2_ph0y0"]
@@ -10,127 +10,356 @@
[ext_resource type="PackedScene" uid="uid://dfljj7kor8v2j" path="res://Assets/Model/Train/TrainPillarWood.glb" id="7_hd70v"]
[ext_resource type="PackedScene" uid="uid://08f17h0im640" path="res://Assets/Model/Train/TrainWallInterior.glb" id="9_yvbc7"]
[ext_resource type="PackedScene" uid="uid://df1p6wn43228a" path="res://Assets/Model/Weapons/Canon.glb" id="10_54n3n"]
[ext_resource type="PackedScene" uid="uid://b50i4le1br8sf" path="res://Assets/Model/Objects/Lamp.glb" id="11_rhd60"]
[ext_resource type="PackedScene" uid="uid://hc684kkimahs" path="res://Assets/Model/Pipes/Pipe.glb" id="12_34qvo"]
[ext_resource type="PackedScene" uid="uid://c8lfaa7u7l3dy" path="res://Assets/Model/Pipes/PipeConnector.glb" id="13_m7b0g"]
[ext_resource type="PackedScene" uid="uid://r6wpgp3plg3j" path="res://Assets/Model/Pipes/PipeEdge.glb" id="14_vhywa"]
[sub_resource type="PlaneMesh" id="PlaneMesh_prxf6"]
[node name="train" type="Node3D"]
[node name="TrainFloorTile4x4" parent="." instance=ExtResource("1_ruoy4")]
[node name="TrainFloorTile4x5" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0)
[node name="TrainFloorTile4x6" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0)
[node name="TrainFloorTile4x7" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 0)
[node name="TrainFloorTile4x8" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4)
[node name="TrainFloorTile4x9" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -4)
[node name="TrainFloorTile4x10" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, -4)
[node name="TrainFloorTile4x11" parent="." instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, -4)
[node name="TrainWall" parent="." instance=ExtResource("2_ph0y0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="TrainWall3" parent="." instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 2)
[node name="TrainWall4" parent="." instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 2)
[node name="TrainPillarFloorAdapter" parent="." instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="TrainPillarFloorAdapter2" parent="." instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="TrainPillarFloorAdapter4" parent="." instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 4, 4, -2)
[node name="TrainPillarFloorAdapter5" parent="." instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 4, 4, -2)
[node name="TrainWallArc" parent="." instance=ExtResource("5_lb36h")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="TrainFrameTopBottom" parent="." instance=ExtResource("6_0bbr0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 2)
[node name="TrainPillarFloorAdapter3" parent="." instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 8, -4.76837e-07, 2)
[node name="TrainWallArc2" parent="." instance=ExtResource("5_lb36h")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 8, 0, 2)
[node name="TrainFrameTopBottom2" parent="." instance=ExtResource("6_0bbr0")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 6, 0, 2)
[node name="TrainPillarArcExtention" parent="." instance=ExtResource("7_87n8g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 2)
[node name="TrainFrameTop2" parent="TrainPillarArcExtention" instance=ExtResource("7_2ua2q")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0)
[node name="TrainFrameTop3" parent="TrainPillarArcExtention" instance=ExtResource("7_2ua2q")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, -2)
[node name="TrainPillarArcExtention2" parent="." instance=ExtResource("7_87n8g")]
transform = Transform3D(-1, 0, -8.9407e-08, 0, 1, 0, 8.9407e-08, 0, -1, 4, 0, 2)
[node name="TrainPillarArcExtention3" parent="." instance=ExtResource("7_87n8g")]
transform = Transform3D(-4.56956e-08, 0, 1, 0, 1, 0, -1, 0, -4.56956e-08, 4, 0, 2)
[node name="TrainPillarArcExtention6" parent="." instance=ExtResource("7_87n8g")]
transform = Transform3D(-4.17272e-08, 0, -1, 0, 1, 0, 1, 0, -4.17272e-08, 4, 0, -2)
[node name="TrainPillarWood" parent="." instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="TrainPillarWood" parent="TrainPillarWood" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
[node name="TrainPillarWood2" parent="TrainPillarWood" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 0)
[node name="TrainPillarFloorAdapter5" parent="TrainPillarWood" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -4)
[node name="TrainPillarWood4" parent="TrainPillarWood" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -4)
[node name="TrainPillarFloorAdapter6" parent="TrainPillarWood" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 10, 4, -4)
[node name="TrainPillarFloorAdapter7" parent="TrainPillarWood" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -4)
[node name="TrainPillarWood5" parent="TrainPillarWood" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -4)
[node name="TrainPillarWood3" parent="TrainPillarWood" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 0, 0)
[node name="TrainPillarWood2" parent="." instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 2)
[node name="TrainWallInterior" parent="." instance=ExtResource("9_yvbc7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -2)
[node name="TrainWallInterior2" parent="." instance=ExtResource("9_yvbc7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -2)
[node name="TrainWallInterior3" parent="." instance=ExtResource("9_yvbc7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, -2)
[node name="Canon" parent="." instance=ExtResource("10_54n3n")]
transform = Transform3D(-1, 0, -1.50996e-07, 0, 1, 0, 1.50996e-07, 0, -1, 6.14337, 0, 1.47043)
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 6.14337, 0, 1.47043)
[node name="Canon2" parent="." instance=ExtResource("10_54n3n")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2.07371, 0, 1.47043)
[node name="RoofShadowOccluder" type="MeshInstance3D" parent="."]
transform = Transform3D(8.525, 0, 0, 0, 1, 0, 0, 0, 3.9864, 6, 4.07265, -2)
cast_shadow = 3
mesh = SubResource("PlaneMesh_prxf6")
[node name="Floor" type="Node3D" parent="."]
[node name="TrainFloorTile4x4" parent="Floor" instance=ExtResource("1_ruoy4")]
[node name="TrainFloorTile4x5" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0)
[node name="TrainFloorTile4x6" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0)
[node name="TrainFloorTile4x7" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 0)
[node name="TrainFloorTile4x8" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 0.999997, 0.00254818, 0, -0.00254818, 0.999997, 0, 0, -4)
[node name="TrainFloorTile4x9" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -4)
[node name="TrainFloorTile4x10" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, -4)
[node name="TrainFloorTile4x11" parent="Floor" instance=ExtResource("1_ruoy4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, -4)
[node name="Pipes" type="Node3D" parent="."]
[node name="Pipe" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.3741, 0, -2)
[node name="Pipe2" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.3741, 1, -2)
[node name="Pipe3" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.3741, 2, -2)
[node name="Pipe4" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.3741, 3, -2)
[node name="PipeConnector" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.3741, 0, -2)
[node name="PipeConnector2" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.3741, 4, -2)
[node name="Pipe5" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(-4.37114e-08, -10, 0, 1, -4.37114e-07, 0, 0, 0, 1, 13.832, 3.61748, -1.596)
[node name="PipeEdge" parent="Pipes" instance=ExtResource("14_vhywa")]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2.83199, 3.61748, -2.596)
[node name="PipeEdge" parent="Pipes/PipeEdge" instance=ExtResource("14_vhywa")]
transform = Transform3D(-4.37114e-08, 0, -1, 1, -4.37114e-08, -4.37114e-08, -4.37114e-08, -1, -1.64203e-15, 4.31147, -0.404001, 3.61748)
[node name="PipeConnector" parent="Pipes/PipeEdge/PipeEdge" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, 1, -6.78812e-30, 0, 0, 1, 0, 1.90735e-06, 0)
[node name="PipeConnector2" parent="Pipes/PipeEdge/PipeEdge" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, -1, 4.37114e-08, 1, -4.37114e-08, -4.37114e-08, 4.37114e-08, 4.37114e-08, 1, 0.929539, 1, 0)
[node name="PipeEdge2" parent="Pipes/PipeEdge" instance=ExtResource("14_vhywa")]
transform = Transform3D(-4.37114e-08, 0, -1, 1, -4.37114e-08, -4.37114e-08, -4.37114e-08, -1, -1.64203e-15, 4.00301, -0.404001, 3.61748)
[node name="PipeConnector" parent="Pipes/PipeEdge/PipeEdge2" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, 1, -6.78812e-30, 0, 0, 1, 0, 1.90735e-06, 0)
[node name="PipeConnector2" parent="Pipes/PipeEdge/PipeEdge2" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, -1, 4.37114e-08, 1, -4.37114e-08, -4.37114e-08, 4.37114e-08, 4.37114e-08, 1, 0.929539, 1, 0)
[node name="Pipe6" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(1, 0, 0, 0, -1.4569e-07, 1, 0, -3.333, -4.37114e-08, 2.83199, 3.61748, -2.596)
[node name="PipeConnector3" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2.83199, 3.61748, -2.596)
[node name="PipeConnector4" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2.83199, 3.61748, -4.596)
[node name="PipeConnector5" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2.83199, 3.61748, -5.89494)
[node name="PipeConnector6" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, -4.37114e-08, 0, -4.37114e-08, -1, -1, -4.37114e-08, 1.91069e-15, 3.83199, 3.61748, -1.596)
[node name="PipeConnector7" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, -4.37114e-08, 0, -4.37114e-08, -1, -1, -4.37114e-08, 1.91069e-15, 4.24601, 3.61748, -1.596)
[node name="PipeConnector8" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, -0.00527585, -1.77042)
[node name="PipeConnector9" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 2.62749, -1.77042)
[node name="PipeConnector10" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 6, 3.62749, -1.77042)
[node name="PipeConnector11" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 8, 3.62749, -1.77042)
[node name="PipeConnector12" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 10, 3.62749, -1.77042)
[node name="PipeConnector13" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 12, 3.62749, -1.77042)
[node name="PipeConnector14" parent="Pipes" instance=ExtResource("13_m7b0g")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 8, 3.62749, -1.77042)
[node name="Pipe7" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(1, 0, 0, 0, 3, 0, 0, 0, 1, 5, -0.372508, -1.77042)
[node name="Pipe8" parent="Pipes" instance=ExtResource("12_34qvo")]
transform = Transform3D(-4.37114e-08, 8, 0, -1, -3.49691e-07, 0, 0, 0, 1, 6, 3.62749, -1.77042)
[node name="PipeEdge2" parent="Pipes" instance=ExtResource("14_vhywa")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 2.62749, -1.77042)
[node name="Walls" type="Node3D" parent="."]
[node name="TrainWall" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="TrainWall3" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 2)
[node name="TrainWall5" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 0, 2)
[node name="TrainWall4" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 2)
[node name="TrainWallArc" parent="Walls" instance=ExtResource("5_lb36h")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="TrainWallArc2" parent="Walls" instance=ExtResource("5_lb36h")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 8, 0, 2)
[node name="TrainWall6" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 0, -6)
[node name="TrainWall7" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(1, 0, 0, 0, 1, -8.74228e-08, 0, 8.74228e-08, 1, 10, 0, -6)
[node name="TrainWall8" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(4.37114e-08, 1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 6, 0, -6)
[node name="TrainWall9" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-4.37114e-08, 1, -8.74228e-08, -1, -4.37114e-08, 3.82137e-15, 0, 8.74228e-08, 1, 6, 4, -6)
[node name="TrainWall10" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(4.37114e-08, -1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 6, 4, -6)
[node name="TrainWall11" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-4.37114e-08, -1, 8.74228e-08, 1, -4.37114e-08, 3.82137e-15, 0, 8.74228e-08, 1, 6, 0, -6)
[node name="TrainWall12" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(1, 8.74228e-08, 0, 8.74228e-08, -1, 0, 0, 0, 1, -2, 4, -6)
[node name="TrainWall13" parent="Walls" instance=ExtResource("2_ph0y0")]
transform = Transform3D(-1, 8.74228e-08, -7.64274e-15, -8.74228e-08, -1, 8.74228e-08, 0, 8.74228e-08, 1, 2, 4, -6)
[node name="TrainWallInterior" parent="Walls" instance=ExtResource("9_yvbc7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -2)
[node name="TrainWallInterior2" parent="Walls" instance=ExtResource("9_yvbc7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -2)
[node name="TrainWallInterior3" parent="Walls" instance=ExtResource("9_yvbc7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, -2)
[node name="TrainPillarFloorAdapter" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="TrainPillarFloorAdapter2" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="TrainPillarFloorAdapter4" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 4, 4, -2)
[node name="TrainPillarFloorAdapter5" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 4, 4, -2)
[node name="TrainPillarFloorAdapter3" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 8, -4.76837e-07, 2)
[node name="TrainPillarFloorAdapter6" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 12, -4.76837e-07, 2)
[node name="TrainPillarArcExtention" parent="Walls" instance=ExtResource("7_87n8g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 2)
[node name="TrainPillarArcExtention2" parent="Walls" instance=ExtResource("7_87n8g")]
transform = Transform3D(-1, 0, -8.9407e-08, 0, 1, 0, 8.9407e-08, 0, -1, 4, 0, 2)
[node name="TrainPillarArcExtention3" parent="Walls" instance=ExtResource("7_87n8g")]
transform = Transform3D(-4.56956e-08, 0, 1, 0, 1, 0, -1, 0, -4.56956e-08, 4, 0, 2)
[node name="TrainPillarArcExtention6" parent="Walls" instance=ExtResource("7_87n8g")]
transform = Transform3D(-4.17272e-08, 0, -1, 0, 1, 0, 1, 0, -4.17272e-08, 4, 0, -2)
[node name="TrainPillarWood3" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="TrainPillarWood4" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 2)
[node name="TrainPillarFloorAdapter7" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -2)
[node name="TrainPillarWood5" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -2)
[node name="TrainPillarFloorAdapter8" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 8, 4, -2)
[node name="TrainPillarFloorAdapter9" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, -2)
[node name="TrainPillarWood6" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, -2)
[node name="TrainPillarWood7" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 2)
[node name="TrainPillarFloorAdapter10" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 10, -4.76837e-07, -6)
[node name="TrainPillarFloorAdapter12" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 6, -4.76837e-07, -6)
[node name="TrainPillarFloorAdapter13" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2, -4.76837e-07, -6)
[node name="TrainPillarFloorAdapter14" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -2, -4.76837e-07, -6)
[node name="TrainPillarFloorAdapter11" parent="Walls" instance=ExtResource("4_ub5ul")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 14, -4.76837e-07, -6)
[node name="TrainPillarWood8" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -6)
[node name="TrainPillarWood9" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -6)
[node name="TrainPillarWood10" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -6)
[node name="TrainPillarWood11" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, -6)
[node name="TrainPillarWood12" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 0, -6)
[node name="TrainPillarWood" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="TrainPillarWood2" parent="Walls" instance=ExtResource("7_hd70v")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 2)
[node name="TrainFrameTopBottom" parent="Walls" instance=ExtResource("6_0bbr0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 2)
[node name="TrainFrameTopBottom2" parent="Walls" instance=ExtResource("6_0bbr0")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 6, 0, 2)
[node name="TrainFrameTop2" parent="Walls" instance=ExtResource("7_2ua2q")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 4, 0, 2)
[node name="TrainFrameTop3" parent="Walls" instance=ExtResource("7_2ua2q")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 4, 0, 0)
[node name="Lights" type="Node3D" parent="."]
[node name="Lamp" parent="Lights" instance=ExtResource("11_rhd60")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.98535, 2.0195, -1.84234)
[node name="OmniLight3D" type="OmniLight3D" parent="Lights/Lamp"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0267167, 0.280738, 0.159808)
light_color = Color(0.835294, 0.67451, 0.67451, 1)
light_energy = 3.0
light_indirect_energy = 0.0
light_volumetric_fog_energy = 0.0
light_size = 0.041
shadow_enabled = true
[node name="Lamp3" parent="Lights" instance=ExtResource("11_rhd60")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.98784, 1.73746, -5.81179)
[node name="OmniLight3D" type="OmniLight3D" parent="Lights/Lamp3"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0267167, 0.280738, 0.159808)
light_color = Color(0.835294, 0.67451, 0.67451, 1)
light_energy = 3.0
light_indirect_energy = 0.0
light_volumetric_fog_energy = 0.0
light_size = 0.041
shadow_enabled = true
[node name="Lamp4" parent="Lights" instance=ExtResource("11_rhd60")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.98783, 1.73746, -5.81179)
[node name="OmniLight3D" type="OmniLight3D" parent="Lights/Lamp4"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0267167, 0.280738, 0.159808)
light_color = Color(0.835294, 0.67451, 0.67451, 1)
light_energy = 3.0
light_indirect_energy = 0.0
light_volumetric_fog_energy = 0.0
light_size = 0.041
shadow_enabled = true
[node name="Lamp5" parent="Lights" instance=ExtResource("11_rhd60")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.98783, 1.73746, -5.81179)
[node name="OmniLight3D" type="OmniLight3D" parent="Lights/Lamp5"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0267167, 0.280738, 0.159808)
light_color = Color(0.835294, 0.67451, 0.67451, 1)
light_energy = 3.0
light_indirect_energy = 0.0
light_volumetric_fog_energy = 0.0
light_size = 0.041
shadow_enabled = true
[node name="Lamp2" parent="Lights" instance=ExtResource("11_rhd60")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.0164, 2.0195, -1.84234)
[node name="OmniLight3D" type="OmniLight3D" parent="Lights/Lamp2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0267167, 0.280738, 0.159808)
light_color = Color(0.835294, 0.67451, 0.67451, 1)
light_energy = 3.0
light_indirect_energy = 0.0
light_volumetric_fog_energy = 0.0
light_size = 0.041
shadow_enabled = true

View File

@@ -1,13 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://cet80w4yr8rse"]
[gd_scene load_steps=6 format=3 uid="uid://cet80w4yr8rse"]
[ext_resource type="Script" path="res://scripts/Modules/Storage.gd" id="1_guwoh"]
[ext_resource type="Texture2D" uid="uid://cjc4wohtjb73j" path="res://Chest.png" id="2_a5kei"]
[ext_resource type="Texture2D" uid="uid://cet5o7wla1x7t" path="res://Assets/Textures/Opera_senza_titolo.png" id="3_ojyse"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_c1ipa"]
height = 3.60519
radius = 1.33696
[sub_resource type="CylinderShape3D" id="CylinderShape3D_orr2n"]
radius = 3.22778
[node name="Storage" type="StaticBody3D"]
collision_layer = 2
script = ExtResource("1_guwoh")
currentType = 0
@@ -20,3 +25,16 @@ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 2,
texture = ExtResource("2_a5kei")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
[node name="Area3D" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("CylinderShape3D_orr2n")
[node name="Sprite3D2" type="Sprite3D" parent="."]
transform = Transform3D(0.15, 0, 0, 0, -6.55671e-09, 0.15, 0, -0.15, -6.55671e-09, 0, 3.10039, 0)
visible = false
texture = ExtResource("3_ojyse")
[connection signal="body_entered" from="Area3D" to="." method="on_Player_enter"]
[connection signal="body_exited" from="Area3D" to="." method="on_Player_exit"]

View File

@@ -13,6 +13,7 @@ grow_vertical = 2
script = ExtResource("1_hyw8p")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
@@ -21,6 +22,7 @@ grow_vertical = 2
color = Color(0.513726, 0.403922, 0.27451, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
@@ -34,42 +36,31 @@ grow_horizontal = 2
grow_vertical = 2
[node name="Start" type="Button" parent="VBoxContainer"]
offset_right = 87.0
offset_bottom = 31.0
layout_mode = 2
text = "Start
"
[node name="Tutorial" type="Button" parent="VBoxContainer"]
offset_top = 35.0
offset_right = 87.0
offset_bottom = 66.0
layout_mode = 2
text = "Tutorial
"
[node name="Settings" type="Button" parent="VBoxContainer"]
offset_top = 70.0
offset_right = 87.0
offset_bottom = 101.0
layout_mode = 2
text = "Volume:"
[node name="VolSlider" type="HSlider" parent="VBoxContainer"]
offset_top = 105.0
offset_right = 87.0
offset_bottom = 121.0
layout_mode = 2
min_value = -30.0
max_value = 0.0
script = ExtResource("2_h85ei")
[node name="Quit" type="Button" parent="VBoxContainer"]
offset_top = 125.0
offset_right = 87.0
offset_bottom = 156.0
layout_mode = 2
text = "Quit"
[node name="FullScreen" type="Button" parent="VBoxContainer"]
offset_top = 160.0
offset_right = 87.0
offset_bottom = 191.0
layout_mode = 2
text = "Fullscreen"
[connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"]

BIN
o_walking_giant1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://86mwqq8jadtj"
path.s3tc="res://.godot/imported/o_walking_giant1.png-f5c5fbe13e72291e0b2349fa626ea283.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_giant1.png-f5c5fbe13e72291e0b2349fa626ea283.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_giant1.png"
dest_files=["res://.godot/imported/o_walking_giant1.png-f5c5fbe13e72291e0b2349fa626ea283.s3tc.ctex", "res://.godot/imported/o_walking_giant1.png-f5c5fbe13e72291e0b2349fa626ea283.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
o_walking_giant2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ce5imf2m4w5y2"
path.s3tc="res://.godot/imported/o_walking_giant2.png-e42e6598ca28e803848fdfab4d725c06.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_giant2.png-e42e6598ca28e803848fdfab4d725c06.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_giant2.png"
dest_files=["res://.godot/imported/o_walking_giant2.png-e42e6598ca28e803848fdfab4d725c06.s3tc.ctex", "res://.godot/imported/o_walking_giant2.png-e42e6598ca28e803848fdfab4d725c06.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
o_walking_large1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ifauy3vee10v"
path.s3tc="res://.godot/imported/o_walking_large1.png-dbc9ff0db2eff4aeeff4bbcacfcce406.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_large1.png-dbc9ff0db2eff4aeeff4bbcacfcce406.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_large1.png"
dest_files=["res://.godot/imported/o_walking_large1.png-dbc9ff0db2eff4aeeff4bbcacfcce406.s3tc.ctex", "res://.godot/imported/o_walking_large1.png-dbc9ff0db2eff4aeeff4bbcacfcce406.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
o_walking_large2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b3pb0trgav15s"
path.s3tc="res://.godot/imported/o_walking_large2.png-48767a471cbbe14afc429d0fbfc69256.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_large2.png-48767a471cbbe14afc429d0fbfc69256.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_large2.png"
dest_files=["res://.godot/imported/o_walking_large2.png-48767a471cbbe14afc429d0fbfc69256.s3tc.ctex", "res://.godot/imported/o_walking_large2.png-48767a471cbbe14afc429d0fbfc69256.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@@ -29,11 +29,16 @@ _global_script_classes=[{
"language": &"GDScript",
"path": "res://scripts/Logic/MapNode.gd"
}, {
"base": "Node",
"base": "StaticBody3D",
"class": &"Module",
"language": &"GDScript",
"path": "res://scripts/Modules/Module.gd"
}, {
"base": "CharacterBody3D",
"class": &"Player",
"language": &"GDScript",
"path": "res://scripts/Player.gd"
}, {
"base": "Module",
"class": &"Storage",
"language": &"GDScript",
@@ -65,6 +70,7 @@ _global_script_class_icons={
"Game": "",
"MapNode": "",
"Module": "",
"Player": "",
"Storage": "",
"StraightMapNode": "",
"Train": "",
@@ -142,3 +148,8 @@ p1_extra={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":88,"unicode":0,"echo":false,"script":null)
]
}
p2_extra={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":90,"unicode":0,"echo":false,"script":null)
]
}

View File

@@ -3,12 +3,11 @@ extends Module
class_name Cannon
enum STATE {INACTIVE, RELOADING, SHOOTING}
enum AMMO {NORMAL, HEAVY, LIGHT}
var currentAmmo: AMMO
var currentPowderStashValue = 0
var maxPowderStashValue = 3
var CAN_ENGAGE = false
var DAMAGE = 5
var ammoType = -1
@onready var train = get_parent() as Train
#------------Methods-------------#
@@ -22,6 +21,7 @@ func interact(player):
if player.getResource() == 0:
if currentStashValue < maxStashValue:
currentStashValue += 1
ammoType = 0
player.clearInventory()
$AudioStreamPlayer2.play()
return
@@ -32,10 +32,41 @@ func interact(player):
player.clearInventory()
$AudioStreamPlayer2.play()
return
return
if player.getResource() == 3:
if currentStashValue < maxStashValue:
currentStashValue += 1
ammoType = 1
player.clearInventory()
$AudioStreamPlayer2.play()
return
if player.getResource() == 4:
if currentStashValue < maxStashValue:
currentStashValue += 1
ammoType = 2
player.clearInventory()
$AudioStreamPlayer2.play()
return
func shoot():
if currentStashValue >= 1 and currentPowderStashValue >= 1 and currentState == STATE.INACTIVE:
if currentStashValue >= 1 and currentPowderStashValue >= 1 and currentState == STATE.INACTIVE and ammoType == 0:
currentState = STATE.SHOOTING
currentStashValue -= 1
currentPowderStashValue = 0
currentState = STATE.INACTIVE
$AudioStreamPlayer.play(0)
return true
if currentStashValue >= 1 and currentPowderStashValue >= 2 and currentState == STATE.INACTIVE and ammoType == 1:
currentState = STATE.SHOOTING
currentStashValue -= 1
currentPowderStashValue = 0
currentState = STATE.INACTIVE
$AudioStreamPlayer.play(0)
return true
if currentStashValue >= 1 and currentPowderStashValue >= 3 and currentState == STATE.INACTIVE and ammoType == 2:
currentState = STATE.SHOOTING
currentStashValue -= 1
currentPowderStashValue = 0

View File

@@ -2,12 +2,12 @@ extends Module
class_name Storage
enum TYPE {AMMO, GUNPOWDER, COAL}
enum TYPE {AMMO, GUNPOWDER, COAL, LARGE, GIANT}
@export var currentType: TYPE
@export var icon : Texture2D
@export var audioClip : AudioStreamWAV
#------------Methods-------------#
func _ready():
@@ -15,6 +15,7 @@ func _ready():
#root.ammo_pickup.connect(_on_signal_storing)
maxStashValue = 10
currentStashValue = 10
$Sprite3D2.texture = icon
$AudioStreamPlayer.stream = audioClip
func interact(player):
@@ -28,4 +29,10 @@ func _on_signal_storing():
if currentStashValue < maxStashValue:
currentStashValue += 1
return
func on_Player_enter(blub):
var bodies = $Area3D.get_overlapping_bodies()
$Sprite3D2.visible = true
func on_Player_exit(blub):
$Sprite3D2.visible = false

View File

@@ -1,5 +1,6 @@
extends CharacterBody3D
class_name Player
#-----------Parameters--------------#
var SPEED = 10
var movement = Vector3(0,0,0)
@@ -12,11 +13,11 @@ var is_alive = true
var walking
var idle
enum TYPE {AMMO, GUNPOWDER, FUEL}
enum TYPE {AMMO, GUNPOWDER, FUEL, LARGE, GIANT}
var P1inMiniGame = 0
var P2inMiniGame = 0
var MiniGame = [-1, -1, -1]
var MiniGame = [0, 0, 0]
var MiniGamePos = 0
var rng = RandomNumberGenerator.new()
#---------------Methods--------------#
@@ -26,6 +27,12 @@ func _ready():
$MiniGameButton0.hide()
$MiniGameButton1.hide()
$MiniGameButton2.hide()
$MiniGameButton3.hide()
$MiniGameButton4.hide()
$MiniGameButton5.hide()
#get_parent().find_child("CharacterBody3D").find_child("MiniGameButton0").hide()
#get_parent().find_child("CharacterBody3D").find_child("MiniGameButton1").hide()
#get_parent().find_child("CharacterBody3D").find_child("MiniGameButton2").hide()
func miniGameColor(input: int, red: int):
if(input == 0):
@@ -34,18 +41,35 @@ func miniGameColor(input: int, red: int):
$MiniGameButton1.modulate = Color(1,1,red)
if(input == 2):
$MiniGameButton2.modulate = Color(1,1,red)
if(input == 3):
$MiniGameButton3.modulate = Color(1,1,red)
if(input == 4):
$MiniGameButton4.modulate = Color(1,1,red)
if(input == 5):
$MiniGameButton5.modulate = Color(1,1,red)
func miniGameReset():
MiniGamePos = 0
miniGameColor(0,1)
miniGameColor(1,1)
miniGameColor(2,1)
MiniGame[0] = rng.randi_range(0, 3)
miniGameSetArrow(0)
MiniGame[1] = rng.randi_range(0, 3)
miniGameSetArrow(1)
MiniGame[2] = rng.randi_range(0, 3)
miniGameSetArrow(2)
if(is_player1):
miniGameColor(0,1)
miniGameColor(1,1)
miniGameColor(2,1)
MiniGame[0] = rng.randi_range(0, 3)
miniGameSetArrow(0)
MiniGame[1] = rng.randi_range(0, 3)
miniGameSetArrow(1)
MiniGame[2] = rng.randi_range(0, 3)
miniGameSetArrow(2)
else:
miniGameColor(3,1)
miniGameColor(4,1)
miniGameColor(5,1)
MiniGame[0] = rng.randi_range(0, 3)
miniGameSetArrow(3)
MiniGame[1] = rng.randi_range(0, 3)
miniGameSetArrow(4)
MiniGame[2] = rng.randi_range(0, 3)
miniGameSetArrow(5)
func miniGameSetArrow(buttonNr: int):
if(buttonNr == 0):
@@ -54,21 +78,41 @@ func miniGameSetArrow(buttonNr: int):
$MiniGameButton1.frame = 26 + MiniGame[1]
if(buttonNr == 2):
$MiniGameButton2.frame = 26 + MiniGame[2]
if(buttonNr == 3):
$MiniGameButton3.frame = 26 + MiniGame[0]
if(buttonNr == 4):
$MiniGameButton4.frame = 26 + MiniGame[1]
if(buttonNr == 5):
$MiniGameButton5.frame = 26 + MiniGame[2]
func miniGameCheck(input : int):
if(input == MiniGame[MiniGamePos]):
miniGameColor(MiniGamePos, 0)
MiniGamePos = MiniGamePos +1
if(is_player1):
if(input == MiniGame[MiniGamePos]):
miniGameColor(MiniGamePos, 0)
MiniGamePos = MiniGamePos +1
else:
miniGameReset()
if(MiniGamePos >= 3):
$MiniGameButton0.hide()
$MiniGameButton1.hide()
$MiniGameButton2.hide()
P1inMiniGame = 0
miniGameReset()
else:
miniGameReset()
if(MiniGamePos >= 3):
$MiniGameButton0.hide()
$MiniGameButton1.hide()
$MiniGameButton2.hide()
P1inMiniGame = 0
miniGameReset()
if(input == MiniGame[MiniGamePos]):
miniGameColor(MiniGamePos+3, 0)
MiniGamePos = MiniGamePos +1
else:
miniGameReset()
if(MiniGamePos >= 3):
$MiniGameButton3.hide()
$MiniGameButton4.hide()
$MiniGameButton5.hide()
P2inMiniGame = 0
miniGameReset()
func _process(delta):
if Input.is_action_just_pressed("p1_extra"):
if(P1inMiniGame == 0):
@@ -76,6 +120,13 @@ func _process(delta):
$MiniGameButton0.show()
$MiniGameButton1.show()
$MiniGameButton2.show()
if Input.is_action_just_pressed("p2_extra"):
if(P2inMiniGame == 0):
P2inMiniGame = 1
$MiniGameButton3.show()
$MiniGameButton4.show()
$MiniGameButton5.show()
func _physics_process(delta):
if(velocity.length() > 0):
@@ -166,6 +217,12 @@ func fill_inventory(type):
2:
walking = "walking_coal"
idle = "idle_coal"
3:
walking = "walking_large"
idle = "idle_large"
4:
walking = "walking_giant"
idle = "idle_giant"
func getResource():
@@ -176,4 +233,6 @@ func clearInventory():
print("cleared")
walking = "walking"
idle = "idle"

BIN
walking_giant1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

36
walking_giant1.png.import Normal file
View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b4yysvn1ibspa"
path.s3tc="res://.godot/imported/walking_giant1.png-7774153d7a9becc2ef10489a472f451a.s3tc.ctex"
path.etc2="res://.godot/imported/walking_giant1.png-7774153d7a9becc2ef10489a472f451a.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://walking_giant1.png"
dest_files=["res://.godot/imported/walking_giant1.png-7774153d7a9becc2ef10489a472f451a.s3tc.ctex", "res://.godot/imported/walking_giant1.png-7774153d7a9becc2ef10489a472f451a.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
walking_giant2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

36
walking_giant2.png.import Normal file
View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://4hcjvygte1em"
path.s3tc="res://.godot/imported/walking_giant2.png-fa1854ada89a6ce58312ab89aaf2c6f1.s3tc.ctex"
path.etc2="res://.godot/imported/walking_giant2.png-fa1854ada89a6ce58312ab89aaf2c6f1.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://walking_giant2.png"
dest_files=["res://.godot/imported/walking_giant2.png-fa1854ada89a6ce58312ab89aaf2c6f1.s3tc.ctex", "res://.godot/imported/walking_giant2.png-fa1854ada89a6ce58312ab89aaf2c6f1.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
walking_large1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

36
walking_large1.png.import Normal file
View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://nbfs0w8tpjt4"
path.s3tc="res://.godot/imported/walking_large1.png-25eed3ddeb4e6468661a17b2f7aabdd7.s3tc.ctex"
path.etc2="res://.godot/imported/walking_large1.png-25eed3ddeb4e6468661a17b2f7aabdd7.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://walking_large1.png"
dest_files=["res://.godot/imported/walking_large1.png-25eed3ddeb4e6468661a17b2f7aabdd7.s3tc.ctex", "res://.godot/imported/walking_large1.png-25eed3ddeb4e6468661a17b2f7aabdd7.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
walking_large2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

36
walking_large2.png.import Normal file
View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://clgd25fer2yka"
path.s3tc="res://.godot/imported/walking_large2.png-ece8d922902466340486fa8ae8c76a91.s3tc.ctex"
path.etc2="res://.godot/imported/walking_large2.png-ece8d922902466340486fa8ae8c76a91.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://walking_large2.png"
dest_files=["res://.godot/imported/walking_large2.png-ece8d922902466340486fa8ae8c76a91.s3tc.ctex", "res://.godot/imported/walking_large2.png-ece8d922902466340486fa8ae8c76a91.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0