added all folders and files

This commit is contained in:
joelchrono12 2021-06-12 12:17:46 -05:00
parent 2037ef1325
commit d985ac70bf
183 changed files with 12074 additions and 0 deletions

BIN
Anotación 2020-09-06 195724.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Anotación 2020-09-06 195724.png-2e4d4f0226a304439af47169b4250e99.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Anotación 2020-09-06 195724.png"
dest_files=[ "res://.import/Anotación 2020-09-06 195724.png-2e4d4f0226a304439af47169b4250e99.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

BIN
Anotación 2020-09-06 195950.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Anotación 2020-09-06 195950.png-dc2dd6ffd24e51f50ca3baf96d6ef25d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Anotación 2020-09-06 195950.png"
dest_files=[ "res://.import/Anotación 2020-09-06 195950.png-dc2dd6ffd24e51f50ca3baf96d6ef25d.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

BIN
Anotación 2020-09-06 200113.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Anotación 2020-09-06 200113.png-9f3d461d25ecbb9e300b13ff08555a51.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Anotación 2020-09-06 200113.png"
dest_files=[ "res://.import/Anotación 2020-09-06 200113.png-9f3d461d25ecbb9e300b13ff08555a51.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

BIN
Assets/Audio/Blip_Select45.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/Blip_Select45.wav-ee25fc77dab0cb90d1d3fff624d98cd7.sample"
[deps]
source_file="res://Assets/Audio/Blip_Select45.wav"
dest_files=[ "res://.import/Blip_Select45.wav-ee25fc77dab0cb90d1d3fff624d98cd7.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

BIN
Assets/Audio/Hit_Hurt2.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/Hit_Hurt2.wav-24e4551d9790ff24fa9bfd700f64b0c7.sample"
[deps]
source_file="res://Assets/Audio/Hit_Hurt2.wav"
dest_files=[ "res://.import/Hit_Hurt2.wav-24e4551d9790ff24fa9bfd700f64b0c7.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

BIN
Assets/Audio/Pickup_Coin15.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/Pickup_Coin15.wav-9e2bce1ef481d5db1fee37a3cc54443d.sample"
[deps]
source_file="res://Assets/Audio/Pickup_Coin15.wav"
dest_files=[ "res://.import/Pickup_Coin15.wav-9e2bce1ef481d5db1fee37a3cc54443d.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

BIN
Assets/Audio/Powerup.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/Powerup.wav-2336c0868cc30778487031a2509d1c1a.sample"
[deps]
source_file="res://Assets/Audio/Powerup.wav"
dest_files=[ "res://.import/Powerup.wav-2336c0868cc30778487031a2509d1c1a.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

BIN
Assets/Audio/Times_Passing.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/Times_Passing.wav-2cf398bb6db7a8c02ef8a0f5e631646c.sample"
[deps]
source_file="res://Assets/Audio/Times_Passing.wav"
dest_files=[ "res://.import/Times_Passing.wav-2cf398bb6db7a8c02ef8a0f5e631646c.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

BIN
Assets/Audio/dead.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/dead.wav-8269a580559b3c996e9eb4af1783894b.sample"
[deps]
source_file="res://Assets/Audio/dead.wav"
dest_files=[ "res://.import/dead.wav-8269a580559b3c996e9eb4af1783894b.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

BIN
Assets/Audio/victory.wav Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/victory.wav-ff8982accb69cb73b353a23489551736.sample"
[deps]
source_file="res://Assets/Audio/victory.wav"
dest_files=[ "res://.import/victory.wav-ff8982accb69cb73b353a23489551736.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

BIN
Assets/Backgroundmenu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Backgroundmenu.png-c712beb75758d5e696b27c5c38970dc3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Backgroundmenu.png"
dest_files=[ "res://.import/Backgroundmenu.png-c712beb75758d5e696b27c5c38970dc3.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

BIN
Assets/GEBackground.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

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

BIN
Assets/GETilesetAlt.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

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

BIN
Assets/GETilesetxcf.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

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

BIN
Assets/banner.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

34
Assets/banner.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/banner.png-92c2571a6b789d1b0090225511ef7022.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/banner.png"
dest_files=[ "res://.import/banner.png-92c2571a6b789d1b0090225511ef7022.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

15
AudioStreamPlayer.gd Executable file
View File

@ -0,0 +1,15 @@
extends AudioStreamPlayer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_AudioStreamPlayer_finished():
play()
pass

14
AudioStreamPlayer.tscn Normal file
View File

@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Assets/Audio/Times_Passing.wav" type="AudioStream" id=1]
[ext_resource path="res://AudioStreamPlayer.gd" type="Script" id=2]
[node name="AudioStreamPlayer" type="AudioStreamPlayer"]
pause_mode = 2
stream = ExtResource( 1 )
volume_db = -8.0
autoplay = true
script = ExtResource( 2 )
[connection signal="finished" from="." to="." method="_on_AudioStreamPlayer_finished"]

64
Background.tscn Normal file

File diff suppressed because one or more lines are too long

45
CHANGELOG.md Executable file
View File

@ -0,0 +1,45 @@
# Changelog
## 0.2.0
- Features:
- Batch edit
- Support vertical align
- Improvements:
- Support highlighting `Panel`/`PanelContainer`
- Font resources only loaded after toolbar first shows up
- Move user preferences from plugin.cfg to user_pref.cfg(Avoid preferences being overwrited after updates)
- UI
- Position `Popup` near to their trigger button
- Replace Font Weight list with Bold as `PopupMenuButton`
- Makes `OptionButton` width fixed
- Group horizontal align into one `PopupMenu`
- Group Font Family File Dialog & Font Family Refresh into one `PopupMenu`
- Group Font Clear, Color Clear & Rect Size Refresh to one `PopupMenu`
- Bugfixes:
- Unable to recognize font data from saved scene
- Highlight/Font color auto applied white color even without picking any color after `ColorPicker` close
- Font color can't be reset
- Unable to assign `Color(0, 0, 0)` to font
## 0.1.1
- Fix unable to set Color(0, 0, 0) to font
- Organize screenshots to "screenshots/"
## 0.1.0
- Initial release
- Import and manage TrueType fonts(.ttf)
- Edit text directly in editor viewport
- Basic styling operations:
- Font type
- Font weight
- Font size
- Font color
- Highlight
- Horizontal alignment
- Font Style/Formatting(Typography hierarchy)
- Clear font
- Clear color
- Rect size refresh

BIN
GETilesetAlt.xcf Executable file

Binary file not shown.

BIN
GETilesetxcf.xcf Executable file

Binary file not shown.

248
GUI/GUI.tscn Normal file
View File

@ -0,0 +1,248 @@
[gd_scene load_steps=16 format=2]
[ext_resource path="res://m5x7.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://GUI/Scripts/GUI.gd" type="Script" id=2]
[ext_resource path="res://Assets/GEBackground.png" type="Texture" id=3]
[ext_resource path="res://GUI/icons/restartbutton.png" type="Texture" id=4]
[ext_resource path="res://GUI/icons/button.png" type="Texture" id=5]
[ext_resource path="res://GUI/icons/pausebutton.png" type="Texture" id=6]
[ext_resource path="res://GUI/icons/continuebutton.png" type="Texture" id=7]
[ext_resource path="res://GUI/icons/enable_sound.png" type="Texture" id=8]
[ext_resource path="res://GUI/icons/enable_music.png" type="Texture" id=9]
[ext_resource path="res://GUI/icons/exitbutton.png" type="Texture" id=10]
[ext_resource path="res://GUI/icons/disable_music.png" type="Texture" id=11]
[ext_resource path="res://GUI/icons/disable_sound.png" type="Texture" id=12]
[sub_resource type="DynamicFont" id=1]
size = 32
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 1 )
[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )
[sub_resource type="Animation" id=3]
resource_name = "fading"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("bg:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 0.509804 ), Color( 0, 0, 0, 0 ) ]
}
[node name="GUI" type="Control"]
pause_mode = 2
anchor_right = 1.0
anchor_bottom = 1.0
theme = SubResource( 2 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="bg" type="Sprite" parent="."]
modulate = Color( 0, 0, 0, 0.509804 )
position = Vector2( 491.27, 185.272 )
scale = Vector2( 2.11528, 2.54393 )
texture = ExtResource( 3 )
[node name="ExtraTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="AllowedGrabTimer" type="Timer" parent="."]
pause_mode = 2
wait_time = 12.0
one_shot = true
[node name="MarginContainer" type="MarginContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -201.0
margin_top = -196.5
margin_right = 198.0
margin_bottom = 196.5
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
margin_right = 399.0
margin_bottom = 393.0
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
margin_right = 399.0
margin_bottom = 26.0
text = "State Machine"
align = 1
[node name="ProgressBar" type="ProgressBar" parent="MarginContainer/VBoxContainer"]
margin_top = 30.0
margin_right = 399.0
margin_bottom = 56.0
max_value = 12.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
margin_right = 399.0
margin_bottom = 393.0
[node name="Label" type="Label" parent="MarginContainer/CenterContainer"]
margin_left = 40.0
margin_top = 111.0
margin_right = 358.0
margin_bottom = 282.0
text = "Press Z to play
Z / J = Jump
AD / ARROWS = Move
S/DOWN = Let go
SPACE = Pause
GRAB ON LEDGES TO STOP TIME"
align = 1
[node name="PauseMenu" type="MarginContainer" parent="."]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -198.0
margin_top = -189.0
margin_right = 198.0
margin_bottom = 189.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu"]
margin_right = 396.0
margin_bottom = 378.0
[node name="Label" type="Label" parent="PauseMenu/VBoxContainer"]
margin_right = 396.0
margin_bottom = 24.0
text = "GAME PAUSED"
align = 1
[node name="CenterContainer" type="CenterContainer" parent="PauseMenu"]
margin_right = 396.0
margin_bottom = 378.0
[node name="VBoxContainer" type="HBoxContainer" parent="PauseMenu/CenterContainer"]
margin_top = 153.0
margin_right = 396.0
margin_bottom = 225.0
custom_constants/separation = 9
[node name="SFX" type="TextureButton" parent="PauseMenu/CenterContainer/VBoxContainer"]
margin_right = 72.0
margin_bottom = 72.0
toggle_mode = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 12 )
[node name="Music" type="TextureButton" parent="PauseMenu/CenterContainer/VBoxContainer"]
margin_left = 81.0
margin_right = 153.0
margin_bottom = 72.0
toggle_mode = true
texture_normal = ExtResource( 9 )
texture_pressed = ExtResource( 11 )
[node name="Continue" type="TextureButton" parent="PauseMenu/CenterContainer/VBoxContainer"]
margin_left = 162.0
margin_right = 234.0
margin_bottom = 72.0
texture_normal = ExtResource( 7 )
[node name="Restart" type="TextureButton" parent="PauseMenu/CenterContainer/VBoxContainer"]
margin_left = 243.0
margin_right = 315.0
margin_bottom = 72.0
texture_normal = ExtResource( 4 )
[node name="Menu" type="TextureButton" parent="PauseMenu/CenterContainer/VBoxContainer"]
margin_left = 324.0
margin_right = 396.0
margin_bottom = 72.0
texture_normal = ExtResource( 10 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/fading = SubResource( 3 )
[node name="InputControlsAndroid" type="MarginContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": true
}
[node name="CenterContainer" type="CenterContainer" parent="InputControlsAndroid"]
margin_right = 700.0
margin_bottom = 393.0
[node name="left" type="TouchScreenButton" parent="InputControlsAndroid/CenterContainer"]
modulate = Color( 1, 1, 1, 0.509804 )
position = Vector2( 89.2808, 306.655 )
rotation = 3.14159
scale = Vector2( 2.8, -2.8 )
normal = ExtResource( 5 )
action = "left"
visibility_mode = 1
[node name="right" type="TouchScreenButton" parent="InputControlsAndroid/CenterContainer"]
modulate = Color( 1, 1, 1, 0.509804 )
position = Vector2( 121.628, 307.839 )
scale = Vector2( 2.8, 2.8 )
normal = ExtResource( 5 )
action = "right"
visibility_mode = 1
[node name="jump" type="TouchScreenButton" parent="InputControlsAndroid/CenterContainer"]
modulate = Color( 1, 1, 1, 0.509804 )
position = Vector2( 625, 365 )
rotation = -1.5708
scale = Vector2( 3.95075, 3.83938 )
normal = ExtResource( 5 )
action = "jump"
visibility_mode = 1
[node name="restart" type="TouchScreenButton" parent="InputControlsAndroid/CenterContainer"]
modulate = Color( 1, 1, 1, 0.509804 )
position = Vector2( 109.142, 15 )
scale = Vector2( 0.8, 0.8 )
normal = ExtResource( 4 )
action = "restart"
visibility_mode = 1
[node name="pause" type="TouchScreenButton" parent="InputControlsAndroid/CenterContainer"]
modulate = Color( 1, 1, 1, 0.509804 )
position = Vector2( 28.506, 15 )
scale = Vector2( 2.4, 2.4 )
normal = ExtResource( 6 )
action = "pause"
visibility_mode = 1
[connection signal="timeout" from="ExtraTimer" to="." method="_on_ExtraTimer_timeout"]
[connection signal="timeout" from="AllowedGrabTimer" to="." method="_on_AllowedGrabTimer_timeout"]
[connection signal="mouse_entered" from="PauseMenu/CenterContainer/VBoxContainer/SFX" to="." method="_on_SFX_mouse_entered"]
[connection signal="toggled" from="PauseMenu/CenterContainer/VBoxContainer/SFX" to="." method="_on_SFX_toggled"]
[connection signal="mouse_entered" from="PauseMenu/CenterContainer/VBoxContainer/Music" to="." method="_on_Music_mouse_entered"]
[connection signal="toggled" from="PauseMenu/CenterContainer/VBoxContainer/Music" to="." method="_on_Button3_toggled"]
[connection signal="mouse_entered" from="PauseMenu/CenterContainer/VBoxContainer/Continue" to="." method="_on_Restart_mouse_entered"]
[connection signal="pressed" from="PauseMenu/CenterContainer/VBoxContainer/Continue" to="." method="_on_Continue_pressed"]
[connection signal="mouse_entered" from="PauseMenu/CenterContainer/VBoxContainer/Restart" to="." method="_on_Restart_mouse_entered"]
[connection signal="pressed" from="PauseMenu/CenterContainer/VBoxContainer/Restart" to="." method="_on_Restart_pressed"]
[connection signal="mouse_entered" from="PauseMenu/CenterContainer/VBoxContainer/Menu" to="." method="_on_Menu_mouse_entered"]
[connection signal="pressed" from="PauseMenu/CenterContainer/VBoxContainer/Menu" to="." method="_on_Button4_pressed"]

435
GUI/MainMenu.tscn Normal file

File diff suppressed because one or more lines are too long

10
GUI/MainTheme.tres Normal file
View File

@ -0,0 +1,10 @@
[gd_resource type="Theme" load_steps=3 format=2]
[ext_resource path="res://m5x7.ttf" type="DynamicFontData" id=1]
[sub_resource type="DynamicFont" id=1]
size = 50
font_data = ExtResource( 1 )
[resource]
default_font = SubResource( 1 )

89
GUI/ScoreBoard.tscn Normal file

File diff suppressed because one or more lines are too long

208
GUI/Scripts/GUI.gd Executable file
View File

@ -0,0 +1,208 @@
extends Control
export (String,FILE,"*tscn") var path
signal enable_camera
signal pause_camera
onready var timer = $AllowedGrabTimer
onready var extra_timer = $ExtraTimer
onready var pb = $MarginContainer/VBoxContainer/ProgressBar
onready var time_label = $MarginContainer/VBoxContainer/Label
onready var start = $MarginContainer/CenterContainer/Label
onready var pause_menu = $PauseMenu
onready var GUI =$MarginContainer
onready var continues = $PauseMenu/CenterContainer/VBoxContainer/Continue
onready var restart = $PauseMenu/CenterContainer/VBoxContainer/Restart
onready var sfxx = $PauseMenu/CenterContainer/VBoxContainer/SFX
onready var music = $PauseMenu/CenterContainer/VBoxContainer/Music
onready var menu = $PauseMenu/CenterContainer/VBoxContainer/Menu
onready var jump_button = $InputControlsAndroid/CenterContainer/jump
onready var touch_input = $InputControlsAndroid
var pause_can_pause = true
var timer_started = false
var final_time
var refill = 0.1
var game_paused
var can_pause = true
var can_restart = true
var pos_list = 0
var game_started
var extra = 0
func _ready():
connect_signals()
check_audio()
pause_menu.visible = false
game_started = false
touch_input.visible = true
touch_input.visible = false
pb.value = timer.time_left
timer.start()
timer.paused = true
func _process(delta):
if game_started ==false:
if Input.is_action_just_pressed("jump") or Input.is_action_just_pressed("pause"):
enable_level()
print("WHAT IS GOING ON")
game_started = true
can_pause = true
if game_started == true and can_pause == true:
if Input.is_action_just_pressed("pause"):
emit_signal("pause_camera")
disable_level()
print("PAUSED")
if Input.is_action_just_pressed("restart") and can_restart:
get_tree().reload_current_scene()
if Input.is_action_just_pressed("fs"):
if !OS.window_fullscreen:
OS.window_fullscreen = true
else:
OS.window_fullscreen = false
if final_time == null:
pb.value = timer.time_left
else:
pb.value = final_time
final_time+=refill
#print(pb.value)
func add_time_now():
print("TIME ADDED")
timer.paused = true
extra = extra_timer.wait_time
extra_timer.start()
print("TIME ADDED")
func control_pause_menu():
continues.grab_focus()
func _on_Player_wall_slide_state():
timer.paused = true
pause_can_pause = false
func _on_Player_wall_slide_exited():
timer.paused = false
pause_can_pause = true
func _on_Player_state_change(states,state):
time_label.text = str("Current state: ",states.keys()[state])
func _on_Camera2D_enable_movement():
pass
func enable_level():
emit_signal("enable_camera")
pause_menu.visible = false
touch_input.visible = true
GUI.visible = true
get_tree().paused = false
print("ENABLED")
if pause_can_pause == true:
timer.paused = false
start.text = ""
timer_started = true
$AnimationPlayer.play("fading")
func _on_Player_victory():
can_restart = false
$AnimationPlayer.play_backwards("fading")
start.text = "LEVEL COMPLETED!, next level incoming\n\n"
final_time = timer.time_left
TotalTime.total_playtime += 12-final_time
timer.paused = true
pb.value = final_time
timer.stop()
#return final_time
func _on_Player_killed():
$AnimationPlayer.play_backwards("fading")
start.text = "You died, R to RESTART"
timer.paused = true
touch_input.visible = true
func disable_level():
get_tree().paused = true
pause_menu.visible = true
touch_input.visible = false
GUI.visible = false
control_pause_menu()
print("TREE PAUSED")
$AnimationPlayer.play_backwards("fading")
start.text = "PAUSE, ENTER to continue"
timer.paused = true
can_pause = false
func _on_Restart_pressed():
Sfx.select.play()
get_tree().reload_current_scene()
func _on_SFX_toggled(button_pressed):
Sfx.select.play()
if button_pressed:
Sfx.stop_all_sounds()
else:
Sfx.play_all_sounds()
func _on_Button3_toggled(button_pressed):
Sfx.select.play()
if button_pressed: GlobalAudioStreamPlayer.volume_db = -120
else: GlobalAudioStreamPlayer.volume_db = 0
func _on_Button4_pressed(): #EXIT AND SAVE
Sfx.select.play()
var data = path
Main.save_level(data)
get_tree().change_scene("res://GUI/MainMenu.tscn")
func _on_Restart_mouse_entered():
restart.grab_focus()
func _on_SFX_mouse_entered():
sfxx.grab_focus()
func _on_Music_mouse_entered():
music.grab_focus()
func _on_Menu_mouse_entered():
menu.grab_focus()
func _on_Continue_pressed():
Sfx.select.play()
enable_level()
can_pause = true
func check_audio():
if GlobalAudioStreamPlayer.volume_db !=-8:
music.pressed = true
else:
music.pressed = false
if Sfx.jump.volume_db == -120:
sfxx.pressed = true
else:
sfxx.pressed = false
#jump_button.global_position = get_global_mouse_position()-Vector2(48,-48) if get_global_mouse_position().x>350 else jump_button.global_position.linear_interpolate(Vector2(625,365),0.1)
func connect_signals():
connect("enable_camera",get_parent().get_parent().get_node("Player"),"_on_GUI_enable_camera")
connect("pause_camera",get_parent().get_parent().get_node("Player"),"_on_GUI_pause_camera")
connect("enable_camera",get_parent().get_parent().get_node("TotalLevelTime"),"_on_GUI_enable_camera")
connect("pause_camera",get_parent().get_parent().get_node("TotalLevelTime"),"_on_GUI_pause_camera")
timer.connect("timeout",get_parent().get_parent().get_node("Player"),"_on_AllowedGrabTimer_timeout")
func _on_ExtraTimer_timeout():
if pause_can_pause == true:
timer.paused=false

133
GUI/Scripts/MainMenu.gd Executable file
View File

@ -0,0 +1,133 @@
extends Control
onready var start_button = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer2/Play
onready var quit_button = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer2/Quit
onready var sfx_button = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/SFX
onready var music_button = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/Music
onready var credits = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/Credits
onready var credits_area = $Credits
onready var menu_area = $MarginContainer
onready var back_menu = $"Credits/VBoxContainer/MarginContainer/VBoxContainer/Back to menu"
onready var steven = $Credits/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/LinkButton
onready var joel = $Credits/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MyLink
onready var anim = $AnimationPlayer
onready var effect_sprite = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/SFX/Sprite
onready var music_sprite = $MarginContainer/VBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/Music/Sprite
var pos_list = 0
func _ready():
print()
get_tree().paused = false
if GlobalAudioStreamPlayer.volume_db !=-8:
music_button.pressed = true
else:
music_button.pressed = false
if Sfx.jump.volume_db != -27:
sfx_button.pressed = true
else:
sfx_button.pressed = false
start_button.grab_focus()
menu_area.visible = true
credits_area.visible = false
func _process(delta):
if Input.is_action_just_pressed("down"):
pos_list+=1
elif Input.is_action_just_pressed("up"):
pos_list-=1
if pos_list>5: pos_list = 0
elif pos_list<0: pos_list = 5
func _on_Play_pressed():
anim.play("play")
Sfx.select.play()
func play_game():
get_tree().change_scene(Main.load_level())
print(Main.load_level())
func _on_Quit_pressed():
anim.play("quit")
Sfx.select.play()
func quit_game():
get_tree().quit()
func _on_SFX_toggled(button_pressed):
if button_pressed:
anim.play("sound")
Sfx.stop_all_sounds()
else:
anim.play_backwards("sound")
Sfx.play_all_sounds()
func _on_Music_toggled(button_pressed):
if button_pressed:
anim.play("music")
GlobalAudioStreamPlayer.volume_db = -120
else:
anim.play_backwards("music")
GlobalAudioStreamPlayer.volume_db = 0
func _on_Back_to_menu_pressed():
credits_area.visible = false
menu_area.visible = true
start_button.grab_focus()
func _on_Credits_pressed():
anim.play("more")
func share_menu():
menu_area.visible = false
credits_area.visible = true
back_menu.grab_focus()
func _on_LinkButton_pressed():
OS.shell_open("https://twitter.com/stevenwahlmusic")
func _on_MyLink_pressed():
OS.shell_open("https://twitter.com/Joeligj12")
func _on_Play_mouse_entered():
start_button.grab_focus()
Sfx.select.play()
func _on_Quit_mouse_entered():
quit_button.grab_focus()
Sfx.select.play()
func _on_Music_mouse_entered():
music_button.grab_focus()
Sfx.select.play()
func _on_Credits_mouse_entered():
credits.grab_focus()
Sfx.select.play()
func _on_SFX_mouse_entered():
sfx_button.grab_focus()
Sfx.select.play()
func _on_LinkButton_mouse_entered():
steven.grab_focus()
Sfx.select.play()
func _on_MyLink_mouse_entered():
joel.grab_focus()
Sfx.select.play()

31
GUI/Scripts/ScoreBoard.gd Normal file
View File

@ -0,0 +1,31 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
onready var button =$MarginContainer/CenterContainer/VBoxContainer/Button
onready var time = $MarginContainer/CenterContainer/VBoxContainer/TiempoSinContarLedgeGrabs
onready var ftime = $MarginContainer/CenterContainer/VBoxContainer/TiempoTotal
onready var collected = $"MarginContainer/CenterContainer/VBoxContainer/Collected stuff"
# Called when the node enters the scene tree for the first time.
func _ready():
button.grab_focus()
time.text = str("Play Time: ",TotalTime.final_level_playtime)
ftime.text = str("Score Time: ",TotalTime.total_playtime)
collected.text = str("Collected Tokens: ", TotalTime.collectibles)
func _process(delta):
if Input.is_action_just_pressed("ui_cancel"):
get_tree().quit()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Button_pressed():
Main.save_level("res://Levels/Level_0.tscn")
get_tree().change_scene("res://GUI/MainMenu.tscn")

BIN
GUI/icons/Playbutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

34
GUI/icons/Playbutton.png.import Executable file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Playbutton.png-aee86f163d97b3076315ff111281ea06.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/Playbutton.png"
dest_files=[ "res://.import/Playbutton.png-aee86f163d97b3076315ff111281ea06.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/PlayerIcon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

34
GUI/icons/PlayerIcon.png.import Executable file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/PlayerIcon.png-f33828185ca44a8a2bc0a2deca0f9757.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/PlayerIcon.png"
dest_files=[ "res://.import/PlayerIcon.png-f33828185ca44a8a2bc0a2deca0f9757.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

BIN
GUI/icons/PlayerIconReal.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/PlayerIconReal.png-a72585a423fd83e7d4f43d6afcab1291.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/PlayerIconReal.png"
dest_files=[ "res://.import/PlayerIconReal.png-a72585a423fd83e7d4f43d6afcab1291.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

BIN
GUI/icons/Quitbutton+.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

View File

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

BIN
GUI/icons/button-export.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/button-export.png-df036c07159adefcc7a6eb6de4a7c9e0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/button-export.png"
dest_files=[ "res://.import/button-export.png-df036c07159adefcc7a6eb6de4a7c9e0.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/button.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

34
GUI/icons/button.png.import Executable file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/button.png-896b767aebf08526f569bba37f650ef4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/button.png"
dest_files=[ "res://.import/button.png-896b767aebf08526f569bba37f650ef4.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/continuebutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/continuebutton.png-776c769a5ca75040709551a93137fcf1.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/continuebutton.png"
dest_files=[ "res://.import/continuebutton.png-776c769a5ca75040709551a93137fcf1.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/disable_music.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/disable_music.png-7b029f3078514bfa7caa0d182cb41990.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/disable_music.png"
dest_files=[ "res://.import/disable_music.png-7b029f3078514bfa7caa0d182cb41990.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/disable_sound.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/disable_sound.png-37a29ddd188d3d572ad173cceb6dbd34.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/disable_sound.png"
dest_files=[ "res://.import/disable_sound.png-37a29ddd188d3d572ad173cceb6dbd34.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/enable_music.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/enable_music.png-22f1437046b7e957f2b48dfb9bba1498.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/enable_music.png"
dest_files=[ "res://.import/enable_music.png-22f1437046b7e957f2b48dfb9bba1498.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/enable_sound.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/enable_sound.png-52f21fe9ef4e6130f731003de7c62a5d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/enable_sound.png"
dest_files=[ "res://.import/enable_sound.png-52f21fe9ef4e6130f731003de7c62a5d.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/exitbutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

34
GUI/icons/exitbutton.png.import Executable file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/exitbutton.png-dfd0c8fdc652beca1175bce9e66c4482.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/exitbutton.png"
dest_files=[ "res://.import/exitbutton.png-dfd0c8fdc652beca1175bce9e66c4482.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/hoverbutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/hoverbutton.png-687f996808080c6b7e702c3ff8fbfac7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/hoverbutton.png"
dest_files=[ "res://.import/hoverbutton.png-687f996808080c6b7e702c3ff8fbfac7.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/hovermini.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

34
GUI/icons/hovermini.png.import Executable file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/hovermini.png-e18fe23c9255adb9d0647ef65ae9f302.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/hovermini.png"
dest_files=[ "res://.import/hovermini.png-e18fe23c9255adb9d0647ef65ae9f302.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/invisible_small_button.png-4f85e57a1f65007ec18175037c908b0d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/invisible_small_button.png"
dest_files=[ "res://.import/invisible_small_button.png-4f85e57a1f65007ec18175037c908b0d.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

BIN
GUI/icons/invisiblebutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/invisiblebutton.png-0ea781f0e2520db7df88baf19c8707de.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/invisiblebutton.png"
dest_files=[ "res://.import/invisiblebutton.png-0ea781f0e2520db7df88baf19c8707de.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

BIN
GUI/icons/mute_sound.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

34
GUI/icons/mute_sound.png.import Executable file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/mute_sound.png-137eb6bd741e11eb175bea1ad237970c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/mute_sound.png"
dest_files=[ "res://.import/mute_sound.png-137eb6bd741e11eb175bea1ad237970c.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

BIN
GUI/icons/pausebutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/pausebutton.png-88944c7591f230fef97867dca4ccd5b4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/pausebutton.png"
dest_files=[ "res://.import/pausebutton.png-88944c7591f230fef97867dca4ccd5b4.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/restartbutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/restartbutton.png-3a1b4978159f4994212f52cb8a0659b9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/restartbutton.png"
dest_files=[ "res://.import/restartbutton.png-3a1b4978159f4994212f52cb8a0659b9.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/share_button.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/share_button.png-d63f3e521b2f5725b6b267b83d8a884f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/share_button.png"
dest_files=[ "res://.import/share_button.png-d63f3e521b2f5725b6b267b83d8a884f.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
GUI/icons/touchbutton.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/touchbutton.png-bf428c5250013916a2dc72e7310739ec.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GUI/icons/touchbutton.png"
dest_files=[ "res://.import/touchbutton.png-bf428c5250013916a2dc72e7310739ec.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

80
LevelSelection.tscn Normal file
View File

@ -0,0 +1,80 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Level_Button.tscn" type="PackedScene" id=1]
[ext_resource path="res://Assets/GEBackground.png" type="Texture" id=2]
[ext_resource path="res://GUI/MainTheme.tres" type="Theme" id=3]
[node name="LevelSelection" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 1.31938, 2.11469 )
texture = ExtResource( 2 )
centered = false
[node name="LevelLabels" type="Label" parent="."]
margin_top = 23.0
margin_right = 700.0
margin_bottom = 73.0
text = "Level Selection"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/separation = 90
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 196.0
margin_right = 700.0
margin_bottom = 196.0
custom_constants/separation = 90
alignment = 1
[node name="Level_Button" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 1 )]
margin_left = 125.0
margin_right = 125.0
path = "res://Levels/Level_0.tscn"
level_num = "1"
[node name="Level_Button2" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 1 )]
margin_left = 215.0
margin_right = 215.0
path = "res://Levels/Level_1.tscn"
level_num = "2"
[node name="Level_Button3" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 1 )]
margin_left = 305.0
margin_right = 305.0
path = "res://Levels/Level_2.tscn"
level_num = "3"
[node name="Level_Button4" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 1 )]
margin_left = 395.0
margin_right = 395.0
path = "res://Levels/Level_3.tscn"
level_num = "4"
[node name="Level_Button5" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 1 )]
margin_left = 485.0
margin_right = 485.0
path = "res://Levels/Level_4.tscn"
level_num = "5"
[node name="Level_Button6" parent="VBoxContainer/HBoxContainer" instance=ExtResource( 1 )]
margin_left = 575.0
margin_right = 575.0
level_num = "6"

24
Level_Button.gd Executable file
View File

@ -0,0 +1,24 @@
extends Control
export (String,FILE,"*tscn") var path
export var level_num = "0"
export var enabled = false
export var all_diamons = false
onready var level_label = $TextureButton/Label
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
level_label.text = level_num
pass # Replace with function body.
func _on_TextureButton_pressed():
if enabled:
get_tree().change_scene(path)

50
Level_Button.tscn Executable file
View File

@ -0,0 +1,50 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://GUI/icons/button-export.png" type="Texture" id=2]
[ext_resource path="res://GUI/MainTheme.tres" type="Theme" id=3]
[ext_resource path="res://Level_Button.gd" type="Script" id=4]
[node name="Level_Button" type="Control"]
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButton" type="TextureButton" parent="."]
margin_left = -36.0
margin_top = -36.0
margin_right = 36.0
margin_bottom = 36.0
rect_min_size = Vector2( 12, 12 )
texture_normal = ExtResource( 2 )
expand = true
stretch_mode = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="TextureButton"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -29.0
margin_top = -25.0
margin_right = 32.0
margin_bottom = 16.0
theme = ExtResource( 3 )
text = "1"
align = 1
valign = 1
autowrap = true
clip_text = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, 35 )
scale = Vector2( 0.4, 0.4 )
texture = ExtResource( 1 )
[connection signal="pressed" from="TextureButton" to="." method="_on_TextureButton_pressed"]

8
Levels/Level.gd Executable file
View File

@ -0,0 +1,8 @@
extends Node2D
export (Array, float) var limits
func _ready():
get_tree().paused = true
pass

905
Levels/Level_0.tscn Normal file

File diff suppressed because one or more lines are too long

959
Levels/Level_1.tscn Normal file

File diff suppressed because one or more lines are too long

1098
Levels/Level_2.tscn Normal file

File diff suppressed because one or more lines are too long

1131
Levels/Level_3.tscn Normal file

File diff suppressed because one or more lines are too long

1137
Levels/Level_4.tscn Normal file

File diff suppressed because one or more lines are too long

BIN
LogoCliffhanger.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

34
LogoCliffhanger.png.import Executable file
View File

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

30
Main.gd Executable file
View File

@ -0,0 +1,30 @@
extends Node
var save_path = "user://save.dat"
func _ready():
pass # Replace with function body.
func save_level(data):
var file = File.new()
var error = file.open(save_path, File.WRITE)
if error == OK:
file.store_var(data)
file.close()
func load_level():
var file = File.new()
if file.file_exists(save_path):
var error = file.open(save_path,File.READ)
if error == OK:
var player_data = file.get_var()
file.close()
return str(player_data)
print("Loaded fine")
else:
print("something happened")
else:
print("Loaded nothing")
return "res://Levels/Level_0.tscn"

22
MovingPlatform.gd Executable file
View File

@ -0,0 +1,22 @@
extends Node2D
const IDLE_DURATION = 1.0
export var move_to = Vector2.RIGHT*48
export var speed = 3.0
onready var platform = $Platform
onready var tween = $MoveTween
var follow = Vector2.ZERO
var pos_to_follow
func _ready():
_init_tween()
func _init_tween():
var duration = move_to.length() / float(speed * 12)
tween.interpolate_property(self,"follow",Vector2.ZERO,move_to,duration,Tween.TRANS_LINEAR,Tween.EASE_IN_OUT,IDLE_DURATION)
tween.interpolate_property(self,"follow",move_to,Vector2.ZERO,duration,Tween.TRANS_LINEAR,Tween.EASE_IN_OUT,duration * 2 * IDLE_DURATION)
tween.start()
func _physics_process(delta):
platform.position = platform.position.linear_interpolate(follow,0.075)
pos_to_follow = platform.position

22
Objects/Collectible.gd Executable file
View File

@ -0,0 +1,22 @@
extends Area2D
signal add_time(time)
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
onready var anim_play =$AnimationPlayer
# Called when the node enters the scene tree for the first time.
func _ready():
connect("add_time",get_parent().get_parent().get_node("Background/GUI"),"add_time_now")
anim_play.play("idle")
connect("add_time",get_parent().get_node("Background/GUI"),"add_time_now")
func _on_Collectible_body_entered(body):
emit_signal("add_time")
$CollisionShape2D.set_deferred("disabled",true)
Sfx.coin.play()
anim_play.play("fade")
TotalTime.collectibles +=1

123
Objects/Collectible.tscn Executable file
View File

@ -0,0 +1,123 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Platforms.png" type="Texture" id=1]
[ext_resource path="res://Objects/Collectible.gd" type="Script" id=2]
[ext_resource path="res://light.png" type="Texture" id=4]
[sub_resource type="CircleShape2D" id=1]
radius = 6.0
[sub_resource type="Animation" id=2]
resource_name = "fade"
tracks/0/type = "value"
tracks/0/path = NodePath("icon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 0.233258, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, -8 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("icon:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 0.297302, 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ), Vector2( 0.3, 0.3 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("icon:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 0.189464, 0.143587 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}
tracks/3/type = "method"
tracks/3/path = NodePath(".")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 1 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "queue_free"
} ]
}
[sub_resource type="Animation" id=3]
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("icon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1.5064, 0.812252 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, -8 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("icon:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("icon:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ) ]
}
[node name="Collectible" type="Area2D"]
script = ExtResource( 2 )
[node name="icon" type="Sprite" parent="."]
texture = ExtResource( 1 )
vframes = 7
hframes = 7
frame = 4
[node name="Light2D" type="Light2D" parent="icon"]
position = Vector2( -1.90735e-06, -5.72205e-06 )
texture = ExtResource( 4 )
shadow_enabled = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/fade = SubResource( 2 )
anims/idle = SubResource( 3 )
[connection signal="body_entered" from="." to="." method="_on_Collectible_body_entered"]

Some files were not shown because too many files have changed in this diff Show More