New sfx, credits overhaul, and feedback button

This commit is contained in:
Layla 2020-05-17 17:07:52 -04:00
parent 3614049c11
commit e22d56d0df
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
23 changed files with 388 additions and 6 deletions

View File

@ -0,0 +1,3 @@
source_md5="34e50c915b51252660db4c26d6f61d92"
dest_md5="284c8f30177baaab7a71e88c2fa18e87"

View File

@ -0,0 +1,3 @@
source_md5="34e50c915b51252660db4c26d6f61d92"
dest_md5="284c8f30177baaab7a71e88c2fa18e87"

View File

@ -0,0 +1,3 @@
source_md5="b5b713d18d62a88eb579db8fdc12c626"
dest_md5="3fa5aa738a28dc6cdeb9786d5398a721"

View File

@ -0,0 +1,3 @@
source_md5="60a33f3b90accb46263e6e020ba53220"
dest_md5="3ecf06c6cb13d5480124991534f6698c"

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/godot.png-5a026be5d3bdf3191b324100b5a9082a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Art/UI/Credits/godot.png"
dest_files=[ "res://.import/godot.png-5a026be5d3bdf3191b324100b5a9082a.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=true
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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/doop.wav-c367f72b66b202e52047bea064819597.sample"
[deps]
source_file="res://Assets/Sfx/doop.wav"
dest_files=[ "res://.import/doop.wav-c367f72b66b202e52047bea064819597.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=false
compress/mode=0

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/doop.wav-e7e72235859ccaca12113963ce8e590b.sample"
[deps]
source_file="res://Assets/Sfx/intro/doop.wav"
dest_files=[ "res://.import/doop.wav-e7e72235859ccaca12113963ce8e590b.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=false
compress/mode=0

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/recharge.wav-32ace1901ba67b9ff95108bc1ef3f6bb.sample"
[deps]
source_file="res://Assets/Sfx/recharge.wav"
dest_files=[ "res://.import/recharge.wav-32ace1901ba67b9ff95108bc1ef3f6bb.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=false
compress/mode=0

View File

@ -1,4 +1,4 @@
[gd_resource type="Theme" load_steps=10 format=2]
[gd_resource type="Theme" load_steps=11 format=2]
[ext_resource path="res://Assets/Proprietary/hf-scifi-complete/marksman-v1/Marksman.ttf" type="DynamicFontData" id=1]
@ -14,6 +14,9 @@
[sub_resource type="StyleBoxEmpty" id=6]
[sub_resource type="StyleBoxLine" id=9]
color = Color( 0.203922, 0.760784, 0.819608, 0.54902 )
[sub_resource type="StyleBoxEmpty" id=7]
[sub_resource type="DynamicFont" id=8]
@ -37,6 +40,8 @@ Button/styles/hover = SubResource( 4 )
Button/styles/normal = SubResource( 5 )
Button/styles/pressed = SubResource( 6 )
HBoxContainer/constants/separation = 64
HSeparator/constants/separation = 4
HSeparator/styles/separator = SubResource( 9 )
Label/colors/font_color = Color( 0.203922, 0.760784, 0.819608, 0.54902 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )
Label/colors/font_outline_modulate = Color( 0.243137, 0.858824, 0.815686, 0.498039 )

View File

@ -0,0 +1,198 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Assets/Art/UI/Credits/godot.png" type="Texture" id=1]
[ext_resource path="res://Assets/Proprietary/hf-scifi-complete/improbable-v1/Improbable.otf" type="DynamicFontData" id=2]
[ext_resource path="res://Assets/Art/logo.png" type="Texture" id=3]
[ext_resource path="res://Assets/Art/head_bg_less.png" type="Texture" id=4]
[sub_resource type="DynamicFont" id=1]
size = 48
font_data = ExtResource( 2 )
[node name="Scolling" type="VBoxContainer"]
margin_left = 407.0
margin_top = 720.0
margin_right = 873.0
margin_bottom = 1621.0
size_flags_horizontal = 3
custom_constants/separation = 64
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Logo" type="HBoxContainer" parent="."]
margin_right = 562.0
margin_bottom = 68.0
alignment = 1
[node name="TextureRect" type="TextureRect" parent="Logo"]
margin_left = 121.0
margin_right = 441.0
margin_bottom = 68.0
texture = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_top = 132.0
margin_right = 562.0
margin_bottom = 216.0
text = "Writing, Design, and Programming
by Joseph Manley
@josephbmanley"
align = 1
[node name="HSeparator" type="HSeparator" parent="."]
margin_top = 280.0
margin_right = 562.0
margin_bottom = 284.0
[node name="AssetLabel" type="Label" parent="."]
margin_top = 348.0
margin_right = 562.0
margin_bottom = 396.0
custom_fonts/font = SubResource( 1 )
text = "Assets"
align = 1
uppercase = true
[node name="Music" type="Label" parent="."]
margin_top = 460.0
margin_right = 562.0
margin_bottom = 515.0
text = "Music by Tim Beek
@timbeekmusic"
align = 1
[node name="Fonts" type="Label" parent="."]
margin_top = 579.0
margin_right = 562.0
margin_bottom = 634.0
text = "Fonts by somepx
@somepx"
align = 1
[node name="Shaders" type="Label" parent="."]
margin_top = 698.0
margin_right = 562.0
margin_bottom = 753.0
text = "Scaling Shaders by CptPotato
www.github.com/CptPotato"
align = 1
[node name="HSeparator2" type="HSeparator" parent="."]
margin_top = 817.0
margin_right = 562.0
margin_bottom = 821.0
[node name="ToolsLabel" type="Label" parent="."]
margin_top = 885.0
margin_right = 562.0
margin_bottom = 933.0
custom_fonts/font = SubResource( 1 )
text = "Tools"
align = 1
uppercase = true
[node name="Godot" type="HSplitContainer" parent="."]
margin_top = 997.0
margin_right = 562.0
margin_bottom = 1139.0
[node name="Label" type="Label" parent="Godot"]
margin_right = 402.0
margin_bottom = 142.0
text = "
Godot
Game Engine
www.godotengine.org
"
align = 1
valign = 1
[node name="TextureRect" type="TextureRect" parent="Godot"]
margin_left = 414.0
margin_right = 562.0
margin_bottom = 142.0
texture = ExtResource( 1 )
expand = true
stretch_mode = 5
[node name="Aseprite" type="Label" parent="."]
margin_top = 1203.0
margin_right = 562.0
margin_bottom = 1287.0
text = "Aseprite
Sprite Editor
www.aseprite.org"
align = 1
[node name="Tilesetter" type="Label" parent="."]
margin_top = 1351.0
margin_right = 562.0
margin_bottom = 1435.0
text = "Tilesetter
Tileset Design Tool
www.tilesetter.org"
align = 1
[node name="DialogSystem" type="Label" parent="."]
margin_top = 1499.0
margin_right = 562.0
margin_bottom = 1583.0
text = "EXP Godot Dialog System
Dialog Editor Godot Addon
www.github.com/EXPWorlds/Godot-Dialog-System"
align = 1
[node name="HSeparator3" type="HSeparator" parent="."]
margin_top = 1647.0
margin_right = 562.0
margin_bottom = 1651.0
[node name="Godot Wild Jam" type="HSplitContainer" parent="."]
margin_top = 1715.0
margin_right = 562.0
margin_bottom = 2031.0
[node name="Label" type="Label" parent="Godot Wild Jam"]
margin_right = 230.0
margin_bottom = 316.0
text = "
Godot Wild Jam #21
Submission
"
align = 1
valign = 1
[node name="TextureRect" type="TextureRect" parent="Godot Wild Jam"]
margin_left = 242.0
margin_right = 562.0
margin_bottom = 316.0
texture = ExtResource( 4 )
expand = true
stretch_mode = 5
[node name="Thanks" type="Label" parent="."]
margin_top = 2095.0
margin_right = 562.0
margin_bottom = 2121.0
text = "Thanks for playing!"
align = 1
[node name="Feedback" type="Label" parent="."]
margin_top = 2185.0
margin_right = 562.0
margin_bottom = 2240.0
text = "Any and all feedback is appreciated!
cloudsumu.com/r/confeedback"
align = 1

Binary file not shown.

Binary file not shown.

View File

@ -2,11 +2,63 @@ extends Control
const SCROLL_SPEED = 25
var scroll_timer : Timer
const SCROLL_TIP_DELAY = 5
const SCROLL_FADE_RATE = 0.05
const SCROLL_SHOW_RATE = 5
func _ready():
$"/root/MusicManager".play_music("Dystopian/The Story Continues")
$"/root/MusicManager".play_music("Dystopian/The Story Continues", false)
if not scroll_timer:
scroll_timer = Timer.new()
add_child(scroll_timer)
$Tip.modulate.a = 0
scroll_timer.connect("timeout", self, "display_tip")
scroll_timer.start(SCROLL_TIP_DELAY)
set_completed()
func _process(delta):
$Scolling.rect_position.y = $Scolling.rect_position.y - delta * SCROLL_SPEED
if Input.is_action_pressed("ui_accept"):
$Scolling.rect_position.y = $Scolling.rect_position.y - delta * SCROLL_SPEED * 10
else:
$Scolling.rect_position.y = $Scolling.rect_position.y - delta * SCROLL_SPEED
if abs($Scolling.rect_position.y) > $Scolling.rect_size.y + 100:
get_tree().change_scene("res://Scenes/Title.scn")
func display_tip():
$Tip.modulate.a = 0
$Tip.text = "Press SPACE to speed up."
$Tip.show()
scroll_timer.disconnect("timeout", self, "display_tip")
scroll_timer.disconnect("timeout", self, "fade_tip_out")
scroll_timer.disconnect("timeout", self, "start_fade_tip_out")
scroll_timer.connect("timeout", self, "fade_tip_in")
scroll_timer.start(SCROLL_FADE_RATE)
func start_fade_tip_out():
scroll_timer.disconnect("timeout", self, "display_tip")
scroll_timer.disconnect("timeout", self, "fade_tip_in")
scroll_timer.disconnect("timeout", self, "start_fade_tip_out")
scroll_timer.connect("timeout", self, "fade_tip_out")
scroll_timer.start(SCROLL_FADE_RATE)
func fade_tip_in():
$Tip.modulate.a = clamp($Tip.modulate.a + 0.1, 0, 1)
if $Tip.modulate.a == 1:
scroll_timer.disconnect("timeout", self, "display_tip")
scroll_timer.disconnect("timeout", self, "fade_tip_out")
scroll_timer.disconnect("timeout", self, "fade_tip_in")
scroll_timer.connect("timeout", self, "start_fade_tip_out")
scroll_timer.start(SCROLL_SHOW_RATE)
func fade_tip_out():
$Tip.modulate.a = clamp($Tip.modulate.a - 0.1, 0, 1)
if $Tip.modulate.a == 0:
scroll_timer.stop()
func set_completed():
var file = File.new()
file.open("user://progress.json", File.WRITE)
file.store_string(to_json({"completed":"true"}))
file.close()

View File

@ -10,8 +10,8 @@ func _ready():
audio_player = AudioStreamPlayer.new()
add_child(audio_player)
$Fader/ColorRect.show()
play_sound(preload("res://Assets/Sfx/intro/processed.wav"))
play_sound(preload("res://Assets/Sfx/intro/doop.wav"))
func play_sound(audio_stream):
audio_player.stream = audio_stream
#audio_player.play()
audio_player.play()

View File

@ -14,6 +14,7 @@ func _ready():
$CreditsButton.connect("button_down", self, "_on_button_press", ["credits"])
$OptionsButton.connect("button_down", self, "_on_button_press", ["options"])
$BugButton.connect("button_down", self, "_on_button_press", ["bug"])
check_completion()
func _on_button_press(button):
@ -29,3 +30,20 @@ func _on_button_press(button):
get_parent().get_parent().get_node("OptionsDialog").popup_centered()
"bug":
OS.shell_open("https://github.com/josephbmanley/the-connection/issues/new?labels=bug&template=1_bug_report.md")
"feedback":
OS.shell_open("https://cloudsumu.com/r/confeedback")
func check_completion():
var file = File.new()
if file.file_exists("user://progress.json"):
file.open("user://progress.json", File.READ)
var data = parse_json(file.get_as_text())
file.close()
if typeof(data) == TYPE_DICTIONARY:
if "completed" in data:
if data["completed"] == "true":
var feed_back_button = Button.new()
feed_back_button.text = "Give Feedback"
feed_back_button.connect("button_down", self, "_on_button_press", ["feedback"])
add_child(feed_back_button)
move_child(feed_back_button, 3)

View File

@ -91,7 +91,7 @@ custom_features=""
export_filter="all_resources"
include_filter="*"
exclude_filter=""
export_path=""
export_path="../../../Downloads/build/The Connection.x86_64"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""