Improved death, health now works, menus, and yes

This commit is contained in:
Paul Black 2023-02-02 13:28:14 -07:00
parent 07a76b966f
commit 7ffed59347
25 changed files with 574 additions and 69 deletions

View file

@ -57,38 +57,51 @@ func _physics_process(delta):
## If player falls off the map, kill them!
if velocity.y < Global.playerYDeath:
Global.player_dead()
if Global.playerHealth <= 0:
Global.player_dead()
# Handle Jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var input_dir = Input.get_vector("player_left", "player_right", "player_forward", "player_backward")
var direction = (neck.transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
if Input.is_action_pressed("sprint"):
if Global.fatigue > 5:
SPEED = 10.0
if Global.fatigue < 5:
SPEED = 2.0
if Input.is_action_pressed("sprint"):
pass
elif Global.fatigue > 5:
SPEED = 5.0
if Input.is_action_just_released("sprint"):
SPEED = 5.0
if direction:
velocity.x = direction.x * SPEED
velocity.z = direction.z * SPEED
else:
velocity.x = move_toward(velocity.x, 0, SPEED)
velocity.z = move_toward(velocity.z, 0, SPEED)
if Input.is_action_just_pressed("shoot"):
if Global.menuOpen == false:
print("shoot")
var b = Bullet.instantiate()
owner.add_child(b)
b.transform = $Neck/BulletGenerator.global_transform
b.velocity = -b.global_transform.basis.z * b.muzzle_velocity
if Global.playerAlive:
# Handle Jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = JUMP_VELOCITY
var input_dir = Input.get_vector("player_left", "player_right", "player_forward", "player_backward")
var direction = (neck.transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
if Input.is_action_pressed("sprint"):
if Global.fatigue > 5:
SPEED = 10.0
if Global.fatigue < 5:
SPEED = 2.0
if Input.is_action_pressed("sprint"):
pass
elif Global.fatigue > 5:
SPEED = 5.0
if Input.is_action_just_released("sprint"):
SPEED = 5.0
if direction:
velocity.x = direction.x * SPEED
velocity.z = direction.z * SPEED
else:
velocity.x = move_toward(velocity.x, 0, SPEED)
velocity.z = move_toward(velocity.z, 0, SPEED)
if Global.playerDead:
velocity.x = 0
velocity.z = 0
if Input.is_action_just_pressed("shoot"):
if Global.menuOpen == false:
print("shoot")
var b = Bullet.instantiate()
owner.add_child(b)
b.transform = $Neck/BulletGenerator.global_transform
b.velocity = -b.global_transform.basis.z * b.muzzle_velocity
if Input.is_action_just_pressed("console"):
var scene_trs = load("res://scenes/console.tscn")
var scene = scene_trs.instantiate()
if not Global.consoleOpen:
Global.consoleOpen = true
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
add_child(scene)
elif Global.consoleOpen:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
Global.consoleOpen = false # We remove the scene in console.gd
move_and_slide()

View file

@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://objects/Bullet/Bullet.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://pni78bumc5f5" path="res://objects/Bullet/model/Bullet.dae" id="2"]
[sub_resource type="BoxShape3D" id="BoxShape3D_l4uod"]
[sub_resource type="BoxShape3D" id="BoxShape3D_rite6"]
size = Vector3(0.40456, 0.406836, 0.393048)
[node name="Bullet" type="Area3D" groups=["bullet"]]
@ -12,7 +12,7 @@ script = ExtResource("1")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." groups=["bullet"]]
transform = Transform3D(0.957696, 0, 0, 0, 1, 0, 0, 0, 1.66763, 0, 0, -0.295843)
shape = SubResource("BoxShape3D_l4uod")
shape = SubResource("BoxShape3D_rite6")
[node name="Bullet" parent="." instance=ExtResource("2")]
transform = Transform3D(0.200224, 0, 0, 0, -8.75207e-09, 0.200224, 0, -0.200224, -8.75207e-09, 0, 0, 0)

View file

@ -63,3 +63,13 @@ shoot={
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"pressed":false,"double_click":false,"script":null)
]
}
console={
"deadzone": 0.5,
"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":96,"key_label":0,"unicode":96,"echo":false,"script":null)
]
}
console_send={
"deadzone": 0.5,
"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":4194309,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}

View file

@ -9,6 +9,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1_mqiiw")
[node name="Health" type="ProgressBar" parent="."]

63
scenes/console.tscn Normal file
View file

@ -0,0 +1,63 @@
[gd_scene load_steps=2 format=3 uid="uid://dqa6jrnw8qfbt"]
[ext_resource type="Script" path="res://scripts/console.gd" id="1_da4k3"]
[node name="console" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_da4k3")
[node name="Panel" type="Panel" parent="."]
layout_mode = 0
offset_left = 438.0
offset_top = 507.0
offset_right = 725.0
offset_bottom = 630.0
[node name="consoleEdit" type="LineEdit" 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 = -107.0
offset_top = -97.0
offset_right = 107.0
offset_bottom = -58.0
grow_horizontal = 2
grow_vertical = 0
[node name="Label" type="Label" 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 = -66.0
offset_top = -134.0
offset_right = 66.0
offset_bottom = -108.0
grow_horizontal = 2
grow_vertical = 0
text = "Enter Hacks here"
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 452.0
offset_top = 599.0
offset_right = 492.0
offset_bottom = 622.0
text = "Output: "
[node name="output" type="Label" parent="."]
layout_mode = 0
offset_left = 522.0
offset_top = 600.0
offset_right = 562.0
offset_bottom = 623.0

115
scenes/credits.tscn Normal file
View file

@ -0,0 +1,115 @@
[gd_scene load_steps=5 format=3 uid="uid://bqwgly88dfeg"]
[ext_resource type="Script" path="res://scripts/credits.gd" id="1_0ty5p"]
[ext_resource type="Texture2D" uid="uid://bg7x581ay4lr2" path="res://splashes/godot.svg" id="1_bq7vw"]
[ext_resource type="Texture2D" uid="uid://dqq5utsav3i1o" path="res://splashes/blender.svg" id="2_0dbbk"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lia3x"]
[node name="credits" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_0ty5p")
[node name="Panel" type="Panel" parent="."]
modulate = Color(0.298039, 0.298039, 0.298039, 1)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -203.5
offset_top = -195.0
offset_right = 203.5
offset_bottom = 195.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_lia3x")
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_left = 535.0
offset_top = 176.0
offset_right = 641.0
offset_bottom = 202.0
text = "Project Teddy"
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 535.0
offset_top = 221.0
offset_right = 634.0
offset_bottom = 247.0
text = "Programmer"
[node name="Label3" type="Label" parent="."]
layout_mode = 0
offset_left = 544.0
offset_top = 244.0
offset_right = 624.0
offset_bottom = 270.0
text = "Paul Black"
[node name="Label4" type="Label" parent="."]
layout_mode = 0
offset_left = 562.0
offset_top = 284.0
offset_right = 605.0
offset_bottom = 310.0
text = "Artist"
[node name="Label5" type="Label" parent="."]
layout_mode = 0
offset_left = 531.0
offset_top = 309.0
offset_right = 643.0
offset_bottom = 335.0
text = "Jayden Wilkins"
[node name="Label6" type="Label" parent="."]
layout_mode = 0
offset_left = 530.0
offset_top = 369.0
offset_right = 643.0
offset_bottom = 395.0
text = "Software Used"
[node name="Label7" type="Label" parent="."]
layout_mode = 0
offset_left = 513.0
offset_top = 399.0
offset_right = 667.0
offset_bottom = 425.0
text = "Godot Game Engine"
[node name="Label8" type="Label" parent="."]
layout_mode = 0
offset_left = 555.0
offset_top = 428.0
offset_right = 616.0
offset_bottom = 454.0
text = "Blender"
[node name="Icon" type="Sprite2D" parent="."]
position = Vector2(429, 464)
scale = Vector2(0.742187, 0.742187)
texture = ExtResource("1_bq7vw")
[node name="Blender" type="Sprite2D" parent="."]
position = Vector2(716, 465)
scale = Vector2(0.194581, 0.194581)
texture = ExtResource("2_0dbbk")
[node name="Button" type="Button" parent="."]
offset_left = 380.0
offset_top = 136.0
offset_right = 411.0
offset_bottom = 167.0
text = "X"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]

View file

@ -11,6 +11,13 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_we0rj")
[node name="Panel" type="Panel" parent="."]
layout_mode = 0
offset_left = 294.0
offset_top = 179.0
offset_right = 847.0
offset_bottom = 403.0
[node name="deathBar" type="ProgressBar" parent="."]
modulate = Color(0.894118, 0, 0.00392157, 1)
layout_mode = 0

View file

@ -13,37 +13,49 @@ script = ExtResource("1_w5lhm")
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = 498.0
offset_top = 179.0
offset_right = 689.0
offset_bottom = 242.0
text = "PLAY"
offset_left = 479.0
offset_top = 187.0
offset_right = 670.0
offset_bottom = 250.0
text = "TUTORIAL"
[node name="Button4" type="Button" parent="."]
layout_mode = 0
offset_left = 498.0
offset_top = 248.0
offset_right = 689.0
offset_bottom = 311.0
offset_left = 479.0
offset_top = 256.0
offset_right = 670.0
offset_bottom = 319.0
text = "MULTIPLAYER"
metadata/_edit_use_anchors_ = true
[node name="Button2" type="Button" parent="."]
layout_mode = 0
offset_left = 498.0
offset_top = 316.0
offset_right = 689.0
offset_bottom = 379.0
offset_left = 479.0
offset_top = 324.0
offset_right = 670.0
offset_bottom = 387.0
text = "SETTINGS"
metadata/_edit_use_anchors_ = true
[node name="Button3" type="Button" parent="."]
layout_mode = 0
offset_left = 498.0
offset_top = 384.0
offset_right = 689.0
offset_bottom = 447.0
offset_left = 479.0
offset_top = 392.0
offset_right = 670.0
offset_bottom = 455.0
text = "EXIT"
metadata/_edit_use_anchors_ = true
[node name="Button5" type="Button" parent="."]
layout_mode = 0
offset_left = 527.0
offset_top = 597.0
offset_right = 619.0
offset_bottom = 637.0
text = "CREDITS"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button4" to="." method="_on_button_4_pressed"]
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]
[connection signal="pressed" from="Button3" to="." method="_on_button_3_pressed"]
[connection signal="pressed" from="Button5" to="." method="_on_button_5_pressed"]

View file

@ -28,7 +28,6 @@ script = ExtResource("1_gtai1")
[node name="HUD" parent="." instance=ExtResource("2_ggrqc")]
show_behind_parent = true
mouse_filter = 2
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_fnphj")

View file

@ -0,0 +1,58 @@
[gd_scene load_steps=3 format=3 uid="uid://tr445hv80hhf"]
[ext_resource type="Script" path="res://scripts/sceneChangerConfirm.gd" id="1_xg0tq"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eakrh"]
[node name="sceneChangerConfirm" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_xg0tq")
[node name="Panel" type="Panel" parent="."]
modulate = Color(0.298039, 0.298039, 0.298039, 1)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -121.0
offset_top = -62.5
offset_right = 121.0
offset_bottom = 62.5
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_eakrh")
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_left = 476.0
offset_top = 272.0
offset_right = 672.0
offset_bottom = 324.0
text = "Are you sure you'd like to
change scenes?"
horizontal_alignment = 1
[node name="yesButton" type="Button" parent="."]
layout_mode = 0
offset_left = 461.0
offset_top = 338.0
offset_right = 555.0
offset_bottom = 379.0
text = "Yes"
[node name="noButton" type="Button" parent="."]
offset_left = 597.0
offset_top = 338.0
offset_right = 691.0
offset_bottom = 379.0
text = "No"
[connection signal="pressed" from="yesButton" to="." method="_on_yes_button_pressed"]
[connection signal="pressed" from="noButton" to="." method="_on_no_button_pressed"]

View file

@ -21,9 +21,9 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -110.0
offset_left = -121.0
offset_top = -156.0
offset_right = 140.0
offset_right = 129.0
offset_bottom = 134.0
grow_horizontal = 2
grow_vertical = 2
@ -31,27 +31,27 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_j46gp")
[node name="h_slider" type="HSlider" parent="."]
layout_mode = 2
offset_left = 498.0
offset_left = 487.0
offset_top = 238.0
offset_right = 682.0
offset_right = 671.0
offset_bottom = 254.0
max_value = 0.02
step = 0.001
[node name="Label" type="Label" parent="."]
layout_mode = 2
offset_left = 497.0
offset_left = 486.0
offset_top = 213.0
offset_right = 685.0
offset_right = 674.0
offset_bottom = 239.0
size_flags_vertical = 0
text = "Adjust Mouse sensitivity"
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = 470.0
offset_left = 459.0
offset_top = 173.0
offset_right = 501.0
offset_right = 490.0
offset_bottom = 204.0
text = "X"

48
scenes/tutorial.tscn Normal file
View file

@ -0,0 +1,48 @@
[gd_scene load_steps=9 format=3 uid="uid://dkokyp5lwhks4"]
[ext_resource type="Script" path="res://scripts/maps/tutorial.gd" id="1_40ws8"]
[ext_resource type="PackedScene" uid="uid://dp1q51kvd8uow" path="res://scenes/Teddy.tscn" id="1_081si"]
[ext_resource type="PackedScene" uid="uid://ytbacsuahxie" path="res://scenes/HUD.tscn" id="2_s3v8n"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_i5hsu"]
sky_top_color = Color(1, 1, 1, 1)
sky_horizon_color = Color(0.8, 0.79225, 0.78325, 1)
ground_horizon_color = Color(0.8, 0.79225, 0.78325, 1)
[sub_resource type="Sky" id="Sky_trjyj"]
sky_material = SubResource("ProceduralSkyMaterial_i5hsu")
[sub_resource type="Environment" id="Environment_jlsfy"]
background_mode = 2
sky = SubResource("Sky_trjyj")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="PlaneMesh" id="PlaneMesh_c6isn"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_hllao"]
data = PackedVector3Array(1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 0, -1)
[node name="tutorial" type="Node3D"]
script = ExtResource("1_40ws8")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_jlsfy")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0)
shadow_enabled = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(12, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0)
mesh = SubResource("PlaneMesh_c6isn")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_hllao")
[node name="Teddy" parent="." instance=ExtResource("1_081si")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 1.039, 2.08165e-12)
[node name="HUD" parent="." instance=ExtResource("2_s3v8n")]

View file

@ -1,11 +1,10 @@
extends Control
var fatigue = Global.fatigue
func _ready():
pass
func _process(delta):
fatigue = Global.fatigue
$Fatigue.value = fatigue
$Fatigue.value = Global.fatigue
$Health.value = Global.playerHealth

43
scripts/console.gd Normal file
View file

@ -0,0 +1,43 @@
extends Node
var scenePlayground = "res://scenes/playground.tscn"
var sceneTutorial = "res://scenes/tutorial.tscn"
func _ready():
pass
func _process(delta):
if not Global.consoleOpen:
self.queue_free()
if Input.is_action_just_pressed("console_send"):
Global.consoleCommand = $consoleEdit.text
print (Global.consoleCommand)
run_command(Global.consoleCommand)
func run_command(command):
if command == "tele playground":
get_tree().change_scene_to_file(scenePlayground)
Global.consoleOutput = "Teleported to Playground!"
elif command == "tele tutorial":
get_tree().change_scene_to_file(sceneTutorial)
Global.consoleOutput = "Teleported to Tutorial!"
elif command == "which scene":
Global.consoleOutput = get_tree().get_current_scene().get_name()
elif command == "iamgod":
if not Global.godMode:
Global.consoleOutput = "God mode activated"
Global.godMode = true
elif Global.godMode:
Global.consoleOutput = "God mode deactivated"
Global.godMode = false
elif command == "exit":
Global.consoleOutput = "Byeee loser"
get_tree().quit()
elif command == "paul":
Global.consoleOutput = "Yuppp that's me"
elif command == "jayden":
Global.consoleOutput = "That's the noob artist"
else:
Global.consoleOutput = "Unknown cheat code"
$output.text = Global.consoleOutput

15
scripts/credits.gd Normal file
View file

@ -0,0 +1,15 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_button_pressed():
self.queue_free()

View file

@ -14,4 +14,6 @@ func _process(delta):
deathTimer = 0
Global.playerPleaseRespawn = true # Used so the Teddy script will know to reset variables and position of the player
self.queue_free()
Global.playerHealth = 100
Global.fatigue = 100
$deathBar.value = deathTimer

View file

@ -10,9 +10,17 @@ var playerAlive = true # Gets set to false by death.tscn then to true after the
var playerPleaseRespawn = false # When true, this executes the apporiate commands to respawn the player. Controlled by death.tscn
var playerYDeath = -20 # The point in which the player will die from falling off the map, defined in map scripts
var deathShield = 0 # Makes you unkillable for a specified amount of time. Used to prevent the kill screen from appearing twice as well
var goScene # This is used for the sceneChangerConfirm window. Initalized by a different script prior to sceneChangerConfirm
var consoleOpen = false # This specifies whether or not the console is open
var consoleCommand # Defined by console.gd
var consoleOutput # Defined by console.gd
var godMode = false # Defined by console.gd
func _process(delta):
if Input.is_action_pressed("sprint"):
playerHealth = playerHealth - 20 * delta
if godMode:
pass
elif Input.is_action_pressed("sprint"):
if fatigue > 0:
fatigue = fatigue - 10 * delta
elif not Input.is_action_pressed("sprint"):

View file

@ -1,6 +1,6 @@
extends Control
var mainMenuScene = "res://scenes/mainmenu.tscn"
func _ready():
if Global.playingGame == true:
@ -13,7 +13,7 @@ func _process(delta):
func _on_button_pressed():
if Global.playingGame == false:
get_tree().change_scene_to_file("res://scenes/playground.tscn")
get_tree().change_scene_to_file("res://scenes/tutorial.tscn")
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
elif Global.playingGame == true:
self.queue_free()
@ -33,6 +33,13 @@ func _on_button_4_pressed():
if Global.playingGame == false:
get_tree().change_scene_to_file("res://scenes/multiplayer.tscn")
if Global.playingGame == true:
Global.playingGame = false
Global.menuOpen = false
get_tree().change_scene_to_file("res://scenes/mainmenu.tscn")
Global.goScene = mainMenuScene
var scene_trs =load("res://scenes/sceneChangerConfirm.tscn")
var scene=scene_trs.instantiate()
add_child(scene)
func _on_button_5_pressed():
var scene_trs =load("res://scenes/credits.tscn")
var scene=scene_trs.instantiate()
add_child(scene)

10
scripts/maps/tutorial.gd Normal file
View file

@ -0,0 +1,10 @@
extends Node
func _ready():
Global.playerHealth = 100
Global.fatigue = 100
func _process(delta):
pass

View file

@ -0,0 +1,19 @@
extends Control
func _ready():
pass
func _process(delta):
pass
func _on_yes_button_pressed():
Global.playingGame = false
Global.menuOpen = false
get_tree().change_scene_to_file(Global.goScene)
func _on_no_button_pressed():
self.queue_free()

BIN
splashes/.DS_Store vendored Normal file

Binary file not shown.

1
splashes/blender.svg Normal file
View file

@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 499.77 405.98"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#265787;}.cls-3{fill:#ea7600;}</style></defs><title>blender</title><path class="cls-1" d="M196.49,225.35c1.82-32.49,17.73-61.11,41.73-81.4,23.54-19.92,55.22-32.1,89.78-32.1S394.21,124,417.77,144c24,20.29,39.89,48.91,41.73,81.37,1.82,33.38-11.6,64.39-35.14,87.37-24,23.38-58.13,38.06-96.36,38.06s-72.43-14.68-96.41-38.06C208,289.71,194.66,258.7,196.49,225.35Z"/><path class="cls-2" d="M260.53,228.27c.93-16.67,9.1-31.36,21.41-41.77a72.65,72.65,0,0,1,92.13,0c12.3,10.41,20.47,25.1,21.41,41.75.93,17.13-6,33-18,44.83-12.31,12-29.83,19.53-49.44,19.53s-37.16-7.53-49.47-19.53C266.45,261.29,259.59,245.38,260.53,228.27Z"/><path class="cls-3" d="M153.08,262c.11,6.52,2.19,19.2,5.31,29.1a153.58,153.58,0,0,0,33.16,57.42,171.34,171.34,0,0,0,58,41.67A189.71,189.71,0,0,0,402,389.88,172.65,172.65,0,0,0,460,348a154.79,154.79,0,0,0,33.15-57.53,145.39,145.39,0,0,0,6.24-32.11,146.87,146.87,0,0,0-1-31.9,148.49,148.49,0,0,0-21.15-57.87,161.49,161.49,0,0,0-38.58-42.53l0,0L282.5,6.2c-.14-.11-.26-.22-.41-.32-10.24-7.86-27.47-7.83-38.73,0s-12.69,21.14-2.56,29.46l0,0,65.11,53-198.46.21h-.27C90.74,88.61,75,99.37,71.85,113c-3.21,13.86,7.93,25.36,25,25.42l0,.06,100.6-.19L17.9,276l-.69.51C.28,289.52-5.2,311.08,5.47,324.73c10.82,13.87,33.84,13.9,51,.08l98-80.18A152.15,152.15,0,0,0,153.08,262ZM404.82,298.2c-20.18,20.56-48.44,32.22-79,32.28s-58.89-11.5-79.07-32a93.92,93.92,0,0,1-21.58-33.78,87.69,87.69,0,0,1-5-37.74A89.11,89.11,0,0,1,231,191.39a98,98,0,0,1,24-28.55c19.62-16,44.6-24.65,70.73-24.68s51.12,8.54,70.76,24.48a97.5,97.5,0,0,1,24,28.46,89.19,89.19,0,0,1,10.86,35.52,87.81,87.81,0,0,1-5,37.72A94.33,94.33,0,0,1,404.82,298.2Z"/></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dqq5utsav3i1o"
path="res://.godot/imported/blender.svg-30745d3fde109c2dd09fe06f35ced49b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://splashes/blender.svg"
dest_files=["res://.godot/imported/blender.svg-30745d3fde109c2dd09fe06f35ced49b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
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=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

1
splashes/godot.svg Normal file
View file

@ -0,0 +1 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><g transform="translate(32 32)"><path d="m-16-32c-8.86 0-16 7.13-16 15.99v95.98c0 8.86 7.13 15.99 16 15.99h96c8.86 0 16-7.13 16-15.99v-95.98c0-8.85-7.14-15.99-16-15.99z" fill="#363d52"/><path d="m-16-32c-8.86 0-16 7.13-16 15.99v95.98c0 8.86 7.13 15.99 16 15.99h96c8.86 0 16-7.13 16-15.99v-95.98c0-8.85-7.14-15.99-16-15.99zm0 4h96c6.64 0 12 5.35 12 11.99v95.98c0 6.64-5.35 11.99-12 11.99h-96c-6.64 0-12-5.35-12-11.99v-95.98c0-6.64 5.36-11.99 12-11.99z" fill-opacity=".4"/></g><g stroke-width="9.92746" transform="matrix(.10073078 0 0 .10073078 12.425923 2.256365)"><path d="m0 0s-.325 1.994-.515 1.976l-36.182-3.491c-2.879-.278-5.115-2.574-5.317-5.459l-.994-14.247-27.992-1.997-1.904 12.912c-.424 2.872-2.932 5.037-5.835 5.037h-38.188c-2.902 0-5.41-2.165-5.834-5.037l-1.905-12.912-27.992 1.997-.994 14.247c-.202 2.886-2.438 5.182-5.317 5.46l-36.2 3.49c-.187.018-.324-1.978-.511-1.978l-.049-7.83 30.658-4.944 1.004-14.374c.203-2.91 2.551-5.263 5.463-5.472l38.551-2.75c.146-.01.29-.016.434-.016 2.897 0 5.401 2.166 5.825 5.038l1.959 13.286h28.005l1.959-13.286c.423-2.871 2.93-5.037 5.831-5.037.142 0 .284.005.423.015l38.556 2.75c2.911.209 5.26 2.562 5.463 5.472l1.003 14.374 30.645 4.966z" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 919.24059 771.67186)"/><path d="m0 0v-47.514-6.035-5.492c.108-.001.216-.005.323-.015l36.196-3.49c1.896-.183 3.382-1.709 3.514-3.609l1.116-15.978 31.574-2.253 2.175 14.747c.282 1.912 1.922 3.329 3.856 3.329h38.188c1.933 0 3.573-1.417 3.855-3.329l2.175-14.747 31.575 2.253 1.115 15.978c.133 1.9 1.618 3.425 3.514 3.609l36.182 3.49c.107.01.214.014.322.015v4.711l.015.005v54.325c5.09692 6.4164715 9.92323 13.494208 13.621 19.449-5.651 9.62-12.575 18.217-19.976 26.182-6.864-3.455-13.531-7.369-19.828-11.534-3.151 3.132-6.7 5.694-10.186 8.372-3.425 2.751-7.285 4.768-10.946 7.118 1.09 8.117 1.629 16.108 1.846 24.448-9.446 4.754-19.519 7.906-29.708 10.17-4.068-6.837-7.788-14.241-11.028-21.479-3.842.642-7.702.88-11.567.926v.006c-.027 0-.052-.006-.075-.006-.024 0-.049.006-.073.006v-.006c-3.872-.046-7.729-.284-11.572-.926-3.238 7.238-6.956 14.642-11.03 21.479-10.184-2.264-20.258-5.416-29.703-10.17.216-8.34.755-16.331 1.848-24.448-3.668-2.35-7.523-4.367-10.949-7.118-3.481-2.678-7.036-5.24-10.188-8.372-6.297 4.165-12.962 8.079-19.828 11.534-7.401-7.965-14.321-16.562-19.974-26.182 4.4426579-6.973692 9.2079702-13.9828876 13.621-19.449z" fill="#478cbf" transform="matrix(4.162611 0 0 -4.162611 104.69892 525.90697)"/><path d="m0 0-1.121-16.063c-.135-1.936-1.675-3.477-3.611-3.616l-38.555-2.751c-.094-.007-.188-.01-.281-.01-1.916 0-3.569 1.406-3.852 3.33l-2.211 14.994h-31.459l-2.211-14.994c-.297-2.018-2.101-3.469-4.133-3.32l-38.555 2.751c-1.936.139-3.476 1.68-3.611 3.616l-1.121 16.063-32.547 3.138c.015-3.498.06-7.33.06-8.093 0-34.374 43.605-50.896 97.781-51.086h.066.067c54.176.19 97.766 16.712 97.766 51.086 0 .777.047 4.593.063 8.093z" fill="#478cbf" transform="matrix(4.162611 0 0 -4.162611 784.07144 817.24284)"/><path d="m0 0c0-12.052-9.765-21.815-21.813-21.815-12.042 0-21.81 9.763-21.81 21.815 0 12.044 9.768 21.802 21.81 21.802 12.048 0 21.813-9.758 21.813-21.802" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 389.21484 625.67104)"/><path d="m0 0c0-7.994-6.479-14.473-14.479-14.473-7.996 0-14.479 6.479-14.479 14.473s6.483 14.479 14.479 14.479c8 0 14.479-6.485 14.479-14.479" fill="#414042" transform="matrix(4.162611 0 0 -4.162611 367.36686 631.05679)"/><path d="m0 0c-3.878 0-7.021 2.858-7.021 6.381v20.081c0 3.52 3.143 6.381 7.021 6.381s7.028-2.861 7.028-6.381v-20.081c0-3.523-3.15-6.381-7.028-6.381" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 511.99336 724.73954)"/><path d="m0 0c0-12.052 9.765-21.815 21.815-21.815 12.041 0 21.808 9.763 21.808 21.815 0 12.044-9.767 21.802-21.808 21.802-12.05 0-21.815-9.758-21.815-21.802" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 634.78706 625.67104)"/><path d="m0 0c0-7.994 6.477-14.473 14.471-14.473 8.002 0 14.479 6.479 14.479 14.473s-6.477 14.479-14.479 14.479c-7.994 0-14.471-6.485-14.471-14.479" fill="#414042" transform="matrix(4.162611 0 0 -4.162611 656.64056 631.05679)"/></g></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

37
splashes/godot.svg.import Normal file
View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bg7x581ay4lr2"
path="res://.godot/imported/godot.svg-dfd0c6d0b550de1675c2ab4f6216d77f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://splashes/godot.svg"
dest_files=["res://.godot/imported/godot.svg-dfd0c6d0b550de1675c2ab4f6216d77f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
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=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false