put more text on menus
This commit is contained in:
parent
f14e8ebdd0
commit
8ba46dc705
23 changed files with 373 additions and 69 deletions
BIN
audio/sounds/key.wav
Normal file
BIN
audio/sounds/key.wav
Normal file
Binary file not shown.
23
audio/sounds/key.wav.import
Normal file
23
audio/sounds/key.wav.import
Normal file
|
@ -0,0 +1,23 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/key.wav-f64ed6eabdf317ae60d3d7fb51bcbd89.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://audio/sounds/key.wav"
|
||||
dest_files=[ "res://.import/key.wav-f64ed6eabdf317ae60d3d7fb51bcbd89.sample" ]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
|
@ -10,7 +10,7 @@ onready var ac_cheat = $CodeEntrySound
|
|||
onready var ac_boss = $BossSound
|
||||
onready var ac_shard = $ShardSound
|
||||
#Sounds
|
||||
const a_gold = preload("res://audio/sounds/key.ogg")
|
||||
const a_gold = preload("res://audio/sounds/key.wav")
|
||||
const a_arrow = preload("res://audio/sounds/a_egg_collect.ogg")
|
||||
const a_jump = preload("res://audio/sounds/jump.ogg")
|
||||
const a_star = preload("res://audio/sounds/star.ogg")
|
||||
|
|
|
@ -7,6 +7,8 @@ enum Difficulty {
|
|||
PUNGENT, # faster enemies, 3 lives
|
||||
}
|
||||
|
||||
const DIFFICULTY_NAMES = ["Sweet","Salty","Spicy","Pungent"]
|
||||
|
||||
var resolution = Vector2(256,192)
|
||||
var current_sector = Vector2(0,0)
|
||||
#Onreadys
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
resource_name = "Verdant Hills"
|
||||
script = ExtResource( 5 )
|
||||
title = "Verdant Hills"
|
||||
shard_titles = [ "Climb to the top", "Dodge the bioslime", "Avoid the Catbat", "Energetic eviscerator", "5 Rainbow Stars", "Collection Bonus", "Time Bonus", "Life Bonus" ]
|
||||
shard_titles = [ "Climb to the top", "The obstacle course", "The smallest platform", "Energetic eviscerator", "5 Rainbow Stars", "Collection Bonus", "Time Bonus", "Life Bonus" ]
|
||||
save_id = "hills"
|
||||
scene = ExtResource( 2 )
|
||||
|
||||
|
|
BIN
graphics/hud/delete.png
Normal file
BIN
graphics/hud/delete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 336 B |
35
graphics/hud/delete.png.import
Normal file
35
graphics/hud/delete.png.import
Normal file
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/delete.png-9117bf6c631defbca88858287a9f5ad3.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://graphics/hud/delete.png"
|
||||
dest_files=[ "res://.import/delete.png-9117bf6c631defbca88858287a9f5ad3.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
BIN
graphics/hud/delete_dim.png
Normal file
BIN
graphics/hud/delete_dim.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 288 B |
35
graphics/hud/delete_dim.png.import
Normal file
35
graphics/hud/delete_dim.png.import
Normal file
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/delete_dim.png-0fe030b64fef9e199335b59b8477cc54.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://graphics/hud/delete_dim.png"
|
||||
dest_files=[ "res://.import/delete_dim.png-0fe030b64fef9e199335b59b8477cc54.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
File diff suppressed because one or more lines are too long
14
menus/DeleteButton.gd
Normal file
14
menus/DeleteButton.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends TextureButton
|
||||
|
||||
onready var sprite = $AnimatedSprite
|
||||
|
||||
func _process(delta):
|
||||
if has_focus():
|
||||
sprite.playing = true
|
||||
else:
|
||||
sprite.playing = false
|
||||
sprite.frame = 0
|
||||
|
||||
func _gui_input(event):
|
||||
if event.is_action_pressed("ui_accept"):
|
||||
get_parent().set_kill_mode(!get_parent().kill_mode)
|
|
@ -18,7 +18,7 @@ animations = [ {
|
|||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[node name="Button" type="TextureButton"]
|
||||
[node name="Back" type="TextureButton"]
|
||||
margin_right = 52.0
|
||||
margin_bottom = 33.0
|
||||
theme = SubResource( 1 )
|
||||
|
|
|
@ -3,13 +3,29 @@ extends Node
|
|||
|
||||
const DESCRIPTIONS := [
|
||||
# sweet mode
|
||||
{"enemies": "*slower enemies", "lives": "*unlimited lives"},
|
||||
{
|
||||
"enemies": "*slower enemies",
|
||||
"lives": "*unlimited lives",
|
||||
"description": "*Difficulty for\n beginners",
|
||||
},
|
||||
# salty mode
|
||||
{"enemies": "*normal enemies", "lives": "*unlimited lives"},
|
||||
{
|
||||
"enemies": "*normal enemies",
|
||||
"lives": "*unlimited lives",
|
||||
"description": "*Difficulty for\n skilled players",
|
||||
},
|
||||
# spicy mode
|
||||
{"enemies": "*normal enemies", "lives": "*limited lives"},
|
||||
{
|
||||
"enemies": "*normal enemies",
|
||||
"lives": "*limited lives",
|
||||
"description": "*Difficulty for\n retro players",
|
||||
},
|
||||
# pungent mode
|
||||
{"enemies": "*faster enemies", "lives": "*limited lives"},
|
||||
{
|
||||
"enemies": "*faster enemies",
|
||||
"lives": "*limited lives",
|
||||
"description": "*Difficulty for\n insane players",
|
||||
},
|
||||
]
|
||||
|
||||
var file: Save.SaveFile = null
|
||||
|
@ -19,6 +35,7 @@ onready var face: Sprite = $"%Face"
|
|||
onready var chosen_name: Label = $"%ChosenName"
|
||||
onready var enemies: Label = $"%Enemies"
|
||||
onready var lives: Label = $"%Lives"
|
||||
onready var description: Label = $"%Description"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
@ -45,6 +62,8 @@ func _set_difficulty(value: int) -> void:
|
|||
face.frame = difficulty
|
||||
enemies.text = DESCRIPTIONS[difficulty].enemies
|
||||
lives.text = DESCRIPTIONS[difficulty].lives
|
||||
description.text = DESCRIPTIONS[difficulty].description
|
||||
|
||||
|
||||
|
||||
func _difficulty_selected() -> void:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=21 format=2]
|
||||
[gd_scene load_steps=22 format=2]
|
||||
|
||||
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=1]
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=2]
|
||||
|
@ -14,6 +14,7 @@
|
|||
[ext_resource path="res://tilesets/t_ladders.tres" type="TileSet" id=12]
|
||||
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=13]
|
||||
[ext_resource path="res://graphics/exit/exit.png" type="Texture" id=14]
|
||||
[ext_resource path="res://objects/environment/ladder/ladder.tscn" type="PackedScene" id=15]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
shader = ExtResource( 1 )
|
||||
|
@ -78,17 +79,30 @@ theme = ExtResource( 2 )
|
|||
[node name="Label" type="Label" parent="DifficultySelect"]
|
||||
material = ExtResource( 8 )
|
||||
margin_left = 8.0
|
||||
margin_top = 40.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 54.0
|
||||
text = "Select Difficulty:"
|
||||
margin_top = 8.0
|
||||
margin_right = 253.0
|
||||
margin_bottom = 44.0
|
||||
text = "Select the difficulty of the
|
||||
future, sg loves hot chips but that
|
||||
doesn't mean you have to"
|
||||
|
||||
[node name="Label2" type="Label" parent="DifficultySelect"]
|
||||
material = ExtResource( 8 )
|
||||
margin_left = 92.0
|
||||
margin_top = 56.0
|
||||
margin_right = 176.0
|
||||
margin_bottom = 105.0
|
||||
text = "Feel free
|
||||
to start
|
||||
anew if you
|
||||
have trouble"
|
||||
|
||||
[node name="ButtonsPanel" type="Panel" parent="DifficultySelect"]
|
||||
material = SubResource( 2 )
|
||||
margin_left = 16.0
|
||||
margin_top = 64.0
|
||||
margin_top = 48.0
|
||||
margin_right = 88.0
|
||||
margin_bottom = 128.0
|
||||
margin_bottom = 112.0
|
||||
theme = ExtResource( 2 )
|
||||
|
||||
[node name="Body" type="Label" parent="DifficultySelect/ButtonsPanel"]
|
||||
|
@ -146,9 +160,9 @@ texture_focused = ExtResource( 6 )
|
|||
[node name="DescriptionPanel" type="Panel" parent="DifficultySelect"]
|
||||
material = SubResource( 2 )
|
||||
margin_left = 16.0
|
||||
margin_top = 136.0
|
||||
margin_top = 120.0
|
||||
margin_right = 144.0
|
||||
margin_bottom = 176.0
|
||||
margin_bottom = 184.0
|
||||
theme = ExtResource( 2 )
|
||||
|
||||
[node name="Enemies" type="Label" parent="DifficultySelect/DescriptionPanel"]
|
||||
|
@ -174,6 +188,16 @@ margin_bottom = -8.0
|
|||
text = "*limited lives"
|
||||
autowrap = true
|
||||
|
||||
[node name="Description" type="Label" parent="DifficultySelect/DescriptionPanel"]
|
||||
unique_name_in_owner = true
|
||||
material = SubResource( 2 )
|
||||
margin_left = 8.0
|
||||
margin_top = 37.0
|
||||
margin_right = 113.0
|
||||
margin_bottom = 69.0
|
||||
text = "*Difficulty for
|
||||
retro players"
|
||||
|
||||
[node name="SG" type="TextureRect" parent="DifficultySelect"]
|
||||
margin_left = 176.0
|
||||
margin_top = 40.0
|
||||
|
@ -360,6 +384,9 @@ region_rect = Rect2( 0, 0, 16, 24 )
|
|||
position = Vector2( 0, 4 )
|
||||
shape = SubResource( 6 )
|
||||
|
||||
[node name="Ladder" parent="NameEntry" instance=ExtResource( 15 )]
|
||||
scale = Vector2( 1, 20 )
|
||||
|
||||
[connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Sweet" to="." method="_set_difficulty" binds= [ 0 ]]
|
||||
[connection signal="pressed" from="DifficultySelect/ButtonsPanel/Sweet" to="." method="_difficulty_selected"]
|
||||
[connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Salty" to="." method="_set_difficulty" binds= [ 1 ]]
|
||||
|
|
|
@ -2,7 +2,10 @@ extends Node
|
|||
|
||||
|
||||
export var next_scene: PackedScene
|
||||
|
||||
var kill_mode = false
|
||||
onready var description = $Description
|
||||
onready var flavor_text = $FlavorText
|
||||
onready var delete_background = $DeleteBackground
|
||||
|
||||
func _ready() -> void:
|
||||
Fade.fade_in(0.4)
|
||||
|
@ -13,3 +16,13 @@ func _on_file_loaded() -> void:
|
|||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = next_scene.instance()
|
||||
|
||||
func set_kill_mode(value):
|
||||
delete_background.visible = value
|
||||
kill_mode = value
|
||||
if value == true:
|
||||
description.text = "KILL MODE"
|
||||
flavor_text.text = "Eviscerate an old friend"
|
||||
else:
|
||||
description.text = "Select your destiny"
|
||||
flavor_text.text = "Adventure awaits"
|
||||
|
|
|
@ -1,11 +1,18 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=17 format=2]
|
||||
|
||||
[ext_resource path="res://menus/file_select_panel.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://menus/level_select_scholar.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=3]
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=4]
|
||||
[ext_resource path="res://menus/back_button.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://graphics/hud/delete_dim.png" type="Texture" id=6]
|
||||
[ext_resource path="res://graphics/hud/delete.png" type="Texture" id=7]
|
||||
[ext_resource path="res://graphics/borders/skaborder.png" type="Texture" id=8]
|
||||
[ext_resource path="res://graphics/hud/file_select_arrow.png" type="Texture" id=9]
|
||||
[ext_resource path="res://menus/file_select.gd" type="Script" id=10]
|
||||
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=11]
|
||||
[ext_resource path="res://menus/DeleteButton.gd" type="Script" id=12]
|
||||
[ext_resource path="res://menus/main_menu.tscn" type="PackedScene" id=13]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=2]
|
||||
shader = ExtResource( 11 )
|
||||
|
@ -27,6 +34,14 @@ shader_param/cycle_speed = Vector2( -8, 32 )
|
|||
shader_param/cycle_alternation = Vector2( 0, 0 )
|
||||
shader_param/uv_transform = Transform2D( 1, 1.582, 1, 2, 0, 0 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=4]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 7 ), ExtResource( 6 ) ],
|
||||
"loop": true,
|
||||
"name": "default",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[node name="FileSelect" type="Node"]
|
||||
script = ExtResource( 10 )
|
||||
next_scene = ExtResource( 2 )
|
||||
|
@ -52,20 +67,20 @@ margin_bottom = 192.0
|
|||
|
||||
[node name="Panel" parent="." instance=ExtResource( 1 )]
|
||||
margin_left = 12.0
|
||||
margin_top = 64.0
|
||||
margin_top = 48.0
|
||||
margin_right = 84.0
|
||||
margin_bottom = 136.0
|
||||
|
||||
[node name="Panel2" parent="." instance=ExtResource( 1 )]
|
||||
margin_left = 92.0
|
||||
margin_top = 64.0
|
||||
margin_top = 48.0
|
||||
margin_right = 164.0
|
||||
margin_bottom = 136.0
|
||||
number = 2
|
||||
|
||||
[node name="Panel3" parent="." instance=ExtResource( 1 )]
|
||||
margin_left = 172.0
|
||||
margin_top = 64.0
|
||||
margin_top = 48.0
|
||||
margin_right = 244.0
|
||||
margin_bottom = 136.0
|
||||
number = 3
|
||||
|
@ -77,6 +92,7 @@ margin_right = 84.0
|
|||
margin_bottom = 146.0
|
||||
focus_neighbour_left = NodePath("../SelectFile3")
|
||||
focus_neighbour_right = NodePath("../SelectFile2")
|
||||
focus_neighbour_bottom = NodePath("../Back")
|
||||
texture_focused = ExtResource( 9 )
|
||||
expand = true
|
||||
stretch_mode = 3
|
||||
|
@ -88,6 +104,7 @@ margin_right = 164.0
|
|||
margin_bottom = 146.0
|
||||
focus_neighbour_left = NodePath("../SelectFile1")
|
||||
focus_neighbour_right = NodePath("../SelectFile3")
|
||||
focus_neighbour_bottom = NodePath("../Back")
|
||||
texture_focused = ExtResource( 9 )
|
||||
expand = true
|
||||
stretch_mode = 3
|
||||
|
@ -99,10 +116,53 @@ margin_right = 244.0
|
|||
margin_bottom = 146.0
|
||||
focus_neighbour_left = NodePath("../SelectFile2")
|
||||
focus_neighbour_right = NodePath("../SelectFile1")
|
||||
focus_neighbour_bottom = NodePath("../Back")
|
||||
texture_focused = ExtResource( 9 )
|
||||
expand = true
|
||||
stretch_mode = 3
|
||||
|
||||
[node name="Back" parent="." instance=ExtResource( 5 )]
|
||||
margin_left = 8.0
|
||||
margin_top = 144.0
|
||||
margin_right = 60.0
|
||||
margin_bottom = 177.0
|
||||
focus_neighbour_top = NodePath("../SelectFile1")
|
||||
focus_neighbour_right = NodePath("../DeleteButton")
|
||||
next_scene = ExtResource( 13 )
|
||||
|
||||
[node name="Description" type="Label" parent="."]
|
||||
material = ExtResource( 3 )
|
||||
margin_top = 8.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 22.0
|
||||
theme = ExtResource( 4 )
|
||||
text = "Select your destiny"
|
||||
align = 1
|
||||
|
||||
[node name="DeleteButton" type="TextureButton" parent="."]
|
||||
margin_left = 212.0
|
||||
margin_top = 144.0
|
||||
margin_right = 237.0
|
||||
margin_bottom = 178.0
|
||||
focus_neighbour_left = NodePath("../Back")
|
||||
focus_neighbour_top = NodePath("../SelectFile1")
|
||||
texture_normal = ExtResource( 7 )
|
||||
script = ExtResource( 12 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="DeleteButton"]
|
||||
position = Vector2( 13, 17 )
|
||||
frames = SubResource( 4 )
|
||||
|
||||
[node name="FlavorText" type="Label" parent="."]
|
||||
material = ExtResource( 3 )
|
||||
margin_left = 40.0
|
||||
margin_top = 152.0
|
||||
margin_right = 208.0
|
||||
margin_bottom = 168.0
|
||||
theme = ExtResource( 4 )
|
||||
text = "Adventure awaits"
|
||||
align = 1
|
||||
|
||||
[connection signal="file_loaded" from="Panel" to="." method="_on_file_loaded"]
|
||||
[connection signal="file_loaded" from="Panel2" to="." method="_on_file_loaded"]
|
||||
[connection signal="file_loaded" from="Panel3" to="." method="_on_file_loaded"]
|
||||
|
|
|
@ -9,9 +9,45 @@ export var number = 1
|
|||
|
||||
var file: Save.SaveFile = null
|
||||
|
||||
onready var splatter = $DeathSplatter
|
||||
|
||||
func _ready():
|
||||
$FileNumber.text = "FILE%d" % number
|
||||
refresh()
|
||||
|
||||
|
||||
func select() -> void:
|
||||
if get_parent().kill_mode == false:
|
||||
# if a file exists, load and play it!
|
||||
if file:
|
||||
# set current file and difficulty
|
||||
Save.current_file = file
|
||||
Game.difficulty = file.difficulty
|
||||
# update last-played file for continue button
|
||||
Options.last_file = number
|
||||
Options.save_options()
|
||||
# let file select scene know a file has been loaded
|
||||
emit_signal("file_loaded")
|
||||
# empty file, so go to file creation screen
|
||||
else:
|
||||
# wait for fade
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
# create new file and give it to the file create screen
|
||||
var file_create = FileCreate.instance()
|
||||
file_create.file = Save.SaveFile.new("user://file%d.pr" % number)
|
||||
SceneManager.current_scene = file_create
|
||||
else:
|
||||
#Delete file
|
||||
if file:
|
||||
var dir = Directory.new()
|
||||
dir.remove(file.file_path)
|
||||
splatter.emitting = true
|
||||
Audio.play_sound(Audio.a_die,Audio.ac_die)
|
||||
refresh()
|
||||
|
||||
|
||||
func refresh():
|
||||
# check if the file exists
|
||||
if File.new().file_exists("user://file%d.pr" % number):
|
||||
# load file and fill in information
|
||||
|
@ -21,28 +57,7 @@ func _ready():
|
|||
$"%KeyCounter".text = "%03d" % file.get_total_keys()
|
||||
$"%DeathCounter".text = "%04d" % file.get_total_deaths()
|
||||
$"%TimeCounter".text = "%02d:%02d" % [file.play_time / 3600.0, fmod(file.play_time / 60.0, 60.0)]
|
||||
$"%Difficulty".text = Game.DIFFICULTY_NAMES[file.difficulty]
|
||||
else:
|
||||
$FileExists.visible = false
|
||||
$FileDoesNotExist.visible = true
|
||||
|
||||
|
||||
func select() -> void:
|
||||
# if a file exists, load and play it!
|
||||
if file:
|
||||
# set current file and difficulty
|
||||
Save.current_file = file
|
||||
Game.difficulty = file.difficulty
|
||||
# update last-played file for continue button
|
||||
Options.last_file = number
|
||||
Options.save_options()
|
||||
# let file select scene know a file has been loaded
|
||||
emit_signal("file_loaded")
|
||||
# empty file, so go to file creation screen
|
||||
else:
|
||||
# wait for fade
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
# create new file and give it to the file create screen
|
||||
var file_create = FileCreate.instance()
|
||||
file_create.file = Save.SaveFile.new("user://file%d.pr" % number)
|
||||
SceneManager.current_scene = file_create
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://shaders/recolor_border.shader" type="Shader" id=1]
|
||||
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=2]
|
||||
|
@ -9,6 +9,7 @@
|
|||
[ext_resource path="res://graphics/hud/deaths_head.png" type="Texture" id=7]
|
||||
[ext_resource path="res://graphics/player/sg_idle.png" type="Texture" id=8]
|
||||
[ext_resource path="res://graphics/player/palettes/default.png" type="Texture" id=9]
|
||||
[ext_resource path="res://objects/enemy/death_particles.tscn" type="PackedScene" id=10]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
shader = ExtResource( 1 )
|
||||
|
@ -18,7 +19,7 @@ shader_param/palette = ExtResource( 9 )
|
|||
|
||||
[node name="Panel" type="Panel"]
|
||||
margin_right = 72.0
|
||||
margin_bottom = 72.0
|
||||
margin_bottom = 88.0
|
||||
theme = ExtResource( 4 )
|
||||
script = ExtResource( 6 )
|
||||
|
||||
|
@ -95,6 +96,15 @@ position = Vector2( 32, 34 )
|
|||
position = Vector2( 21, 52 )
|
||||
texture = ExtResource( 7 )
|
||||
|
||||
[node name="Difficulty" type="Label" parent="FileExists"]
|
||||
unique_name_in_owner = true
|
||||
margin_left = 8.0
|
||||
margin_top = 72.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 82.0
|
||||
text = "Spicy"
|
||||
align = 1
|
||||
|
||||
[node name="FileDoesNotExist" type="Control" parent="."]
|
||||
visible = false
|
||||
|
||||
|
@ -105,3 +115,13 @@ margin_right = 69.0
|
|||
margin_bottom = 36.0
|
||||
text = "Empty!!!"
|
||||
align = 1
|
||||
|
||||
[node name="DeathSplatter" parent="." instance=ExtResource( 10 )]
|
||||
position = Vector2( 36, 47 )
|
||||
amount = 64
|
||||
lifetime = 1.0
|
||||
speed_scale = 3.0
|
||||
explosiveness = 1.0
|
||||
randomness = 0.34
|
||||
initial_velocity = 100.0
|
||||
scale_amount = 2.0
|
||||
|
|
|
@ -33,3 +33,9 @@ func _on_Exit_button_down():
|
|||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
get_tree().quit()
|
||||
|
||||
|
||||
func _on_SoundTest_button_down():
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = load("res://menus/sound_test.tscn").instance()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=13 format=2]
|
||||
[gd_scene load_steps=14 format=2]
|
||||
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://shaders/wibble_wobble.gdshader" type="Shader" id=2]
|
||||
|
@ -7,6 +7,7 @@
|
|||
[ext_resource path="res://menus/main_menu.gd" type="Script" id=5]
|
||||
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=6]
|
||||
[ext_resource path="res://graphics/hud/sg_menu_blink.png" type="Texture" id=7]
|
||||
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=8]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=2]
|
||||
shader = ExtResource( 6 )
|
||||
|
@ -103,9 +104,9 @@ hframes = 3
|
|||
[node name="Panel" type="Panel" parent="."]
|
||||
material = SubResource( 6 )
|
||||
margin_left = 16.0
|
||||
margin_top = 32.0
|
||||
margin_top = 28.0
|
||||
margin_right = 136.0
|
||||
margin_bottom = 120.0
|
||||
margin_bottom = 132.0
|
||||
theme = ExtResource( 1 )
|
||||
|
||||
[node name="Body" type="Label" parent="Panel"]
|
||||
|
@ -119,6 +120,7 @@ file select
|
|||
marathon mode
|
||||
augmentations
|
||||
options
|
||||
sound test
|
||||
exit"
|
||||
|
||||
[node name="GreyedContinue" type="Label" parent="Panel/Body"]
|
||||
|
@ -176,16 +178,26 @@ margin_top = 61.0
|
|||
margin_right = 16.0
|
||||
margin_bottom = 69.0
|
||||
focus_neighbour_top = NodePath("../Augmentations")
|
||||
focus_neighbour_bottom = NodePath("../Exit")
|
||||
focus_neighbour_bottom = NodePath("../SoundTest")
|
||||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="Exit" type="TextureButton" parent="Panel"]
|
||||
[node name="SoundTest" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 74.0
|
||||
margin_right = 16.0
|
||||
margin_bottom = 82.0
|
||||
focus_neighbour_top = NodePath("../Options")
|
||||
focus_neighbour_bottom = NodePath("../Exit")
|
||||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="Exit" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 87.0
|
||||
margin_right = 16.0
|
||||
margin_bottom = 95.0
|
||||
focus_neighbour_top = NodePath("../SoundTest")
|
||||
focus_neighbour_bottom = NodePath("../Continue")
|
||||
texture_focused = ExtResource( 4 )
|
||||
|
||||
|
@ -193,6 +205,29 @@ texture_focused = ExtResource( 4 )
|
|||
autoplay = "blink"
|
||||
anims/blink = SubResource( 5 )
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
material = ExtResource( 8 )
|
||||
margin_left = 8.0
|
||||
margin_top = 140.0
|
||||
margin_right = 183.0
|
||||
margin_bottom = 189.0
|
||||
theme = ExtResource( 1 )
|
||||
text = "REvolution -
|
||||
The forcible overthrow of
|
||||
a social order in favor
|
||||
of a new future"
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
material = ExtResource( 8 )
|
||||
margin_top = 3.0
|
||||
margin_right = 175.0
|
||||
margin_bottom = 52.0
|
||||
theme = ExtResource( 1 )
|
||||
text = "Welcome to the future...
|
||||
2083"
|
||||
align = 1
|
||||
|
||||
[connection signal="button_down" from="Panel/Continue" to="." method="_on_Continue_button_down"]
|
||||
[connection signal="button_down" from="Panel/FileSelect" to="." method="_on_FileSelect_button_down"]
|
||||
[connection signal="button_down" from="Panel/SoundTest" to="." method="_on_SoundTest_button_down"]
|
||||
[connection signal="button_down" from="Panel/Exit" to="." method="_on_Exit_button_down"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extends Control
|
||||
|
||||
func _process(delta):
|
||||
print(get_focus_owner())
|
||||
func _ready():
|
||||
Fade.fade_in(0.4)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
[ext_resource path="res://graphics/hud/listen_to_the_future.png" type="Texture" id=3]
|
||||
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=4]
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=5]
|
||||
[ext_resource path="res://audio/sounds/key.wav" type="AudioStream" id=6]
|
||||
[ext_resource path="res://graphics/hud/sound_test_title.png" type="Texture" id=11]
|
||||
[ext_resource path="res://graphics/player/sg_headphones.png" type="Texture" id=12]
|
||||
[ext_resource path="res://menus/music_select.gd" type="Script" id=13]
|
||||
|
@ -33,7 +34,6 @@
|
|||
[ext_resource path="res://audio/sounds/die_robot.wav" type="AudioStream" id=36]
|
||||
[ext_resource path="res://audio/sounds/boss_hurt.wav" type="AudioStream" id=37]
|
||||
[ext_resource path="res://audio/sounds/sword.ogg" type="AudioStream" id=38]
|
||||
[ext_resource path="res://audio/sounds/key.ogg" type="AudioStream" id=39]
|
||||
[ext_resource path="res://audio/sounds/a_egg_collect.ogg" type="AudioStream" id=40]
|
||||
[ext_resource path="res://audio/sounds/a_bmilc.ogg" type="AudioStream" id=41]
|
||||
[ext_resource path="res://audio/sounds/a_climb.ogg" type="AudioStream" id=42]
|
||||
|
@ -107,6 +107,7 @@ material = SubResource( 12 )
|
|||
position = Vector2( 72, 152 )
|
||||
scale = Vector2( 2, 2 )
|
||||
frames = SubResource( 15 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="AnimatedSprite3" type="AnimatedSprite" parent="."]
|
||||
|
@ -114,6 +115,7 @@ material = SubResource( 12 )
|
|||
position = Vector2( 112, 152 )
|
||||
scale = Vector2( 2, 2 )
|
||||
frames = SubResource( 15 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="AnimatedSprite4" type="AnimatedSprite" parent="."]
|
||||
|
@ -121,6 +123,7 @@ material = SubResource( 12 )
|
|||
position = Vector2( 152, 152 )
|
||||
scale = Vector2( 2, 2 )
|
||||
frames = SubResource( 15 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="AnimatedSprite5" type="AnimatedSprite" parent="."]
|
||||
|
@ -128,6 +131,7 @@ material = SubResource( 12 )
|
|||
position = Vector2( 192, 152 )
|
||||
scale = Vector2( 2, 2 )
|
||||
frames = SubResource( 15 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="Music" type="TextureButton" parent="."]
|
||||
|
@ -163,7 +167,7 @@ margin_left = 8.0
|
|||
margin_top = 14.0
|
||||
margin_right = 152.0
|
||||
margin_bottom = 32.0
|
||||
text = "Rumble"
|
||||
text = "Get Shard"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
|
@ -177,7 +181,7 @@ focus_neighbour_top = NodePath("../Music")
|
|||
texture_focused = ExtResource( 27 )
|
||||
script = ExtResource( 16 )
|
||||
titles = [ "Jump", "Double Jump", "Die", "Climb Down", "Climb Up", "Shoot Arrow", "Game Over", "Collect Key", "Collect Star", "Collect Arrow", "Bone Rattle", "Scrump Hurt", "Scrump Die", "Explosion", "Bubble", "Button", "Sword" ]
|
||||
sounds = [ ExtResource( 25 ), ExtResource( 34 ), ExtResource( 30 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 32 ), ExtResource( 35 ), ExtResource( 39 ), ExtResource( 43 ), ExtResource( 40 ), ExtResource( 33 ), ExtResource( 37 ), ExtResource( 31 ), ExtResource( 36 ), ExtResource( 24 ), ExtResource( 29 ), ExtResource( 38 ) ]
|
||||
sounds = [ ExtResource( 25 ), ExtResource( 34 ), ExtResource( 30 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 32 ), ExtResource( 35 ), ExtResource( 6 ), ExtResource( 43 ), ExtResource( 40 ), ExtResource( 33 ), ExtResource( 37 ), ExtResource( 31 ), ExtResource( 36 ), ExtResource( 24 ), ExtResource( 29 ), ExtResource( 38 ) ]
|
||||
|
||||
[node name="SoundLabel" type="Label" parent="Sound"]
|
||||
material = ExtResource( 4 )
|
||||
|
|
|
@ -71,12 +71,12 @@ config/icon="res://icon.png"
|
|||
[autoload]
|
||||
|
||||
Border="*res://autoloads/border.tscn"
|
||||
Options="*res://autoloads/options.gd"
|
||||
Save="*res://autoloads/save.gd"
|
||||
Game="*res://autoloads/game.gd"
|
||||
Audio="*res://autoloads/audio.tscn"
|
||||
LevelData="*res://autoloads/level_data.tscn"
|
||||
Debug="*res://autoloads/debug.tscn"
|
||||
Options="*res://autoloads/options.gd"
|
||||
TouchControls="*res://autoloads/touch_controls.tscn"
|
||||
SceneManager="*res://autoloads/scene_manager.tscn"
|
||||
Console="*res://autoloads/console.tscn"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue