Merge branch 'balloonfest'
This commit is contained in:
commit
037027d03e
22 changed files with 422 additions and 6 deletions
|
|
@ -1,18 +1,19 @@
|
||||||
[gd_scene load_steps=39 format=3 uid="uid://by5cq6m32hbor"]
|
[gd_scene load_steps=39 format=3 uid="uid://by5cq6m32hbor"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dv401srtwuvtg" path="res://icon.svg" id="1_6v0xc"]
|
||||||
|
[ext_resource type="Script" uid="uid://bhh76i4a51brf" path="res://Florian/Map/oktoberfest.gd" id="1_20xaa"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cd1v04y3nf1dv" path="res://Amanda/furni/Images/table_diffuse.jpg" id="1_tre0f"]
|
[ext_resource type="Texture2D" uid="uid://cd1v04y3nf1dv" path="res://Amanda/furni/Images/table_diffuse.jpg" id="1_tre0f"]
|
||||||
[ext_resource type="PackedScene" uid="uid://crrco762ow56c" path="res://Florian/Player/PlayerRigidbody.tscn" id="2_82wr0"]
|
[ext_resource type="PackedScene" uid="uid://crrco762ow56c" path="res://Florian/Player/PlayerRigidbody.tscn" id="2_82wr0"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bobfhgsydmmr2" path="res://Florian/pyro.tscn" id="4_h8052"]
|
[ext_resource type="PackedScene" uid="uid://bobfhgsydmmr2" path="res://Florian/pyro.tscn" id="4_h8052"]
|
||||||
[ext_resource type="PackedScene" uid="uid://byhsp6ujjsh8m" path="res://Florian/Entity/interactable.tscn" id="5_ygtpi"]
|
[ext_resource type="PackedScene" uid="uid://byhsp6ujjsh8m" path="res://Florian/Entity/interactable.tscn" id="5_ygtpi"]
|
||||||
[ext_resource type="Script" uid="uid://ddwcbl3nbt6j4" path="res://Florian/Map/lights.gd" id="6_g561u"]
|
[ext_resource type="Script" path="res://Florian/Map/lights.gd" id="6_g561u"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c8gnb0kut2n5h" path="res://Florian/PointsLogic/point_thing.tscn" id="6_miqpv"]
|
[ext_resource type="PackedScene" uid="uid://c8gnb0kut2n5h" path="res://Florian/PointsLogic/point_thing.tscn" id="6_miqpv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bk4djtjemu7we" path="res://Florian/Entity/People/guitar.tscn" id="6_ptxqs"]
|
[ext_resource type="PackedScene" uid="uid://bk4djtjemu7we" path="res://Florian/Entity/People/guitar.tscn" id="6_ptxqs"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c5552lenumx2j" path="res://Florian/Entity/People/saxophone.tscn" id="7_miqpv"]
|
[ext_resource type="PackedScene" uid="uid://c5552lenumx2j" path="res://Florian/Entity/People/saxophone.tscn" id="7_miqpv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bybsn53hd1mge" path="res://Florian/Entity/People/guys.tscn" id="9_3box6"]
|
[ext_resource type="PackedScene" uid="uid://bybsn53hd1mge" path="res://Florian/Entity/People/guys.tscn" id="9_3box6"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bw73kprk7ptvn" path="res://Florian/PointsLogic/PictureSpot.tscn" id="10_28ddj"]
|
[ext_resource type="PackedScene" uid="uid://bw73kprk7ptvn" path="res://Florian/PointsLogic/PictureSpot.tscn" id="10_28ddj"]
|
||||||
[ext_resource type="Script" uid="uid://cu3fdbo1lelob" path="res://Florian/Map/dancing_people.gd" id="10_mbtuy"]
|
[ext_resource type="Script" path="res://Florian/Map/dancing_people.gd" id="10_mbtuy"]
|
||||||
[ext_resource type="PackedScene" uid="uid://k3ij7wrtwpms" path="res://Florian/table_0.tscn" id="10_ubr03"]
|
[ext_resource type="PackedScene" uid="uid://k3ij7wrtwpms" path="res://Florian/table_0.tscn" id="10_ubr03"]
|
||||||
[ext_resource type="PackedScene" uid="uid://oxm6ufgip22u" path="res://Florian/Props/tent.tscn" id="11_4etk5"]
|
[ext_resource type="PackedScene" uid="uid://m3sk1ustdixv" path="res://Florian/Props/tent.tscn" id="11_4etk5"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cx783frd814e6" path="res://Florian/Decals/power.png" id="11_bsfgy"]
|
[ext_resource type="Texture2D" uid="uid://cx783frd814e6" path="res://Florian/Decals/power.png" id="11_bsfgy"]
|
||||||
[ext_resource type="PackedScene" uid="uid://lrf6ltd1wwg1" path="res://Florian/Entity/People/waitress_path.tscn" id="12_g561u"]
|
[ext_resource type="PackedScene" uid="uid://lrf6ltd1wwg1" path="res://Florian/Entity/People/waitress_path.tscn" id="12_g561u"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctcspqlxrw22q" path="res://Florian/PhysicsProps/PhysicsBarrel.tscn" id="13_ijkca"]
|
[ext_resource type="PackedScene" uid="uid://ctcspqlxrw22q" path="res://Florian/PhysicsProps/PhysicsBarrel.tscn" id="13_ijkca"]
|
||||||
|
|
@ -25,6 +26,9 @@
|
||||||
[ext_resource type="PackedScene" uid="uid://b85ujwx0p8gvn" path="res://Florian/Props/door.tscn" id="22_bv6bj"]
|
[ext_resource type="PackedScene" uid="uid://b85ujwx0p8gvn" path="res://Florian/Props/door.tscn" id="22_bv6bj"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c4fw8rjct7vms" path="res://Florian/Entity/People/accor.tscn" id="23_0a0yf"]
|
[ext_resource type="PackedScene" uid="uid://c4fw8rjct7vms" path="res://Florian/Entity/People/accor.tscn" id="23_0a0yf"]
|
||||||
[ext_resource type="Script" uid="uid://btok1rqmtms4o" path="res://Florian/Map/accor_animation.gd" id="24_ho8ja"]
|
[ext_resource type="Script" uid="uid://btok1rqmtms4o" path="res://Florian/Map/accor_animation.gd" id="24_ho8ja"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ci05g3ilu86xl" path="res://Nikita/pause_menu.tscn" id="20_mmnkp"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dl42xs7anteub" path="res://Nikita/finish_screen.tscn" id="21_mmnkp"]
|
||||||
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3uiso"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3uiso"]
|
||||||
albedo_texture = ExtResource("1_tre0f")
|
albedo_texture = ExtResource("1_tre0f")
|
||||||
|
|
@ -151,6 +155,7 @@ albedo_texture = ExtResource("14_70e5e")
|
||||||
uv1_scale = Vector3(20, 2, 10)
|
uv1_scale = Vector3(20, 2, 10)
|
||||||
|
|
||||||
[node name="Oktoberfest" type="Node3D"]
|
[node name="Oktoberfest" type="Node3D"]
|
||||||
|
script = ExtResource("1_20xaa")
|
||||||
|
|
||||||
[node name="Floor" type="MeshInstance3D" parent="."]
|
[node name="Floor" type="MeshInstance3D" parent="."]
|
||||||
mesh = SubResource("PlaneMesh_82wr0")
|
mesh = SubResource("PlaneMesh_82wr0")
|
||||||
|
|
@ -1054,6 +1059,36 @@ use_collision = true
|
||||||
size = Vector3(79, 7, 1)
|
size = Vector3(79, 7, 1)
|
||||||
material = SubResource("StandardMaterial3D_tre0f")
|
material = SubResource("StandardMaterial3D_tre0f")
|
||||||
|
|
||||||
|
[node name="Physics" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="PhysicsBarrel" parent="Physics" instance=ExtResource("13_ijkca")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23, 0.751997, -14.7)
|
||||||
|
|
||||||
|
[node name="PhysicsBarrel2" parent="Physics" instance=ExtResource("13_ijkca")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26, 0.751997, -14.7)
|
||||||
|
|
||||||
|
[node name="PhysicsBarrel5" parent="Physics" instance=ExtResource("13_ijkca")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.5, 0.751997, -14.7)
|
||||||
|
|
||||||
|
[node name="PhysicsBarrel3" parent="Physics" instance=ExtResource("13_ijkca")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23, 2.252, -14.7)
|
||||||
|
|
||||||
|
[node name="PhysicsBarrel4" parent="Physics" instance=ExtResource("13_ijkca")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26, 2.252, -14.7)
|
||||||
|
|
||||||
|
[node name="Barrels" type="Node3D" parent="Physics"]
|
||||||
|
|
||||||
|
[node name="Beer" type="Node3D" parent="Physics"]
|
||||||
|
|
||||||
|
[node name="PhysicsBeer" parent="Physics/Beer" instance=ExtResource("18_3uiso")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||||
|
|
||||||
|
[node name="Node3D2" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="PauseMenu" parent="." instance=ExtResource("20_mmnkp")]
|
||||||
|
|
||||||
|
[node name="FinishScreen" parent="." instance=ExtResource("21_mmnkp")]
|
||||||
|
|
||||||
[connection signal="interact" from="Stage/Interactable" to="Stage/Pyro" method="_turn_on_off"]
|
[connection signal="interact" from="Stage/Interactable" to="Stage/Pyro" method="_turn_on_off"]
|
||||||
[connection signal="interact" from="Stage/Interactable" to="Stage/Pyro2" method="_turn_on_off"]
|
[connection signal="interact" from="Stage/Interactable" to="Stage/Pyro2" method="_turn_on_off"]
|
||||||
[connection signal="interact" from="Stage/Interactable" to="Stage/Pyro3" method="_turn_on_off"]
|
[connection signal="interact" from="Stage/Interactable" to="Stage/Pyro3" method="_turn_on_off"]
|
||||||
|
|
|
||||||
58
Florian/Map/oktoberfest.gd
Normal file
58
Florian/Map/oktoberfest.gd
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
extends Node3D
|
||||||
|
|
||||||
|
var paused = false
|
||||||
|
var finished = false
|
||||||
|
var main_scene : PackedScene
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$PauseMenu.hide()
|
||||||
|
$PauseMenu.resume.connect(_on_resume_button_pressed)
|
||||||
|
$PauseMenu.main_menu.connect(_on_menu_button_pressed)
|
||||||
|
$FinishScreen.hide()
|
||||||
|
$FinishScreen.retry.connect(_on_retry_button_pressed)
|
||||||
|
$FinishScreen.exit.connect(_on_exit_button_pressed)
|
||||||
|
main_scene = load("res://Nikita/hub_scene.tscn")
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if Input.is_action_just_pressed("take_picture"):
|
||||||
|
finish()
|
||||||
|
if Input.is_action_just_pressed("pause"):
|
||||||
|
pause_menu()
|
||||||
|
|
||||||
|
func pause_menu():
|
||||||
|
if paused:
|
||||||
|
$PauseMenu.hide()
|
||||||
|
get_tree().paused = false
|
||||||
|
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||||
|
else:
|
||||||
|
$PauseMenu.show()
|
||||||
|
get_tree().paused = true
|
||||||
|
paused = !paused
|
||||||
|
|
||||||
|
func finish():
|
||||||
|
if finished:
|
||||||
|
$FinishScreen.hide()
|
||||||
|
get_tree().paused = false
|
||||||
|
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||||
|
else:
|
||||||
|
$FinishScreen.show()
|
||||||
|
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||||
|
get_tree().paused = true
|
||||||
|
finished = !finished
|
||||||
|
|
||||||
|
func _on_resume_button_pressed():
|
||||||
|
pause_menu()
|
||||||
|
|
||||||
|
func _on_menu_button_pressed():
|
||||||
|
pause_menu()
|
||||||
|
get_tree().change_scene_to_packed(main_scene)
|
||||||
|
|
||||||
|
func _on_retry_button_pressed():
|
||||||
|
finish()
|
||||||
|
PictureTakeablesArray.picture_takables.clear()
|
||||||
|
PictureTakeablesArray.picture_spots.clear()
|
||||||
|
get_tree().reload_current_scene()
|
||||||
|
|
||||||
|
func _on_exit_button_pressed():
|
||||||
|
finish()
|
||||||
|
get_tree().change_scene_to_packed(main_scene)
|
||||||
1
Florian/Map/oktoberfest.gd.uid
Normal file
1
Florian/Map/oktoberfest.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://bhh76i4a51brf
|
||||||
48
Nikita/balloonfest.tscn
Normal file
48
Nikita/balloonfest.tscn
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
[gd_scene load_steps=13 format=3 uid="uid://cge0bfktyd7ka"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c8bo7u0yr3cfj" path="res://Nikita/textures/golden_gate_hills_1k.png" id="1_dcn22"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6sjs2nhsigfv" path="res://Nikita/source/ballons.glb" id="1_fqyqv"]
|
||||||
|
[ext_resource type="Script" uid="uid://csuiro5uqp8m7" path="res://Nikita/scripts/balloonfest.gd" id="1_ojto3"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://crrco762ow56c" path="res://Florian/Player/PlayerRigidbody.tscn" id="2_akthd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ci05g3ilu86xl" path="res://Nikita/pause_menu.tscn" id="4_eb1mq"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://due4jnf5yb2n0" path="res://Nikita/textures/blanket.png" id="6_2jkgr"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dl42xs7anteub" path="res://Nikita/finish_screen.tscn" id="7_xc4lk"]
|
||||||
|
|
||||||
|
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_eb1mq"]
|
||||||
|
panorama = ExtResource("1_dcn22")
|
||||||
|
|
||||||
|
[sub_resource type="Sky" id="Sky_ojto3"]
|
||||||
|
sky_material = SubResource("PanoramaSkyMaterial_eb1mq")
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_akthd"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = SubResource("Sky_ojto3")
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_xc4lk"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kwais"]
|
||||||
|
albedo_texture = ExtResource("6_2jkgr")
|
||||||
|
|
||||||
|
[node name="Balloonfest" type="Node3D"]
|
||||||
|
script = ExtResource("1_ojto3")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 34.0624, 0)
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
|
environment = SubResource("Environment_akthd")
|
||||||
|
|
||||||
|
[node name="terrain" parent="." instance=ExtResource("1_fqyqv")]
|
||||||
|
transform = Transform3D(50, 0, 0, 0, 50, 0, 0, 0, 50, -4.9729, 0, 0.821295)
|
||||||
|
|
||||||
|
[node name="PlayerRigidbody" parent="." instance=ExtResource("2_akthd")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 24.3581, 1.08998, -30.0003)
|
||||||
|
|
||||||
|
[node name="PauseMenu" parent="." instance=ExtResource("4_eb1mq")]
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.825044, 0, -0.565068, 0, 1, 0, 0.565068, 0, 0.825044, 1.41077, 0.0204842, -3.57851)
|
||||||
|
mesh = SubResource("PlaneMesh_xc4lk")
|
||||||
|
surface_material_override/0 = SubResource("StandardMaterial3D_kwais")
|
||||||
|
|
||||||
|
[node name="FinishScreen" parent="." instance=ExtResource("7_xc4lk")]
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
[gd_scene load_steps=9 format=3 uid="uid://cjlojmoyhw2cp"]
|
[gd_scene load_steps=10 format=3 uid="uid://cjlojmoyhw2cp"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://7fijqcjxggit" path="res://Nikita/source/Earth_Final.fbx" id="1_mnd7v"]
|
[ext_resource type="PackedScene" uid="uid://7fijqcjxggit" path="res://Nikita/source/Earth_Final.fbx" id="1_mnd7v"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cw4gkryn2sl7y" path="res://Nikita/textures/Earth2_Water_BaseColor.png" id="2_v2ft5"]
|
[ext_resource type="Texture2D" uid="uid://cw4gkryn2sl7y" path="res://Nikita/textures/Earth2_Water_BaseColor.png" id="2_v2ft5"]
|
||||||
[ext_resource type="Texture2D" uid="uid://da0uksbt2mkqw" path="res://Nikita/textures/Earth2_Land_BaseColor.png" id="3_drefq"]
|
[ext_resource type="Texture2D" uid="uid://da0uksbt2mkqw" path="res://Nikita/textures/Earth2_Land_BaseColor.png" id="3_drefq"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ccjwh4alvryho" path="res://Nikita/waypoint.tscn" id="4_drefq"]
|
[ext_resource type="PackedScene" uid="uid://ccjwh4alvryho" path="res://Nikita/waypoint.tscn" id="4_drefq"]
|
||||||
[ext_resource type="PackedScene" uid="uid://by5cq6m32hbor" path="res://Florian/Map/Oktoberfest.tscn" id="5_tyl1s"]
|
[ext_resource type="PackedScene" uid="uid://by5cq6m32hbor" path="res://Florian/Map/Oktoberfest.tscn" id="5_tyl1s"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cge0bfktyd7ka" path="res://Nikita/balloonfest.tscn" id="6_3pxso"]
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tyl1s"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tyl1s"]
|
||||||
albedo_texture = ExtResource("2_v2ft5")
|
albedo_texture = ExtResource("2_v2ft5")
|
||||||
|
|
@ -40,3 +41,5 @@ transform = Transform3D(-4.37114e-10, 0, -0.01, 0, 0.01, 0, 0.01, 0, -4.37114e-1
|
||||||
|
|
||||||
[node name="WaypointBal" parent="." index="3" instance=ExtResource("4_drefq")]
|
[node name="WaypointBal" parent="." index="3" instance=ExtResource("4_drefq")]
|
||||||
transform = Transform3D(-4.37114e-10, 0, 0.01, 0, 0.01, 0, -0.01, 0, -4.37114e-10, -0.0725918, 0.0486524, -0.0129466)
|
transform = Transform3D(-4.37114e-10, 0, 0.01, 0, 0.01, 0, -0.01, 0, -4.37114e-10, -0.0725918, 0.0486524, -0.0129466)
|
||||||
|
scene_name = "Balloon Festival"
|
||||||
|
switch_to = ExtResource("6_3pxso")
|
||||||
|
|
|
||||||
88
Nikita/finish_screen.tscn
Normal file
88
Nikita/finish_screen.tscn
Normal file
|
|
@ -0,0 +1,88 @@
|
||||||
|
[gd_scene load_steps=2 format=3 uid="uid://dl42xs7anteub"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://sw8aocei0slf" path="res://Nikita/scripts/finish_screen.gd" id="1_pfd8y"]
|
||||||
|
|
||||||
|
[node name="FinishScreen" type="Control"]
|
||||||
|
process_mode = 2
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
script = ExtResource("1_pfd8y")
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 7
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = -147.5
|
||||||
|
offset_top = -144.0
|
||||||
|
offset_right = 147.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_vertical = 3
|
||||||
|
|
||||||
|
[node name="ColorRect" type="ColorRect" parent="MarginContainer/VBoxContainer/MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
color = Color(0.905882, 0.756863, 0.654902, 0.427451)
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 1
|
||||||
|
text = "Score:"
|
||||||
|
vertical_alignment = 1
|
||||||
|
|
||||||
|
[node name="Points" type="Label" parent="MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 1
|
||||||
|
text = "999"
|
||||||
|
horizontal_alignment = 2
|
||||||
|
vertical_alignment = 1
|
||||||
|
|
||||||
|
[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer/MarginContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Retry" type="Button" parent="MarginContainer/VBoxContainer/MarginContainer2/HBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
theme_override_colors/font_hover_color = Color(0.596078, 0.596078, 0.596078, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 2
|
||||||
|
text = "Retry"
|
||||||
|
|
||||||
|
[node name="Exit" type="Button" parent="MarginContainer/VBoxContainer/MarginContainer2/HBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
theme_override_colors/font_hover_color = Color(0.596078, 0.596078, 0.596078, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 2
|
||||||
|
text = "Exit
|
||||||
|
"
|
||||||
|
|
||||||
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/MarginContainer2/HBoxContainer2/Retry" to="." method="_on_retry_pressed"]
|
||||||
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/MarginContainer2/HBoxContainer2/Exit" to="." method="_on_exit_pressed"]
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
[gd_scene load_steps=7 format=3 uid="uid://b6kb866y3e4aa"]
|
[gd_scene load_steps=9 format=3 uid="uid://b6kb866y3e4aa"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cjlojmoyhw2cp" path="res://Nikita/earth.tscn" id="1_248vy"]
|
[ext_resource type="PackedScene" uid="uid://cjlojmoyhw2cp" path="res://Nikita/earth.tscn" id="1_248vy"]
|
||||||
|
[ext_resource type="Script" uid="uid://br8pxakwsn4m1" path="res://Nikita/scripts/hub_scene.gd" id="1_fkqbs"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cn2wdmm2xiodm" path="res://Nikita/textures/panorama_image.png" id="2_vvf8p"]
|
[ext_resource type="Texture2D" uid="uid://cn2wdmm2xiodm" path="res://Nikita/textures/panorama_image.png" id="2_vvf8p"]
|
||||||
[ext_resource type="PackedScene" uid="uid://tvwwstaorixw" path="res://Nikita/camera_hub.tscn" id="3_ur8lc"]
|
[ext_resource type="PackedScene" uid="uid://tvwwstaorixw" path="res://Nikita/camera_hub.tscn" id="3_ur8lc"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ci05g3ilu86xl" path="res://Nikita/pause_menu.tscn" id="5_0puvs"]
|
||||||
|
|
||||||
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_ur8lc"]
|
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_ur8lc"]
|
||||||
panorama = ExtResource("2_vvf8p")
|
panorama = ExtResource("2_vvf8p")
|
||||||
|
|
@ -15,6 +17,7 @@ background_mode = 2
|
||||||
sky = SubResource("Sky_fkqbs")
|
sky = SubResource("Sky_fkqbs")
|
||||||
|
|
||||||
[node name="Hub" type="Node3D"]
|
[node name="Hub" type="Node3D"]
|
||||||
|
script = ExtResource("1_fkqbs")
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
environment = SubResource("Environment_ur8lc")
|
environment = SubResource("Environment_ur8lc")
|
||||||
|
|
@ -27,3 +30,5 @@ transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0)
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
transform = Transform3D(-0.0327197, -0.325403, -0.945009, 0.0112599, -0.945575, 0.325209, -0.999401, 1.5123e-09, 0.034603, -30.3869, 3.61956, 0)
|
transform = Transform3D(-0.0327197, -0.325403, -0.945009, 0.0112599, -0.945575, 0.325209, -0.999401, 1.5123e-09, 0.034603, -30.3869, 3.61956, 0)
|
||||||
|
|
||||||
|
[node name="PauseMenu" parent="." instance=ExtResource("5_0puvs")]
|
||||||
|
|
|
||||||
55
Nikita/pause_menu.tscn
Normal file
55
Nikita/pause_menu.tscn
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
[gd_scene load_steps=2 format=3 uid="uid://ci05g3ilu86xl"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://dpbldsvv2uovr" path="res://Nikita/scripts/pause_menu.gd" id="1_jsawv"]
|
||||||
|
|
||||||
|
[node name="PauseMenu" type="Control"]
|
||||||
|
process_mode = 2
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
script = ExtResource("1_jsawv")
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = -1
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -35.0
|
||||||
|
offset_top = -50.5
|
||||||
|
offset_right = 35.0
|
||||||
|
offset_bottom = 50.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Resume" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_hover_color = Color(0.596078, 0.596078, 0.596078, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 2
|
||||||
|
text = "Resume"
|
||||||
|
|
||||||
|
[node name="MainMenu" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_hover_color = Color(0.596078, 0.596078, 0.596078, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 2
|
||||||
|
text = "Menu"
|
||||||
|
|
||||||
|
[node name="Quit" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_hover_color = Color(0.595828, 0.595828, 0.595828, 1)
|
||||||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_constants/outline_size = 2
|
||||||
|
text = "Quit"
|
||||||
|
|
||||||
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/Resume" to="." method="_on_resume_pressed"]
|
||||||
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/MainMenu" to="." method="_on_main_menu_pressed"]
|
||||||
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"]
|
||||||
56
Nikita/scripts/balloonfest.gd
Normal file
56
Nikita/scripts/balloonfest.gd
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
extends Node3D
|
||||||
|
|
||||||
|
var paused = false
|
||||||
|
var finished = false
|
||||||
|
var main_scene : PackedScene
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$PauseMenu.hide()
|
||||||
|
$PauseMenu.resume.connect(_on_resume_button_pressed)
|
||||||
|
$PauseMenu.main_menu.connect(_on_menu_button_pressed)
|
||||||
|
$FinishScreen.hide()
|
||||||
|
$FinishScreen.retry.connect(_on_retry_button_pressed)
|
||||||
|
$FinishScreen.exit.connect(_on_exit_button_pressed)
|
||||||
|
main_scene = load("res://Nikita/hub_scene.tscn")
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if Input.is_action_just_pressed("take_picture"):
|
||||||
|
finish()
|
||||||
|
if Input.is_action_just_pressed("pause"):
|
||||||
|
pause_menu()
|
||||||
|
|
||||||
|
func pause_menu():
|
||||||
|
if paused:
|
||||||
|
$PauseMenu.hide()
|
||||||
|
get_tree().paused = false
|
||||||
|
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||||
|
else:
|
||||||
|
$PauseMenu.show()
|
||||||
|
get_tree().paused = true
|
||||||
|
paused = !paused
|
||||||
|
|
||||||
|
func finish():
|
||||||
|
if finished:
|
||||||
|
$FinishScreen.hide()
|
||||||
|
get_tree().paused = false
|
||||||
|
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||||
|
else:
|
||||||
|
$FinishScreen.show()
|
||||||
|
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||||
|
get_tree().paused = true
|
||||||
|
finished = !finished
|
||||||
|
|
||||||
|
func _on_resume_button_pressed():
|
||||||
|
pause_menu()
|
||||||
|
|
||||||
|
func _on_menu_button_pressed():
|
||||||
|
pause_menu()
|
||||||
|
get_tree().change_scene_to_packed(main_scene)
|
||||||
|
|
||||||
|
func _on_retry_button_pressed():
|
||||||
|
finish()
|
||||||
|
get_tree().reload_current_scene()
|
||||||
|
|
||||||
|
func _on_exit_button_pressed():
|
||||||
|
finish()
|
||||||
|
get_tree().change_scene_to_packed(main_scene)
|
||||||
1
Nikita/scripts/balloonfest.gd.uid
Normal file
1
Nikita/scripts/balloonfest.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://csuiro5uqp8m7
|
||||||
11
Nikita/scripts/finish_screen.gd
Normal file
11
Nikita/scripts/finish_screen.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
extends Control
|
||||||
|
|
||||||
|
signal retry
|
||||||
|
signal exit
|
||||||
|
|
||||||
|
func _on_retry_pressed() -> void:
|
||||||
|
emit_signal("retry")
|
||||||
|
|
||||||
|
|
||||||
|
func _on_exit_pressed() -> void:
|
||||||
|
emit_signal("exit")
|
||||||
1
Nikita/scripts/finish_screen.gd.uid
Normal file
1
Nikita/scripts/finish_screen.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://sw8aocei0slf
|
||||||
28
Nikita/scripts/hub_scene.gd
Normal file
28
Nikita/scripts/hub_scene.gd
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
extends Node3D
|
||||||
|
|
||||||
|
var paused = false
|
||||||
|
var main_scene : PackedScene
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$PauseMenu.hide()
|
||||||
|
$PauseMenu.resume.connect(_on_resume_button_pressed)
|
||||||
|
$PauseMenu.main_menu.connect(_on_menu_button_pressed)
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if Input.is_action_just_pressed("pause"):
|
||||||
|
pause_menu()
|
||||||
|
|
||||||
|
func pause_menu():
|
||||||
|
if paused:
|
||||||
|
$PauseMenu.hide()
|
||||||
|
get_tree().paused = false
|
||||||
|
else:
|
||||||
|
$PauseMenu.show()
|
||||||
|
get_tree().paused = true
|
||||||
|
paused = !paused
|
||||||
|
|
||||||
|
func _on_resume_button_pressed():
|
||||||
|
pause_menu()
|
||||||
|
|
||||||
|
func _on_menu_button_pressed():
|
||||||
|
pause_menu()
|
||||||
1
Nikita/scripts/hub_scene.gd.uid
Normal file
1
Nikita/scripts/hub_scene.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://br8pxakwsn4m1
|
||||||
15
Nikita/scripts/pause_menu.gd
Normal file
15
Nikita/scripts/pause_menu.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
extends Control
|
||||||
|
|
||||||
|
signal resume
|
||||||
|
signal main_menu
|
||||||
|
|
||||||
|
func _on_resume_pressed() -> void:
|
||||||
|
emit_signal("resume")
|
||||||
|
|
||||||
|
|
||||||
|
func _on_main_menu_pressed() -> void:
|
||||||
|
emit_signal("main_menu")
|
||||||
|
|
||||||
|
|
||||||
|
func _on_quit_pressed() -> void:
|
||||||
|
get_tree().quit()
|
||||||
1
Nikita/scripts/pause_menu.gd.uid
Normal file
1
Nikita/scripts/pause_menu.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://dpbldsvv2uovr
|
||||||
BIN
Nikita/source/ballons.glb
Normal file
BIN
Nikita/source/ballons.glb
Normal file
Binary file not shown.
BIN
Nikita/textures/blanket.png
Normal file
BIN
Nikita/textures/blanket.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
BIN
Nikita/textures/blanket.png.kra
Normal file
BIN
Nikita/textures/blanket.png.kra
Normal file
Binary file not shown.
BIN
Nikita/textures/golden_gate_hills_1k.exr
Normal file
BIN
Nikita/textures/golden_gate_hills_1k.exr
Normal file
Binary file not shown.
BIN
Nikita/textures/golden_gate_hills_1k.png
Normal file
BIN
Nikita/textures/golden_gate_hills_1k.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 MiB |
|
|
@ -20,6 +20,10 @@ config/icon="res://icon.svg"
|
||||||
PictureTakeablesArray="*res://picture_takeables_array.gd"
|
PictureTakeablesArray="*res://picture_takeables_array.gd"
|
||||||
PathfindingArray="*res://pathfinding_array.gd"
|
PathfindingArray="*res://pathfinding_array.gd"
|
||||||
|
|
||||||
|
[dotnet]
|
||||||
|
|
||||||
|
project/assembly_name="AllAroundTheWorld"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
||||||
forward={
|
forward={
|
||||||
|
|
@ -57,6 +61,11 @@ interact={
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"key_label":0,"unicode":101,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"key_label":0,"unicode":101,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
pause={
|
||||||
|
"deadzone": 0.2,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue