Compare commits

...
3 Commits
Author SHA1 Message Date
matt acdee757cb Merge pull request 'Menus' (#13) from menus into main
Reviewed-on: #13
2026-10-04 16:28:09 -05:00
bigmstone de90af743c Lot of cleanup
Reorganize project structure into scenes and scripts directories

    - Move core game objects (player, enemy, projectile, cassette, phonebooth) to scenes/core/
    - Move UI helpers (title, pause_screen, game_over, speech) to scenes/helpers/
    - Move puzzle logic (phonephreak) to scenes/puzzles/
    - Move global utilities to scripts/
    - Consolidate levels in scenes/levels/ with new base_level structure
    - Fix naming conventions (snake_case for scripts)
    - Remove obsolete test and duplicate scenes
2026-10-04 15:27:34 -06:00
sam 6c6bc2a21a Game over/ Pause screen
cerated a functional game over screen. created a partially working pause screen.
2026-10-04 13:04:20 -06:00
52 changed files with 423 additions and 445 deletions

No files matched your search

+1 -1
View File
@@ -1053,7 +1053,7 @@ animations = [{
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("96_534c4") "texture": ExtResource("96_534c4")
}], }],
"loop": 1, "loop": 2,
"name": &"death", "name": &"death",
"speed": 25.0 "speed": 25.0
}, { }, {
+10 -1
View File
@@ -17,7 +17,7 @@ config/icon="res://icon.svg"
[autoload] [autoload]
GloblaData="*uid://chv42jjv2lka4" GlobalData="*uid://chv42jjv2lka4"
PhantomCameraManager="*uid://duq6jhf6unyis" PhantomCameraManager="*uid://duq6jhf6unyis"
[display] [display]
@@ -35,6 +35,10 @@ enabled=PackedStringArray("res://addons/phantom_camera/plugin.cfg")
import/blender/enabled=false import/blender/enabled=false
[global_group]
pause_scene=""
[input] [input]
left={ left={
@@ -102,6 +106,11 @@ gun={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":50,"key_label":0,"unicode":50,"location":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":50,"key_label":0,"unicode":50,"location":0,"echo":false,"script":null)
] ]
} }
pause={
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
[physics] [physics]
+1 -1
View File
@@ -8,5 +8,5 @@ func _ready() -> void:
func _on_body_entered(body: Node2D) -> void: func _on_body_entered(body: Node2D) -> void:
queue_free() queue_free()
GloblaData.cassets += 1 GlobalData.cassets += 1
print("1 point") print("1 point")
File renamed without changes.
@@ -1,42 +1,42 @@
[gd_scene format=3 uid="uid://c17txy4vh4wka"] [gd_scene format=3 uid="uid://c17txy4vh4wka"]
[ext_resource type="Script" uid="uid://bjj8m1jv577ob" path="res://casset.gd" id="1_n02yi"] [ext_resource type="Script" uid="uid://bjj8m1jv577ob" path="res://scenes/core/cassette.gd" id="1_e33mb"]
[ext_resource type="Texture2D" uid="uid://bwduuxikrgklm" path="res://assets/models/tape/0001.png" id="2_ey1rh"] [ext_resource type="Texture2D" uid="uid://bwduuxikrgklm" path="res://assets/models/tape/0001.png" id="2_ov30a"]
[ext_resource type="Texture2D" uid="uid://bhxmodp36d3p0" path="res://assets/models/tape/0002.png" id="3_s7x6d"] [ext_resource type="Texture2D" uid="uid://bhxmodp36d3p0" path="res://assets/models/tape/0002.png" id="3_iwy1v"]
[ext_resource type="Texture2D" uid="uid://ccrawjlvxjuw4" path="res://assets/models/tape/0003.png" id="4_uba7d"] [ext_resource type="Texture2D" uid="uid://ccrawjlvxjuw4" path="res://assets/models/tape/0003.png" id="4_40fjs"]
[ext_resource type="Texture2D" uid="uid://b7c7p86isaxa" path="res://assets/models/tape/0004.png" id="5_oukbb"] [ext_resource type="Texture2D" uid="uid://b7c7p86isaxa" path="res://assets/models/tape/0004.png" id="5_b3t40"]
[ext_resource type="Texture2D" uid="uid://oq11uiuyiam5" path="res://assets/models/tape/0005.png" id="6_4hmvd"] [ext_resource type="Texture2D" uid="uid://oq11uiuyiam5" path="res://assets/models/tape/0005.png" id="6_vyj75"]
[ext_resource type="Texture2D" uid="uid://b34cebb375x2r" path="res://assets/models/tape/0006.png" id="7_344th"] [ext_resource type="Texture2D" uid="uid://b34cebb375x2r" path="res://assets/models/tape/0006.png" id="7_ra122"]
[ext_resource type="Texture2D" uid="uid://coed278qdqt5j" path="res://assets/models/tape/0007.png" id="8_yg0e1"] [ext_resource type="Texture2D" uid="uid://coed278qdqt5j" path="res://assets/models/tape/0007.png" id="8_jqk11"]
[ext_resource type="Texture2D" uid="uid://bkmb8y4m64beg" path="res://assets/models/tape/0008.png" id="9_avxtk"] [ext_resource type="Texture2D" uid="uid://bkmb8y4m64beg" path="res://assets/models/tape/0008.png" id="9_xeumn"]
[ext_resource type="Texture2D" uid="uid://c4lfh75v0og6m" path="res://assets/models/tape/0009.png" id="10_wuesg"] [ext_resource type="Texture2D" uid="uid://c4lfh75v0og6m" path="res://assets/models/tape/0009.png" id="10_2fjvb"]
[ext_resource type="Texture2D" uid="uid://dsphwe7lsmvag" path="res://assets/models/tape/0010.png" id="11_i1phg"] [ext_resource type="Texture2D" uid="uid://dsphwe7lsmvag" path="res://assets/models/tape/0010.png" id="11_un7bj"]
[ext_resource type="Texture2D" uid="uid://dnikcglaiqp8w" path="res://assets/models/tape/0011.png" id="12_2qqyg"] [ext_resource type="Texture2D" uid="uid://dnikcglaiqp8w" path="res://assets/models/tape/0011.png" id="12_kft3m"]
[ext_resource type="Texture2D" uid="uid://pnbc7ujyqjbu" path="res://assets/models/tape/0012.png" id="13_pqb5h"] [ext_resource type="Texture2D" uid="uid://pnbc7ujyqjbu" path="res://assets/models/tape/0012.png" id="13_fwu40"]
[ext_resource type="Texture2D" uid="uid://bnhdtovgtyksk" path="res://assets/models/tape/0013.png" id="14_qnonl"] [ext_resource type="Texture2D" uid="uid://bnhdtovgtyksk" path="res://assets/models/tape/0013.png" id="14_oka6v"]
[ext_resource type="Texture2D" uid="uid://4870xw8inrmv" path="res://assets/models/tape/0014.png" id="15_ugerl"] [ext_resource type="Texture2D" uid="uid://4870xw8inrmv" path="res://assets/models/tape/0014.png" id="15_a5lxw"]
[ext_resource type="Texture2D" uid="uid://cb3eyy34s5jcf" path="res://assets/models/tape/0015.png" id="16_47mc2"] [ext_resource type="Texture2D" uid="uid://cb3eyy34s5jcf" path="res://assets/models/tape/0015.png" id="16_qtkqu"]
[ext_resource type="Texture2D" uid="uid://brmtj08bkb68i" path="res://assets/models/tape/0016.png" id="17_2g57n"] [ext_resource type="Texture2D" uid="uid://brmtj08bkb68i" path="res://assets/models/tape/0016.png" id="17_0hch6"]
[ext_resource type="Texture2D" uid="uid://ppdkj6hewhdy" path="res://assets/models/tape/0017.png" id="18_mem4b"] [ext_resource type="Texture2D" uid="uid://ppdkj6hewhdy" path="res://assets/models/tape/0017.png" id="18_tnc8j"]
[ext_resource type="Texture2D" uid="uid://c1k7f6eqgj6ha" path="res://assets/models/tape/0018.png" id="19_wjyl8"] [ext_resource type="Texture2D" uid="uid://c1k7f6eqgj6ha" path="res://assets/models/tape/0018.png" id="19_0kcxf"]
[ext_resource type="Texture2D" uid="uid://c5jkuviqedebh" path="res://assets/models/tape/0019.png" id="20_1jml4"] [ext_resource type="Texture2D" uid="uid://c5jkuviqedebh" path="res://assets/models/tape/0019.png" id="20_uoc08"]
[ext_resource type="Texture2D" uid="uid://rrtrsv4c4myb" path="res://assets/models/tape/0020.png" id="21_lgnyg"] [ext_resource type="Texture2D" uid="uid://rrtrsv4c4myb" path="res://assets/models/tape/0020.png" id="21_fkd2e"]
[ext_resource type="Texture2D" uid="uid://fnffb5up4s8d" path="res://assets/models/tape/0021.png" id="22_j1cfh"] [ext_resource type="Texture2D" uid="uid://fnffb5up4s8d" path="res://assets/models/tape/0021.png" id="22_6ocyi"]
[ext_resource type="Texture2D" uid="uid://b6ni883x1t055" path="res://assets/models/tape/0022.png" id="23_wokpw"] [ext_resource type="Texture2D" uid="uid://b6ni883x1t055" path="res://assets/models/tape/0022.png" id="23_qac6u"]
[ext_resource type="Texture2D" uid="uid://dm3cuk3uj7uro" path="res://assets/models/tape/0023.png" id="24_osnan"] [ext_resource type="Texture2D" uid="uid://dm3cuk3uj7uro" path="res://assets/models/tape/0023.png" id="24_bw8by"]
[ext_resource type="Texture2D" uid="uid://dn3d5bbgv6adj" path="res://assets/models/tape/0024.png" id="25_xtrco"] [ext_resource type="Texture2D" uid="uid://dn3d5bbgv6adj" path="res://assets/models/tape/0024.png" id="25_bjhb1"]
[ext_resource type="Texture2D" uid="uid://brlj5o4c38sfy" path="res://assets/models/tape/0025.png" id="26_2nvr4"] [ext_resource type="Texture2D" uid="uid://brlj5o4c38sfy" path="res://assets/models/tape/0025.png" id="26_6jhix"]
[ext_resource type="Texture2D" uid="uid://cbxyunc3vq43f" path="res://assets/models/tape/0026.png" id="27_uw6xo"] [ext_resource type="Texture2D" uid="uid://cbxyunc3vq43f" path="res://assets/models/tape/0026.png" id="27_ej4cb"]
[ext_resource type="Texture2D" uid="uid://dhy47cdhnuw0u" path="res://assets/models/tape/0027.png" id="28_3xmqj"] [ext_resource type="Texture2D" uid="uid://dhy47cdhnuw0u" path="res://assets/models/tape/0027.png" id="28_bowdg"]
[ext_resource type="Texture2D" uid="uid://cc6cma7usbvr0" path="res://assets/models/tape/0028.png" id="29_abqet"] [ext_resource type="Texture2D" uid="uid://cc6cma7usbvr0" path="res://assets/models/tape/0028.png" id="29_xvsmk"]
[ext_resource type="Texture2D" uid="uid://y36af74op255" path="res://assets/models/tape/0029.png" id="30_ka3mg"] [ext_resource type="Texture2D" uid="uid://y36af74op255" path="res://assets/models/tape/0029.png" id="30_q2n24"]
[ext_resource type="Texture2D" uid="uid://duxa31abxdim3" path="res://assets/models/tape/0030.png" id="31_ytpdu"] [ext_resource type="Texture2D" uid="uid://duxa31abxdim3" path="res://assets/models/tape/0030.png" id="31_qudm8"]
[ext_resource type="Texture2D" uid="uid://dk0rrn6qcey4q" path="res://assets/models/tape/0031.png" id="32_4n61x"] [ext_resource type="Texture2D" uid="uid://dk0rrn6qcey4q" path="res://assets/models/tape/0031.png" id="32_lbn50"]
[ext_resource type="Texture2D" uid="uid://dmmcacajlqfty" path="res://assets/models/tape/0032.png" id="33_rbupw"] [ext_resource type="Texture2D" uid="uid://dmmcacajlqfty" path="res://assets/models/tape/0032.png" id="33_qg7ey"]
[ext_resource type="Texture2D" uid="uid://w4qt7tot3p6c" path="res://assets/models/tape/0033.png" id="34_ad3ah"] [ext_resource type="Texture2D" uid="uid://w4qt7tot3p6c" path="res://assets/models/tape/0033.png" id="34_6u2pe"]
[ext_resource type="Texture2D" uid="uid://dydx71lucpp1b" path="res://assets/models/tape/0034.png" id="35_h5u8c"] [ext_resource type="Texture2D" uid="uid://dydx71lucpp1b" path="res://assets/models/tape/0034.png" id="35_e35d2"]
[ext_resource type="Texture2D" uid="uid://cwpnuvhfsn4he" path="res://assets/models/tape/0035.png" id="36_d51k2"] [ext_resource type="Texture2D" uid="uid://cwpnuvhfsn4he" path="res://assets/models/tape/0035.png" id="36_fenfq"]
[ext_resource type="Texture2D" uid="uid://bushfp5bxibq6" path="res://assets/models/tape/0036.png" id="37_xa14o"] [ext_resource type="Texture2D" uid="uid://bushfp5bxibq6" path="res://assets/models/tape/0036.png" id="37_1v3qm"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(47, 54) size = Vector2(47, 54)
@@ -45,112 +45,112 @@ size = Vector2(47, 54)
animations = [{ animations = [{
"frames": [{ "frames": [{
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("2_ey1rh") "texture": ExtResource("2_ov30a")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("3_s7x6d") "texture": ExtResource("3_iwy1v")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("4_uba7d") "texture": ExtResource("4_40fjs")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("5_oukbb") "texture": ExtResource("5_b3t40")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("6_4hmvd") "texture": ExtResource("6_vyj75")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("7_344th") "texture": ExtResource("7_ra122")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("8_yg0e1") "texture": ExtResource("8_jqk11")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("9_avxtk") "texture": ExtResource("9_xeumn")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("10_wuesg") "texture": ExtResource("10_2fjvb")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("11_i1phg") "texture": ExtResource("11_un7bj")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("12_2qqyg") "texture": ExtResource("12_kft3m")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("13_pqb5h") "texture": ExtResource("13_fwu40")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("14_qnonl") "texture": ExtResource("14_oka6v")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("15_ugerl") "texture": ExtResource("15_a5lxw")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("16_47mc2") "texture": ExtResource("16_qtkqu")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("17_2g57n") "texture": ExtResource("17_0hch6")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("18_mem4b") "texture": ExtResource("18_tnc8j")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("19_wjyl8") "texture": ExtResource("19_0kcxf")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("20_1jml4") "texture": ExtResource("20_uoc08")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("21_lgnyg") "texture": ExtResource("21_fkd2e")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("22_j1cfh") "texture": ExtResource("22_6ocyi")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("23_wokpw") "texture": ExtResource("23_qac6u")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("24_osnan") "texture": ExtResource("24_bw8by")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("25_xtrco") "texture": ExtResource("25_bjhb1")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("26_2nvr4") "texture": ExtResource("26_6jhix")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("27_uw6xo") "texture": ExtResource("27_ej4cb")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("28_3xmqj") "texture": ExtResource("28_bowdg")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("29_abqet") "texture": ExtResource("29_xvsmk")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("30_ka3mg") "texture": ExtResource("30_q2n24")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("31_ytpdu") "texture": ExtResource("31_qudm8")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("32_4n61x") "texture": ExtResource("32_lbn50")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("33_rbupw") "texture": ExtResource("33_qg7ey")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("34_ad3ah") "texture": ExtResource("34_6u2pe")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("35_h5u8c") "texture": ExtResource("35_e35d2")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("36_d51k2") "texture": ExtResource("36_fenfq")
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("37_xa14o") "texture": ExtResource("37_1v3qm")
}], }],
"loop": 1, "loop": 1,
"name": &"default", "name": &"default",
@@ -159,7 +159,7 @@ animations = [{
[node name="casset" type="Area2D" unique_id=918954585] [node name="casset" type="Area2D" unique_id=918954585]
collision_layer = 16 collision_layer = 16
script = ExtResource("1_n02yi") script = ExtResource("1_e33mb")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1414004718] [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1414004718]
position = Vector2(23.5, -2) position = Vector2(23.5, -2)
+4 -4
View File
@@ -3,7 +3,7 @@ extends CharacterBody2D
var SPEED = Vector2(5, 0) var SPEED = Vector2(5, 0)
const JUMP_VELOCITY = -400.0 const JUMP_VELOCITY = -400.0
@onready var projectile: PackedScene = preload("res://scenes/projectile.tscn") @onready var projectile: PackedScene = preload("res://scenes/core/projectile.tscn")
var death_counter = 3 var death_counter = 3
@@ -37,10 +37,10 @@ func _on_timer_timeout() -> void:
func _on_area_2d_area_entered(area: Area2D) -> void: func _on_area_2d_area_entered(area: Area2D) -> void:
if GloblaData.hurtable: if GlobalData.hurtable:
death_counter -= 1 death_counter -= 1
elif GloblaData.weapon == 2: elif GlobalData.weapon == 2:
death_counter -= 1 death_counter -= 1
func _on_area_2d_body_entered(body: Node2D) -> void: func _on_area_2d_body_entered(body: Node2D) -> void:
GloblaData.death_counter -= 1 GlobalData.death_counter -= 1
File renamed without changes.
+1 -1
View File
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://dxx6mxv6x5yws"] [gd_scene format=3 uid="uid://dxx6mxv6x5yws"]
[ext_resource type="Script" uid="uid://su208qu0ehcs" path="res://scenes/enemy.gd" id="1_7p1mj"] [ext_resource type="Script" uid="uid://su208qu0ehcs" path="res://scenes/core/enemy.gd" id="1_7p1mj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(168, 167) size = Vector2(168, 167)
@@ -21,13 +21,17 @@ func _on_area_2d_body_entered(body: Node2D) -> void:
await get_tree().process_frame await get_tree().process_frame
print("== AFTER 2 FRAMES ==") print("== AFTER 2 FRAMES ==")
_dump(inst) _dump(inst)
GloblaData.doing_puzzle = true GlobalData.doing_puzzle = true
$CanvasLayer.add_child(inst) $CanvasLayer.add_child(inst)
inst.set_anchors_and_offsets_preset(Control.PRESET_CENTER, Control.PRESET_MODE_KEEP_SIZE) inst.set_anchors_and_offsets_preset(Control.PRESET_CENTER, Control.PRESET_MODE_KEEP_SIZE)
inst.grow_vertical = Control.GROW_DIRECTION_BOTH inst.grow_vertical = Control.GROW_DIRECTION_BOTH
inst.grow_horizontal = Control.GROW_DIRECTION_BOTH inst.grow_horizontal = Control.GROW_DIRECTION_BOTH
else: else:
get_parent().get_node("Speech").say("I need to find all the music!", get_parent().get_node("player").SpeechMarker, 5.0) get_parent().get_node("Speech").say(
"I need to find all the music!",
get_parent().get_parent().get_node("player").SpeechMarker,
5.0
)
func _dump(inst: Control) -> void: func _dump(inst: Control) -> void:
var vp := get_viewport() var vp := get_viewport()
File renamed without changes.
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://cplmcsbr2yajw"] [gd_scene format=3 uid="uid://cplmcsbr2yajw"]
[ext_resource type="Script" uid="uid://eql155d0clq7" path="res://scripts/phonebooth.gd" id="1_nrbkm"] [ext_resource type="Script" uid="uid://eql155d0clq7" path="res://scenes/core/phonebooth.gd" id="1_nrbkm"]
[ext_resource type="Texture2D" uid="uid://cycqo2y184wfj" path="res://assets/models/phonebooth0001.png" id="2_bkddl"] [ext_resource type="Texture2D" uid="uid://cycqo2y184wfj" path="res://assets/models/phonebooth0001.png" id="2_bkddl"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nrbkm"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_nrbkm"]
@@ -117,9 +117,9 @@ var slash = 300
@export var crouch_walk: bool @export var crouch_walk: bool
##Animations must be named "roll" all lowercase as the check box says ##Animations must be named "roll" all lowercase as the check box says
@export var roll: bool @export var roll: bool
var projectile = preload("res://scenes/projectile.tscn") var projectile = preload("res://scenes/core/projectile.tscn")
signal dead
#Variables determined by the developer set ones. #Variables determined by the developer set ones.
var appliedGravity: float var appliedGravity: float
var maxSpeedLock: float var maxSpeedLock: float
@@ -182,7 +182,7 @@ var dashTap
var rollTap var rollTap
var downTap var downTap
var twirlTap var twirlTap
var enemy = preload("res://scenes/enemy.tscn") var enemy = preload("res://scenes/core/enemy.tscn")
func _ready(): func _ready():
wasMovingR = true wasMovingR = true
anim = PlayerSprite anim = PlayerSprite
@@ -326,13 +326,14 @@ func _process(_delta):
var dir: bool = 1 var dir: bool = 1
func _physics_process(delta): func _physics_process(delta):
print(GlobalData.death_counter)
if Input.is_action_just_pressed("slash_weapon"): if Input.is_action_just_pressed("slash_weapon"):
weapon = 1 weapon = 1
GloblaData.weapon = 1 GlobalData.weapon = 1
if Input.is_action_just_pressed("gun"): if Input.is_action_just_pressed("gun"):
weapon = 2 weapon = 2
GloblaData.weapon = 2 GlobalData.weapon = 2
$Label.text = str(int(GloblaData.cassets)) $Label.text = str(int(GlobalData.cassets))
if Input.is_action_just_pressed("right"): if Input.is_action_just_pressed("right"):
dir = 1 dir = 1
$ColorRect5.global_position = $Marker2D3.global_position $ColorRect5.global_position = $Marker2D3.global_position
@@ -340,7 +341,7 @@ func _physics_process(delta):
$ColorRect5.global_position = $Marker2D2.global_position $ColorRect5.global_position = $Marker2D2.global_position
$ColorRect5.rotation = -130 $ColorRect5.rotation = -130
dir = 0 dir = 0
if GloblaData.doing_puzzle == false: if GlobalData.doing_puzzle == false:
if Input.is_action_just_pressed("right"): if Input.is_action_just_pressed("right"):
$ColorRect5.global_position = $Marker2D3.global_position $ColorRect5.global_position = $Marker2D3.global_position
$ColorRect5.rotation = 130 $ColorRect5.rotation = 130
@@ -358,18 +359,22 @@ func _physics_process(delta):
elif Input.is_action_just_pressed("fire") and weapon == 1: elif Input.is_action_just_pressed("fire") and weapon == 1:
$ColorRect5.rotation -= slash $ColorRect5.rotation -= slash
slash = -slash slash = -slash
GloblaData.hurtable = true GlobalData.hurtable = true
$Timer.start() $Timer.start()
if GloblaData.doing_puzzle: if GlobalData.doing_puzzle:
velocity = Vector2(0, 0) velocity = Vector2(0, 0)
if GloblaData.death_counter == 0: if GlobalData.death_counter <= 0:
get_tree().quit() $AnimatedSprite2D.play("death")
if GloblaData.death_counter == 2: emit_signal("dead")
dead.disconnect(_on_dead)
if GlobalData.death_counter == 2:
$ColorRect3.hide() $ColorRect3.hide()
elif GloblaData.death_counter == 1: elif GlobalData.death_counter == 1:
$ColorRect4.hide() $ColorRect4.hide()
elif GlobalData.death_counter == 0:
$ColorRect2.hide()
if !dset: if !dset:
gdelta = delta gdelta = delta
dset = true dset = true
@@ -396,34 +401,34 @@ func _physics_process(delta):
if weapon == 1: if weapon == 1:
anim_preamble = "sword_" anim_preamble = "sword_"
if GlobalData.death_counter > 0:
if !is_on_floor(): if !is_on_floor():
$AnimatedSprite2D.animation = "%sjump" % anim_preamble $AnimatedSprite2D.animation = "%sjump" % anim_preamble
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 2: elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 2:
$AnimatedSprite2D.animation = "run_shoot" $AnimatedSprite2D.animation = "run_shoot"
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 1: elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 1:
$AnimatedSprite2D.animation = "sword_run_swing" $AnimatedSprite2D.animation = "sword_run_swing"
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
elif leftHold or rightHold: elif leftHold or rightHold:
$AnimatedSprite2D.animation = "%srun" % anim_preamble $AnimatedSprite2D.animation = "%srun" % anim_preamble
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
elif runHold: elif runHold:
$AnimatedSprite2D.animation = "%srun" % anim_preamble $AnimatedSprite2D.animation = "%srun" % anim_preamble
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
elif Input.is_action_just_pressed("fire") and weapon == 2: elif Input.is_action_just_pressed("fire") and weapon == 2:
$AnimatedSprite2D.animation = "shoot" $AnimatedSprite2D.animation = "shoot"
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
elif Input.is_action_just_pressed("fire") and weapon == 1: elif Input.is_action_just_pressed("fire") and weapon == 1:
$AnimatedSprite2D.animation = "sword_swing" $AnimatedSprite2D.animation = "sword_swing"
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
else: else:
$AnimatedSprite2D.animation = "%sidle" % anim_preamble $AnimatedSprite2D.animation = "%sidle" % anim_preamble
$AnimatedSprite2D.play() $AnimatedSprite2D.play()
#INFO Left and Right Movement #INFO Left and Right Movement
if GloblaData.doing_puzzle == false: if GlobalData.doing_puzzle == false and GlobalData.death_counter > 0:
if rightHold and leftHold and movementInputMonitoring: if rightHold and leftHold and movementInputMonitoring:
if !instantStop: if !instantStop:
_decelerate(delta, false) _decelerate(delta, false)
@@ -511,7 +516,7 @@ func _physics_process(delta):
pass pass
#INFO Jump and Gravity #INFO Jump and Gravity
if GloblaData.doing_puzzle == false: if GlobalData.doing_puzzle == false and GlobalData.death_counter > 0:
if velocity.y > 0: if velocity.y > 0:
appliedGravity = gravityScale * descendingGravityFactor appliedGravity = gravityScale * descendingGravityFactor
else: else:
@@ -757,4 +762,10 @@ func shoot():
func _on_timer_timeout() -> void: func _on_timer_timeout() -> void:
GloblaData.hurtable = false GlobalData.hurtable = false
func _on_dead() -> void:
var death_scene = preload("res://scenes/helpers/game_over.tscn")
var instance = death_scene.instantiate()
$".".add_child(instance)
File renamed without changes.
+12 -10
View File
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://cmtdq6tedv1mm"] [gd_scene format=3 uid="uid://cmtdq6tedv1mm"]
[ext_resource type="Script" uid="uid://2ig5okof0vaa" path="res://scripts/UltimatePlatformerController.gd" id="1_3vyb7"] [ext_resource type="Script" uid="uid://2ig5okof0vaa" path="res://scenes/core/player.gd" id="1_3vyb7"]
[ext_resource type="FontFile" uid="uid://ddm6ojsaiq20b" path="res://assets/fonts/PixelOperator8-Bold.ttf" id="2_g2els"] [ext_resource type="FontFile" uid="uid://ddm6ojsaiq20b" path="res://assets/fonts/PixelOperator8-Bold.ttf" id="2_g2els"]
[ext_resource type="SpriteFrames" uid="uid://cownh0u8kqwb7" path="res://assets/sprites/character.tres" id="3_qhqgy"] [ext_resource type="SpriteFrames" uid="uid://cownh0u8kqwb7" path="res://assets/sprites/character.tres" id="3_qhqgy"]
[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="3_qlg0r"] [ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="3_qlg0r"]
@@ -28,7 +28,7 @@ script = ExtResource("1_3vyb7")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1624841443] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1624841443]
position = Vector2(53, 36.00006) position = Vector2(53, 36.00006)
sprite_frames = ExtResource("3_qhqgy") sprite_frames = ExtResource("3_qhqgy")
animation = &"jump" animation = &"death"
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1496788104] [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1496788104]
position = Vector2(57.5, 34) position = Vector2(57.5, 34)
@@ -62,24 +62,25 @@ metadata/_edit_use_anchors_ = true
position = Vector2(112, 38) position = Vector2(112, 38)
[node name="Label" type="Label" parent="." unique_id=519077191] [node name="Label" type="Label" parent="." unique_id=519077191]
offset_left = -722.0 offset_left = -687.0
offset_top = -416.0 offset_top = -389.0
offset_right = -689.0 offset_right = -654.0
offset_bottom = -382.0 offset_bottom = -355.0
theme_override_fonts/font = ExtResource("2_g2els") theme_override_fonts/font = ExtResource("2_g2els")
theme_override_font_sizes/font_size = 25 theme_override_font_sizes/font_size = 25
text = "0" text = "0"
[node name="Label2" type="Label" parent="." unique_id=1907510281] [node name="Label2" type="Label" parent="." unique_id=1907510281]
offset_left = -924.0 offset_left = -889.0
offset_top = -417.0 offset_top = -390.0
offset_right = -672.0 offset_right = -637.0
offset_bottom = -383.0 offset_bottom = -356.0
theme_override_fonts/font = ExtResource("2_g2els") theme_override_fonts/font = ExtResource("2_g2els")
theme_override_font_sizes/font_size = 25 theme_override_font_sizes/font_size = 25
text = "cassets:" text = "cassets:"
[node name="ColorRect5" type="ColorRect" parent="." unique_id=823301403] [node name="ColorRect5" type="ColorRect" parent="." unique_id=823301403]
visible = false
offset_left = 107.0 offset_left = 107.0
offset_top = 47.0 offset_top = 47.0
offset_right = 119.0 offset_right = 119.0
@@ -131,4 +132,5 @@ metadata/_custom_type_script = "uid://bhexx6mj1xv3q"
[node name="SpeechMarker" type="Marker2D" parent="." unique_id=1534560136] [node name="SpeechMarker" type="Marker2D" parent="." unique_id=1534560136]
position = Vector2(51, -86) position = Vector2(51, -86)
[connection signal="dead" from="." to="." method="_on_dead"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"] [connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://baiayu1xn68g0"] [gd_scene format=3 uid="uid://baiayu1xn68g0"]
[ext_resource type="Script" uid="uid://7hy57dacf4nh" path="res://projecile.gd" id="1_c8fcr"] [ext_resource type="Script" uid="uid://7hy57dacf4nh" path="res://scenes/core/projectile.gd" id="1_c8fcr"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(44, 44) size = Vector2(44, 44)
-9
View File
@@ -1,9 +0,0 @@
[gd_scene format=3 uid="uid://dsygg23isv1il"]
[node name="End" type="Control" unique_id=1673862149]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
@@ -9,3 +9,13 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void: func _process(delta: float) -> void:
pass pass
func _on_button_pressed() -> void:
GlobalData.death_counter = 3
$".".queue_free()
get_tree().reload_current_scene()
func _on_button_2_pressed() -> void:
get_tree().quit()
+1
View File
@@ -0,0 +1 @@
uid://qtq5kw1cwxo3
+49
View File
@@ -0,0 +1,49 @@
[gd_scene format=3 uid="uid://dvujc88306mxp"]
[ext_resource type="Script" uid="uid://qtq5kw1cwxo3" path="res://scenes/helpers/game_over.gd" id="1_tbwuq"]
[ext_resource type="FontFile" uid="uid://ddm6ojsaiq20b" path="res://assets/fonts/PixelOperator8-Bold.ttf" id="1_wqhvx"]
[ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="2_tbwuq"]
[node name="game_over" type="Node2D" unique_id=1847116366]
script = ExtResource("1_tbwuq")
[node name="ColorRect" type="ColorRect" parent="." unique_id=995002747]
z_index = 12
offset_left = -1264.0
offset_top = -635.0
offset_right = 1107.0
offset_bottom = 534.0
color = Color(14.806348, 0, 0, 0.34509805)
[node name="Label" type="Label" parent="." unique_id=677546612]
z_index = 13
offset_left = -856.0
offset_top = -334.0
offset_right = 1019.0
offset_bottom = -134.0
theme_override_fonts/font = ExtResource("1_wqhvx")
theme_override_font_sizes/font_size = 200
text = "GAME OVER!"
[node name="Button" type="Button" parent="." unique_id=81464495]
z_index = 13
offset_left = -288.0
offset_top = 28.0
offset_right = 358.0
offset_bottom = 137.0
theme_override_fonts/font = ExtResource("2_tbwuq")
theme_override_font_sizes/font_size = 100
text = "Respawn"
[node name="Button2" type="Button" parent="." unique_id=1126403836]
z_index = 13
offset_left = -279.0
offset_top = 205.0
offset_right = 367.0
offset_bottom = 314.0
theme_override_fonts/font = ExtResource("2_tbwuq")
theme_override_font_sizes/font_size = 100
text = "Quit"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]
+19
View File
@@ -0,0 +1,19 @@
extends CanvasLayer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if !get_tree().paused or Input.is_action_just_pressed("pause"):
queue_free()
get_tree().paused = false
func _on_button_pressed() -> void:
get_tree().paused = false
queue_free()
func _on_button_2_pressed() -> void:
get_tree().quit()
+1
View File
@@ -0,0 +1 @@
uid://duogtg7hc30a6
+43
View File
@@ -0,0 +1,43 @@
[gd_scene format=3 uid="uid://0qbm646wkcl2"]
[ext_resource type="Script" uid="uid://duogtg7hc30a6" path="res://scenes/helpers/pause_screen.gd" id="1_ugr0d"]
[ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="2_m8jjm"]
[node name="pause_screen" type="CanvasLayer" unique_id=2146455338 groups=["pause_scene"]]
process_mode = 2
script = ExtResource("1_ugr0d")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1229507916]
offset_right = 2000.0
offset_bottom = 1000.0
color = Color(0, 0.7254902, 0, 0.28235295)
[node name="Label" type="Label" parent="." unique_id=220159306]
offset_left = 451.0
offset_top = 236.0
offset_right = 1501.0
offset_bottom = 436.0
theme_override_fonts/font = ExtResource("2_m8jjm")
theme_override_font_sizes/font_size = 200
text = "Paused"
[node name="Button" type="Button" parent="." unique_id=1467636182]
offset_left = 701.0
offset_top = 517.0
offset_right = 1259.0
offset_bottom = 626.0
theme_override_fonts/font = ExtResource("2_m8jjm")
theme_override_font_sizes/font_size = 100
text = "resume"
[node name="Button2" type="Button" parent="." unique_id=814575465]
offset_left = 713.0
offset_top = 694.0
offset_right = 1271.0
offset_bottom = 803.0
theme_override_fonts/font = ExtResource("2_m8jjm")
theme_override_font_sizes/font_size = 100
text = "quit"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://b6n7uq6bhkwo3"] [gd_scene format=3 uid="uid://b6n7uq6bhkwo3"]
[ext_resource type="Script" uid="uid://bnlmy8hecbg5c" path="res://scenes/speech.gd" id="1_j5wli"] [ext_resource type="Script" uid="uid://bnlmy8hecbg5c" path="res://scenes/helpers/speech.gd" id="1_j5wli"]
[node name="Speech" type="CanvasLayer" unique_id=747748325] [node name="Speech" type="CanvasLayer" unique_id=747748325]
script = ExtResource("1_j5wli") script = ExtResource("1_j5wli")
+1 -1
View File
@@ -12,4 +12,4 @@ func _process(delta: float) -> void:
func _on_button_pressed() -> void: func _on_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/levels/level%s.tscn" % GloblaData.level) get_tree().change_scene_to_file("res://scenes/levels/level%s.tscn" % GlobalData.level)
File renamed without changes.
@@ -1,7 +1,7 @@
[gd_scene format=3 uid="uid://btktv5aqpafau"] [gd_scene format=3 uid="uid://btktv5aqpafau"]
[ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="1_4ignj"] [ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="1_4ignj"]
[ext_resource type="Script" uid="uid://dcbdrv8y15dtu" path="res://scenes/title.gd" id="1_wosw1"] [ext_resource type="Script" uid="uid://dcbdrv8y15dtu" path="res://scenes/helpers/title.gd" id="1_wosw1"]
[node name="Title" type="Control" unique_id=715100706] [node name="Title" type="Control" unique_id=715100706]
layout_mode = 3 layout_mode = 3
+90
View File
@@ -0,0 +1,90 @@
[gd_scene format=3 uid="uid://bjg48bhcju2"]
[ext_resource type="Script" uid="uid://bnd0xf3ehfhsf" path="res://scenes/levels/base_level.gd" id="1_bw12j"]
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/core/player.tscn" id="1_dew7u"]
[ext_resource type="TileSet" uid="uid://5ba7b2qpwevo" path="res://assets/tiles/city.tres" id="2_yrvjx"]
[ext_resource type="Texture2D" uid="uid://d4d36l4cv2asv" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/2.png" id="3_bw12j"]
[ext_resource type="Texture2D" uid="uid://c7sl7yd4751ll" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/3.png" id="4_27gwi"]
[ext_resource type="Texture2D" uid="uid://dg8d1t4ufpwed" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/5.png" id="5_sytrn"]
[ext_resource type="PackedScene" uid="uid://dxx6mxv6x5yws" path="res://scenes/core/enemy.tscn" id="6_meh8o"]
[ext_resource type="Texture2D" uid="uid://dmur5aswibpg2" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/1.png" id="6_yrvjx"]
[ext_resource type="PackedScene" uid="uid://c17txy4vh4wka" path="res://scenes/core/cassette.tscn" id="7_kj3bt"]
[ext_resource type="PackedScene" uid="uid://cplmcsbr2yajw" path="res://scenes/core/phonebooth.tscn" id="8_ldasf"]
[ext_resource type="PackedScene" uid="uid://b6n7uq6bhkwo3" path="res://scenes/helpers/speech.tscn" id="9_xybdn"]
[node name="BaseLevel" type="Node2D" unique_id=2017584106]
script = ExtResource("1_bw12j")
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_dew7u")]
z_index = 1
position = Vector2(45, -143)
[node name="Visuals" type="Node" parent="." unique_id=1902043438]
[node name="TileMapLayer" type="TileMapLayer" parent="Visuals" unique_id=1408843058]
z_index = -1
tile_set = ExtResource("2_yrvjx")
use_kinematic_bodies = true
[node name="Parallax2D" type="Parallax2D" parent="Visuals" unique_id=1330940116]
scroll_scale = Vector2(0.95, 0.95)
scroll_offset = Vector2(0.1, 0)
repeat_size = Vector2(1364, 0)
repeat_times = 4
[node name="Sprite2D" type="Sprite2D" parent="Visuals/Parallax2D" unique_id=105768784]
z_index = -2
position = Vector2(2050.8003, -331)
scale = Vector2(2.368827, 2.368827)
texture = ExtResource("3_bw12j")
[node name="Parallax2D2" type="Parallax2D" parent="Visuals" unique_id=1561997771]
scroll_scale = Vector2(0.9, 0.9)
scroll_offset = Vector2(0.1, 0)
repeat_size = Vector2(1364, 0)
repeat_times = 4
[node name="Sprite2D" type="Sprite2D" parent="Visuals/Parallax2D2" unique_id=157441330]
z_index = -2
position = Vector2(2048.8, -211)
scale = Vector2(2.368827, 2.368827)
texture = ExtResource("4_27gwi")
[node name="Parallax2D4" type="Parallax2D" parent="Visuals" unique_id=462006589]
scroll_scale = Vector2(0.85, 0.85)
scroll_offset = Vector2(0.1, 0)
repeat_size = Vector2(1364, 0)
repeat_times = 4
[node name="Sprite2D" type="Sprite2D" parent="Visuals/Parallax2D4" unique_id=480285337]
z_index = -2
position = Vector2(2047.8, -202.00003)
scale = Vector2(2.368827, 2.368827)
texture = ExtResource("5_sytrn")
[node name="Background" type="CanvasLayer" parent="Visuals" unique_id=217700382]
layer = -1
[node name="Sprite2D" type="Sprite2D" parent="Visuals/Background" unique_id=109663734]
z_index = -4
position = Vector2(1009, 569)
scale = Vector2(3.509259, 3.5092592)
texture = ExtResource("6_yrvjx")
[node name="Enimies" type="Node" parent="." unique_id=317742684]
[node name="enemy" parent="Enimies" unique_id=1471932521 instance=ExtResource("6_meh8o")]
position = Vector2(413, -189)
[node name="Cassettes" type="Node" parent="." unique_id=257762099]
[node name="cassette" parent="Cassettes" unique_id=918954585 groups=["Cassets"] instance=ExtResource("7_kj3bt")]
z_index = 1
position = Vector2(268, -57)
[node name="Helpers" type="Node" parent="." unique_id=889215465]
[node name="Phonebooth" parent="Helpers" unique_id=1406086177 instance=ExtResource("8_ldasf")]
position = Vector2(741, -168)
[node name="Speech" parent="Helpers" unique_id=747748325 instance=ExtResource("9_xybdn")]
+19
View File
@@ -0,0 +1,19 @@
extends Node2D
@onready var pause = preload("res://scenes/helpers/pause_screen.tscn")
func _ready() -> void:
pass # Replace with function body.
func _process(delta: float) -> void:
if Input.is_action_just_pressed("pause"):
toggle_paused()
func toggle_paused():
if get_tree().paused:
get_tree().paused = false
else:
var instace = pause.instantiate()
get_tree().root.add_child(instace)
get_tree().paused = true
+1
View File
@@ -0,0 +1 @@
uid://bnd0xf3ehfhsf
-76
View File
@@ -1,76 +0,0 @@
[gd_scene format=3 uid="uid://byyncg030v5uf"]
[ext_resource type="Script" uid="uid://cogpyoqdfygvg" path="res://scenes/levels/level_1.gd" id="1_bfxgj"]
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/player.tscn" id="1_dd0lh"]
[ext_resource type="PackedScene" uid="uid://dxx6mxv6x5yws" path="res://scenes/enemy.tscn" id="2_bfxgj"]
[ext_resource type="PackedScene" uid="uid://c17txy4vh4wka" path="res://scenes/casset.tscn" id="3_dywbp"]
[ext_resource type="PackedScene" uid="uid://cplmcsbr2yajw" path="res://scenes/phonebooth.tscn" id="5_dywbp"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(6598.25, 171)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yg5ta"]
size = Vector2(787, 135)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_e270b"]
size = Vector2(341, 630)
[node name="Level1" type="Node2D" unique_id=872996404]
script = ExtResource("1_bfxgj")
[node name="ColorRect" type="ColorRect" parent="." unique_id=875566885]
offset_top = 269.0
offset_right = 6588.0
offset_bottom = 368.0
color = Color(0, 0.39215687, 0, 1)
[node name="ColorRect2" type="ColorRect" parent="." unique_id=170644068]
offset_left = 1250.0
offset_top = -129.0
offset_right = 2039.0
offset_bottom = 6.0
color = Color(0, 0.39215687, 0, 1)
[node name="ColorRect3" type="ColorRect" parent="." unique_id=1127267083]
offset_top = 269.0
offset_right = 4761.0
offset_bottom = 368.0
color = Color(0, 0.39215687, 0, 1)
[node name="ColorRect4" type="ColorRect" parent="." unique_id=1994208535]
offset_left = 4215.0
offset_top = -358.0
offset_right = 4563.0
offset_bottom = 267.0
color = Color(0, 0.39215687, 0, 1)
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_dd0lh")]
position = Vector2(4730, 39)
[node name="enemy" parent="." unique_id=1471932521 instance=ExtResource("2_bfxgj")]
position = Vector2(1304, -293)
[node name="enemy2" parent="." unique_id=631693255 instance=ExtResource("2_bfxgj")]
position = Vector2(3028, 91)
[node name="casset" parent="." unique_id=918954585 instance=ExtResource("3_dywbp")]
position = Vector2(4342, -430)
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1033326926]
collision_layer = 2
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=2093286666]
position = Vector2(3292.875, 355)
shape = SubResource("RectangleShape2D_aqe1g")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D" unique_id=162193919]
position = Vector2(1644.5, -61.5)
shape = SubResource("RectangleShape2D_yg5ta")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="StaticBody2D" unique_id=837904529]
position = Vector2(4385.5, -42)
shape = SubResource("RectangleShape2D_e270b")
[node name="Phonebooth" parent="." unique_id=1406086177 instance=ExtResource("5_dywbp")]
position = Vector2(6498, 150)
-9
View File
@@ -1,9 +0,0 @@
extends Node2D
@onready var phonephreak = preload("res://scenes/puzzles/phonephreak.tscn")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
-1
View File
@@ -1 +0,0 @@
uid://cogpyoqdfygvg
+20
View File
@@ -0,0 +1,20 @@
[gd_scene format=4 uid="uid://dt8htwdfrlsah"]
[ext_resource type="PackedScene" uid="uid://bjg48bhcju2" path="res://scenes/levels/base-level.tscn" id="1_ksju7"]
[node name="BaseLevel" unique_id=2017584106 instance=ExtResource("1_ksju7")]
[node name="player" parent="." index="0" unique_id=1596338883]
position = Vector2(42, -113)
[node name="TileMapLayer" parent="Visuals" parent_id_path=PackedInt32Array(1902043438) index="0" unique_id=1408843058]
tile_map_data = PackedByteArray("AABHABgAAAAEAAQAAABHABcAAAAFAAAAAABHABYAAAACAAMAAABHABUAAAAFAAAAAABHABQAAAACAAMAAABHABMAAAAFAAAAAABHABIAAAAFAAAAAABHABEAAAAFAAAAAABHABAAAAACAAMAAABHAA8AAAAFAAAAAABHAA4AAAACAAMAAABHAA0AAAAFAAAAAABHAAwAAAAFAAAAAABHAAsAAAAFAAAAAABHAAoAAAACAAMAAABHAAkAAAAFAAAAAABHAAgAAAACAAMAAABHAAcAAAACAAMAAABHAAYAAAACAAMAAABHAAUAAAAFAAAAAABHAAQAAAACAAMAAABHAAMAAAAFAAAAAABHAAIAAAAFAAAAAABHAAEAAAAFAAAAAABHAAAAAAABAAEAAABGABgAAAACAAQAAABGABcAAAAAAAMAAABGABYAAAABAAMAAABGABUAAAABAAMAAABGABQAAAAAAAMAAABGABMAAAABAAMAAABGABIAAAABAAMAAABGABEAAAABAAMAAABGABAAAAAAAAMAAABGAA8AAAABAAMAAABGAA4AAAABAAMAAABGAA0AAAAAAAMAAABGAAwAAAACAAEAAABGAAsAAAABAAMAAABGAAoAAAABAAMAAABGAAkAAAAAAAMAAABGAAgAAAABAAMAAABGAAcAAAAAAAMAAABGAAYAAAAAAAMAAABGAAUAAAACAAEAAABGAAQAAAAAAAMAAABGAAMAAAABAAMAAABGAAIAAAABAAMAAABGAAEAAAAAAAMAAABGAAAAAAAAAAEAAABFABgAAAADAAQAAABFABcAAAAAAAMAAABFABYAAAABAAMAAABFABUAAAABAAMAAABFABQAAAABAAMAAABFABMAAAAAAAMAAABFABIAAAABAAMAAABFABEAAAABAAMAAABFABAAAAAAAAMAAABFAA8AAAABAAMAAABFAA4AAAABAAMAAABFAA0AAAABAAMAAABFAAwAAAABAAMAAABFAAsAAAAAAAMAAABFAAoAAAAAAAMAAABFAAkAAAABAAMAAABFAAgAAAABAAMAAABFAAcAAAAAAAMAAABFAAYAAAAAAAMAAABFAAUAAAAAAAMAAABFAAQAAAAAAAMAAABFAAMAAAAAAAMAAABFAAIAAAABAAMAAABFAAEAAAAAAAMAAABFAAAAAAAAAAEAAABEABgAAAADAAQAAABEABcAAAAAAAMAAABEABYAAAAAAAMAAABEABUAAAAAAAMAAABEABQAAAABAAMAAABEABMAAAACAAAAAABEABIAAAABAAMAAABEABEAAAACAAEAAABEABAAAAAAAAMAAABEAA8AAAAAAAMAAABEAA4AAAAAAAMAAABEAA0AAAAAAAMAAABEAAwAAAAAAAMAAABEAAsAAAABAAMAAABEAAoAAAAAAAMAAABEAAkAAAABAAMAAABEAAgAAAAAAAMAAABEAAcAAAACAAAAAABEAAYAAAAAAAMAAABEAAUAAAABAAMAAABEAAQAAAAAAAMAAABEAAMAAAAAAAMAAABEAAIAAAAAAAMAAABEAAEAAAABAAMAAABEAAAAAAABAAAAAABDABgAAAACAAQAAABDABcAAAAAAAMAAABDABYAAAAAAAMAAABDABUAAAABAAMAAABDABQAAAAAAAMAAABDABMAAAABAAMAAABDABIAAAACAAEAAABDABEAAAABAAMAAABDABAAAAABAAMAAABDAA8AAAABAAMAAABDAA4AAAAAAAMAAABDAA0AAAABAAMAAABDAAwAAAAAAAMAAABDAAsAAAABAAMAAABDAAoAAAABAAMAAABDAAkAAAAAAAMAAABDAAgAAAABAAMAAABDAAcAAAAAAAMAAABDAAYAAAAAAAMAAABDAAUAAAAAAAMAAABDAAQAAAAAAAMAAABDAAMAAAAAAAMAAABDAAIAAAABAAMAAABDAAEAAAAAAAMAAABDAAAAAAABAAAAAABCABgAAAACAAQAAABCABcAAAABAAMAAABCABYAAAABAAMAAABCABUAAAABAAMAAABCABQAAAABAAMAAABCABMAAAABAAMAAABCABIAAAABAAMAAABCABEAAAAAAAMAAABCABAAAAAAAAMAAABCAA8AAAABAAMAAABCAA4AAAAAAAMAAABCAA0AAAABAAMAAABCAAwAAAABAAMAAABCAAsAAAAAAAMAAABCAAoAAAABAAMAAABCAAkAAAAAAAMAAABCAAgAAAACAAAAAABCAAcAAAABAAMAAABCAAYAAAAAAAMAAABCAAUAAAAAAAMAAABCAAQAAAAAAAMAAABCAAMAAAAAAAMAAABCAAIAAAAAAAMAAABCAAEAAAABAAMAAABCAAAAAAABAAAAAABBABgAAAADAAQAAABBABcAAAABAAMAAABBABYAAAAAAAMAAABBABUAAAABAAMAAABBABQAAAABAAMAAABBABMAAAABAAMAAABBABIAAAAAAAMAAABBABEAAAACAAAAAABBABAAAAAAAAMAAABBAA8AAAABAAMAAABBAA4AAAACAAEAAABBAA0AAAAAAAMAAABBAAwAAAACAAEAAABBAAsAAAABAAMAAABBAAoAAAAAAAMAAABBAAkAAAABAAMAAABBAAgAAAAAAAMAAABBAAcAAAAAAAMAAABBAAYAAAABAAMAAABBAAUAAAACAAAAAABBAAQAAAABAAMAAABBAAMAAAAAAAMAAABBAAIAAAAAAAMAAABBAAEAAAACAAAAAABBAAAAAAABAAAAAABAABgAAAACAAQAAABAABcAAAAAAAMAAABAABYAAAAAAAMAAABAABUAAAAAAAMAAABAABQAAAAAAAMAAABAABMAAAAAAAMAAABAABIAAAABAAMAAABAABEAAAABAAMAAABAABAAAAABAAMAAABAAA8AAAABAAMAAABAAA4AAAAAAAMAAABAAA0AAAAAAAMAAABAAAwAAAAAAAMAAABAAAsAAAABAAMAAABAAAoAAAAAAAMAAABAAAkAAAACAAEAAABAAAgAAAAAAAMAAABAAAcAAAABAAMAAABAAAYAAAABAAMAAABAAAUAAAABAAMAAABAAAQAAAABAAMAAABAAAMAAAAAAAMAAABAAAIAAAABAAMAAABAAAEAAAAAAAMAAABAAAAAAAABAAAAAAA/ABgAAAADAAQAAAA/ABcAAAAAAAMAAAA/ABYAAAAAAAMAAAA/ABUAAAAAAAMAAAA/ABQAAAAAAAMAAAA/ABMAAAACAAEAAAA/ABIAAAABAAMAAAA/ABEAAAAAAAMAAAA/ABAAAAACAAEAAAA/AA8AAAAAAAMAAAA/AA4AAAAAAAMAAAA/AA0AAAABAAMAAAA/AAwAAAAAAAMAAAA/AAsAAAABAAMAAAA/AAoAAAABAAMAAAA/AAkAAAABAAMAAAA/AAgAAAAAAAMAAAA/AAcAAAABAAMAAAA/AAYAAAACAAEAAAA/AAUAAAAAAAMAAAA/AAQAAAAAAAMAAAA/AAMAAAABAAMAAAA/AAIAAAAAAAMAAAA/AAEAAAAAAAMAAAA/AAAAAAABAAAAAAA+ABgAAAACAAQAAAA+ABcAAAAAAAMAAAA+ABYAAAABAAMAAAA+ABUAAAAAAAMAAAA+ABQAAAABAAMAAAA+ABMAAAABAAMAAAA+ABIAAAAAAAMAAAA+ABEAAAABAAMAAAA+ABAAAAAAAAMAAAA+AA8AAAABAAMAAAA+AA4AAAAAAAMAAAA+AA0AAAABAAMAAAA+AAwAAAABAAMAAAA+AAsAAAAAAAMAAAA+AAoAAAAAAAMAAAA+AAkAAAABAAMAAAA+AAgAAAAAAAMAAAA+AAcAAAAAAAMAAAA+AAYAAAABAAMAAAA+AAUAAAABAAMAAAA+AAQAAAAAAAMAAAA+AAMAAAABAAMAAAA+AAIAAAACAAEAAAA+AAEAAAACAAAAAAA+AAAAAAABAAAAAAA9ABgAAAACAAQAAAA9ABcAAAACAAAAAAA9ABYAAAAAAAMAAAA9ABUAAAABAAMAAAA9ABQAAAAAAAMAAAA9ABMAAAABAAMAAAA9ABIAAAABAAMAAAA9ABEAAAAAAAMAAAA9ABAAAAAAAAMAAAA9AA8AAAAAAAMAAAA9AA4AAAABAAMAAAA9AA0AAAAAAAMAAAA9AAwAAAABAAMAAAA9AAsAAAAAAAMAAAA9AAoAAAABAAMAAAA9AAkAAAAAAAMAAAA9AAgAAAACAAEAAAA9AAcAAAABAAMAAAA9AAYAAAAAAAMAAAA9AAUAAAABAAMAAAA9AAQAAAAAAAMAAAA9AAMAAAABAAMAAAA9AAIAAAAAAAMAAAA9AAEAAAAAAAMAAAA9AAAAAAABAAAAAAA8ABgAAAADAAQAAAA8ABcAAAAAAAMAAAA8ABYAAAABAAMAAAA8ABUAAAABAAMAAAA8ABQAAAABAAMAAAA8ABMAAAABAAMAAAA8ABIAAAABAAMAAAA8ABEAAAAAAAMAAAA8ABAAAAABAAMAAAA8AA8AAAABAAMAAAA8AA4AAAACAAAAAAA8AA0AAAABAAMAAAA8AAwAAAAAAAMAAAA8AAsAAAAAAAMAAAA8AAoAAAABAAMAAAA8AAkAAAABAAMAAAA8AAgAAAAAAAMAAAA8AAcAAAABAAMAAAA8AAYAAAABAAMAAAA8AAUAAAABAAMAAAA8AAQAAAABAAMAAAA8AAMAAAAAAAMAAAA8AAIAAAAAAAMAAAA8AAEAAAAAAAMAAAA8AAAAAAABAAAAAAA7ABgAAAACAAQAAAA7ABcAAAAAAAMAAAA7ABYAAAABAAMAAAA7ABUAAAAAAAMAAAA7ABQAAAABAAMAAAA7ABMAAAABAAMAAAA7ABIAAAABAAMAAAA7ABEAAAABAAMAAAA7ABAAAAABAAMAAAA7AA8AAAAAAAMAAAA7AALine truncated
[node name="enemy" parent="Enimies" parent_id_path=PackedInt32Array(317742684) index="0" unique_id=1471932521]
position = Vector2(1060, -172)
[node name="cassette" parent="Cassettes" parent_id_path=PackedInt32Array(257762099) index="0" unique_id=918954585]
position = Vector2(1689, -36)
[node name="Phonebooth" parent="Helpers" parent_id_path=PackedInt32Array(889215465) index="0" unique_id=1406086177]
position = Vector2(2211, -159)
-11
View File
@@ -1,11 +0,0 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
GloblaData.doing_puzzle = false
-1
View File
@@ -1 +0,0 @@
uid://c0kr0eqjtde28
-30
View File
@@ -1,30 +0,0 @@
[gd_scene format=3 uid="uid://b6tcpqx0h3qpy"]
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/player.tscn" id="1_3bmlt"]
[ext_resource type="Script" uid="uid://c0kr0eqjtde28" path="res://scenes/levels/level_2.gd" id="1_jm1iu"]
[ext_resource type="PackedScene" uid="uid://cplmcsbr2yajw" path="res://scenes/phonebooth.tscn" id="3_ra442"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(2007, 149)
[node name="level2" type="Node2D" unique_id=1987596250]
script = ExtResource("1_jm1iu")
[node name="ColorRect" type="ColorRect" parent="." unique_id=426446834]
offset_left = 8.0
offset_top = 865.0
offset_right = 2003.0
offset_bottom = 989.0
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=471962104]
collision_layer = 2
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1096663356]
position = Vector2(1010, 942)
shape = SubResource("RectangleShape2D_aqe1g")
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_3bmlt")]
[node name="Phonebooth" parent="." unique_id=1406086177 instance=ExtResource("3_ra442")]
position = Vector2(1893, 715)
-11
View File
@@ -1,11 +0,0 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$Speech.say("Lets [wave amp=20 freq=5]do this[/wave]!", $player.SpeechMarker, 2.0)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
-1
View File
@@ -1 +0,0 @@
uid://dor4c6g84387m
-90
View File
@@ -1,90 +0,0 @@
[gd_scene format=4 uid="uid://bus3pp7duv6p"]
[ext_resource type="Script" uid="uid://dor4c6g84387m" path="res://scenes/levels/level_3.gd" id="1_2bnyt"]
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/player.tscn" id="1_fmg3e"]
[ext_resource type="PackedScene" uid="uid://dxx6mxv6x5yws" path="res://scenes/enemy.tscn" id="2_ftfob"]
[ext_resource type="PackedScene" uid="uid://c17txy4vh4wka" path="res://scenes/casset.tscn" id="3_fkk1g"]
[ext_resource type="TileSet" uid="uid://5ba7b2qpwevo" path="res://assets/tiles/city.tres" id="4_ugcn1"]
[ext_resource type="PackedScene" uid="uid://cplmcsbr2yajw" path="res://scenes/phonebooth.tscn" id="5_pimnq"]
[ext_resource type="Texture2D" uid="uid://d4d36l4cv2asv" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/2.png" id="6_ftfob"]
[ext_resource type="Texture2D" uid="uid://c7sl7yd4751ll" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/3.png" id="7_pimnq"]
[ext_resource type="Texture2D" uid="uid://dg8d1t4ufpwed" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/5.png" id="9_n6eey"]
[ext_resource type="Texture2D" uid="uid://dmur5aswibpg2" path="res://assets/tiles/cyberpunk-market-street-pixel-art/2 Background/Day/1.png" id="9_pimnq"]
[ext_resource type="PackedScene" uid="uid://b6n7uq6bhkwo3" path="res://scenes/speech.tscn" id="11_n6eey"]
[node name="Level3" type="Node2D" unique_id=1807632894]
script = ExtResource("1_2bnyt")
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_fmg3e")]
z_index = 1
position = Vector2(45, -143)
[node name="enemy" parent="." unique_id=1471932521 instance=ExtResource("2_ftfob")]
position = Vector2(1179, -414)
[node name="enemy2" parent="." unique_id=1478424315 instance=ExtResource("2_ftfob")]
position = Vector2(2799, -312)
[node name="casset" parent="." unique_id=918954585 groups=["Cassets"] instance=ExtResource("3_fkk1g")]
z_index = 1
position = Vector2(4003, -26)
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=278682651]
z_index = -1
tile_map_data = PackedByteArray("AAB5ABcAAAACAAQAAAB5ABYAAAAAAAMAAAB5ABUAAAABAAMAAAB5ABQAAAAAAAMAAAB5ABMAAAABAAMAAAB5ABIAAAAAAAMAAAB5ABEAAAABAAMAAAB5ABAAAAAAAAMAAAB5AA8AAAACAAAAAAB5AA4AAAAAAAMAAAB5AA0AAAACAAEAAAB5AAwAAAAAAAMAAAB5AAsAAAABAAMAAAB5AAoAAAABAAMAAAB5AAkAAAAAAAMAAAB5AAgAAAABAAMAAAB5AAcAAAAAAAMAAAB5AAYAAAABAAMAAAB5AAUAAAAAAAMAAAB5AAQAAAACAAEAAAB5AAMAAAAAAAMAAAB5AAIAAAABAAMAAAB5AAEAAAABAAMAAAB5AAAAAAABAAAAAAB4ABcAAAADAAQAAAB4ABYAAAABAAMAAAB4ABUAAAABAAMAAAB4ABQAAAAAAAMAAAB4ABMAAAAAAAMAAAB4ABIAAAABAAMAAAB4ABEAAAAAAAMAAAB4ABAAAAAAAAMAAAB4AA8AAAAAAAMAAAB4AA4AAAAAAAMAAAB4AA0AAAAAAAMAAAB4AAwAAAAAAAMAAAB4AAsAAAABAAMAAAB4AAoAAAAAAAMAAAB4AAkAAAABAAMAAAB4AAgAAAABAAMAAAB4AAcAAAAAAAMAAAB4AAYAAAABAAMAAAB4AAUAAAAAAAMAAAB4AAQAAAAAAAMAAAB4AAMAAAAAAAMAAAB4AAIAAAAAAAMAAAB4AAEAAAABAAMAAAB4AAAAAAAAAAEAAAB3ABcAAAADAAQAAAB3ABYAAAABAAMAAAB3ABUAAAAAAAMAAAB3ABQAAAAAAAMAAAB3ABMAAAAAAAMAAAB3ABIAAAABAAMAAAB3ABEAAAAAAAMAAAB3ABAAAAAAAAMAAAB3AA8AAAABAAMAAAB3AA4AAAABAAMAAAB3AA0AAAABAAMAAAB3AAwAAAABAAMAAAB3AAsAAAAAAAMAAAB3AAoAAAABAAMAAAB3AAkAAAABAAMAAAB3AAgAAAABAAMAAAB3AAcAAAABAAMAAAB3AAYAAAABAAMAAAB3AAUAAAACAAEAAAB3AAQAAAAAAAMAAAB3AAMAAAACAAAAAAB3AAIAAAABAAMAAAB3AAEAAAAAAAMAAAB3AAAAAAABAAAAAAB2ABcAAAADAAQAAAB2ABYAAAAAAAMAAAB2ABUAAAABAAMAAAB2ABQAAAABAAMAAAB2ABMAAAABAAMAAAB2ABIAAAACAAEAAAB2ABEAAAABAAMAAAB2ABAAAAABAAMAAAB2AA8AAAAAAAMAAAB2AA4AAAABAAMAAAB2AA0AAAACAAEAAAB2AAwAAAABAAMAAAB2AAsAAAABAAMAAAB2AAoAAAAAAAMAAAB2AAkAAAAAAAMAAAB2AAgAAAAAAAMAAAB2AAcAAAAAAAMAAAB2AAYAAAABAAMAAAB2AAUAAAABAAMAAAB2AAQAAAABAAMAAAB2AAMAAAABAAMAAAB2AAIAAAAAAAMAAAB2AAEAAAABAAMAAAB2AAAAAAABAAAAAAB1ABcAAAACAAQAAAB1ABYAAAABAAMAAAB1ABUAAAACAAEAAAB1ABQAAAABAAMAAAB1ABMAAAABAAMAAAB1ABIAAAAAAAMAAAB1ABEAAAABAAMAAAB1ABAAAAABAAMAAAB1AA8AAAABAAMAAAB1AA4AAAABAAMAAAB1AA0AAAAAAAMAAAB1AAwAAAABAAMAAAB1AAsAAAABAAMAAAB1AAoAAAABAAMAAAB1AAkAAAABAAMAAAB1AAgAAAABAAMAAAB1AAcAAAABAAMAAAB1AAYAAAAAAAMAAAB1AAUAAAABAAMAAAB1AAQAAAAAAAMAAAB1AAMAAAAAAAMAAAB1AAIAAAACAAAAAAB1AAEAAAAAAAMAAAB1AAAAAAABAAAAAAB0ABcAAAADAAQAAAB0ABYAAAAAAAMAAAB0ABUAAAABAAMAAAB0ABQAAAAAAAMAAAB0ABMAAAABAAMAAAB0ABIAAAABAAMAAAB0ABEAAAACAAEAAAB0ABAAAAABAAMAAAB0AA8AAAAAAAMAAAB0AA4AAAAAAAMAAAB0AA0AAAABAAMAAAB0AAwAAAABAAMAAAB0AAsAAAABAAMAAAB0AAoAAAAAAAMAAAB0AAkAAAAAAAMAAAB0AAgAAAAAAAMAAAB0AAcAAAAAAAMAAAB0AAYAAAAAAAMAAAB0AAUAAAABAAMAAAB0AAQAAAABAAMAAAB0AAMAAAAAAAMAAAB0AAIAAAAAAAMAAAB0AAEAAAACAAEAAAB0AAAAAAABAAAAAABzABcAAAADAAQAAABzABYAAAAAAAMAAABzABUAAAABAAMAAABzABQAAAAAAAMAAABzABMAAAAAAAMAAABzABIAAAAAAAMAAABzABEAAAABAAMAAABzABAAAAABAAMAAABzAA8AAAABAAMAAABzAA4AAAACAAAAAABzAA0AAAAAAAMAAABzAAwAAAACAAAAAABzAAsAAAABAAMAAABzAAoAAAABAAMAAABzAAkAAAAAAAMAAABzAAgAAAABAAMAAABzAAcAAAABAAMAAABzAAYAAAAAAAMAAABzAAUAAAABAAMAAABzAAQAAAABAAMAAABzAAMAAAABAAMAAABzAAIAAAABAAMAAABzAAEAAAABAAMAAABzAAAAAAABAAAAAAByABcAAAADAAQAAAByABYAAAAAAAMAAAByABUAAAAAAAMAAAByABQAAAABAAMAAAByABMAAAABAAMAAAByABIAAAAAAAMAAAByABEAAAAAAAMAAAByABAAAAABAAMAAAByAA8AAAAAAAMAAAByAA4AAAABAAMAAAByAA0AAAAAAAMAAAByAAwAAAAAAAMAAAByAAsAAAABAAMAAAByAAoAAAAAAAMAAAByAAkAAAAAAAMAAAByAAgAAAAAAAMAAAByAAcAAAAAAAMAAAByAAYAAAAAAAMAAAByAAUAAAAAAAMAAAByAAQAAAABAAMAAAByAAMAAAABAAMAAAByAAIAAAAAAAMAAAByAAEAAAAAAAMAAAByAAAAAAABAAAAAABxABcAAAADAAQAAABxABYAAAAAAAMAAABxABUAAAABAAMAAABxABQAAAAAAAMAAABxABMAAAAAAAMAAABxABIAAAABAAMAAABxABEAAAAAAAMAAABxABAAAAABAAMAAABxAA8AAAAAAAMAAABxAA4AAAABAAMAAABxAA0AAAACAAAAAABxAAwAAAAAAAMAAABxAAsAAAABAAMAAABxAAoAAAAAAAMAAABxAAkAAAAAAAMAAABxAAgAAAAAAAMAAABxAAcAAAAAAAMAAABxAAYAAAAAAAMAAABxAAUAAAAAAAMAAABxAAQAAAAAAAMAAABxAAMAAAAAAAMAAABxAAIAAAAAAAMAAABxAAEAAAAAAAMAAABxAAAAAAABAAAAAABwABcAAAACAAQAAABwABYAAAABAAMAAABwABUAAAABAAMAAABwABQAAAACAAEAAABwABMAAAAAAAMAAABwABIAAAAAAAMAAABwABEAAAAAAAMAAABwABAAAAAAAAMAAABwAA8AAAABAAMAAABwAA4AAAABAAMAAABwAA0AAAAAAAMAAABwAAwAAAABAAMAAABwAAsAAAABAAMAAABwAAoAAAABAAMAAABwAAkAAAAAAAMAAABwAAgAAAAAAAMAAABwAAcAAAABAAMAAABwAAYAAAABAAMAAABwAAUAAAABAAMAAABwAAQAAAABAAMAAABwAAMAAAABAAMAAABwAAIAAAABAAMAAABwAAEAAAABAAMAAABwAAAAAAABAAAAAABvABcAAAADAAQAAABvABYAAAAAAAMAAABvABUAAAABAAMAAABvABQAAAAAAAMAAABvABMAAAABAAMAAABvABIAAAABAAMAAABvABEAAAAAAAMAAABvABAAAAAAAAMAAABvAA8AAAABAAMAAABvAA4AAAABAAMAAABvAA0AAAAAAAMAAABvAAwAAAAAAAMAAABvAAsAAAAAAAMAAABvAAoAAAABAAMAAABvAAkAAAABAAMAAABvAAgAAAAAAAMAAABvAAcAAAAAAAMAAABvAAYAAAABAAMAAABvAAUAAAAAAAMAAABvAAQAAAABAAMAAABvAAMAAAAAAAMAAABvAAIAAAAAAAMAAABvAAEAAAAAAAMAAABvAAAAAAABAAAAAABuABcAAAADAAQAAABuABYAAAAAAAMAAABuABUAAAAAAAMAAABuABQAAAABAAMAAABuABMAAAAAAAMAAABuABIAAAAAAAMAAABuABEAAAABAAMAAABuABAAAAAAAAMAAABuAA8AAAAAAAMAAABuAA4AAAAAAAMAAABuAA0AAAABAAMAAABuAAwAAAAAAAMAAABuAAsAAAABAAMAAABuAAoAAAAAAAMAAABuAAkAAAAAAAMAAABuAAgAAAABAAMAAABuAAcAAAAAAAMAAABuAAYAAAABAAMAAABuAAUAAAAAAAMAAABuAAQAAAAAAAMAAABuAAMAAAAAAAMAAABuAAIAAAABAAMAAABuAAEAAAABAAMAAABuAAAAAAABAAAAAABtABcAAAACAAQAAABtABYAAAAAAAMAAABtABUAAAABAAMAAABtABQAAAACAAEAAABtABMAAAABAAMAAABtABIAAAAAAAMAAABtABEAAAABAAMAAABtABAAAAABAAMAAABtAA8AAAACAAAAAABtAA4AAAACAAEAAABtAA0AAAAAAAMAAABtAAwAAAABAAMAAABtAAsAAAAAAAMAAABtAAoAAAABAAMAAABtAAkAAAAAAAMAAABtAAgAAAABAAMAAABtAAcAAAABAAMAAABtAAYAAAACAAAAAABtAAUAAAABAAMAAABtAAQAAAABAAMAAABtAAMAAAABAAMAAABtAAIAAAAAAAMAAABtAALine truncated
tile_set = ExtResource("4_ugcn1")
use_kinematic_bodies = true
[node name="Phonebooth" parent="." unique_id=1406086177 instance=ExtResource("5_pimnq")]
position = Vector2(4817, -147)
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=863982624]
layer = -1
[node name="Sprite2D" type="Sprite2D" parent="CanvasLayer" unique_id=783313880]
z_index = -4
position = Vector2(1009, 569)
scale = Vector2(3.509259, 3.5092592)
texture = ExtResource("9_pimnq")
[node name="Parallax2D" type="Parallax2D" parent="." unique_id=722717076]
scroll_scale = Vector2(0.95, 0.95)
scroll_offset = Vector2(0.1, 0)
repeat_size = Vector2(1364, 0)
repeat_times = 4
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D" unique_id=1084548177]
z_index = -2
position = Vector2(2050.8003, -331)
scale = Vector2(2.368827, 2.368827)
texture = ExtResource("6_ftfob")
[node name="Parallax2D2" type="Parallax2D" parent="." unique_id=670001325]
scroll_scale = Vector2(0.9, 0.9)
scroll_offset = Vector2(0.1, 0)
repeat_size = Vector2(1364, 0)
repeat_times = 4
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D2" unique_id=1579009250]
z_index = -2
position = Vector2(2048.8, -211)
scale = Vector2(2.368827, 2.368827)
texture = ExtResource("7_pimnq")
[node name="Parallax2D4" type="Parallax2D" parent="." unique_id=585892213]
scroll_scale = Vector2(0.85, 0.85)
scroll_offset = Vector2(0.1, 0)
repeat_size = Vector2(1364, 0)
repeat_times = 4
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D4" unique_id=557040733]
z_index = -2
position = Vector2(2047.8, -202.00003)
scale = Vector2(2.368827, 2.368827)
texture = ExtResource("9_n6eey")
[node name="Speech" parent="." unique_id=1002813128 instance=ExtResource("11_n6eey")]
[node name="casset2" parent="." unique_id=1394348662 groups=["Cassets"] instance=ExtResource("3_fkk1g")]
z_index = 1
position = Vector2(3628, -26)
@@ -23,7 +23,7 @@ const PhoneSounds = [
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready() -> void: func _ready() -> void:
$Led.modulate.a = 0.0 $Led.modulate.a = 0.0
GloblaData.level += 1 GlobalData.level += 1
var origin = $ButtonOrigin.position var origin = $ButtonOrigin.position
var offset = Vector2(126, 125) var offset = Vector2(126, 125)
$Button0.position.y = origin.y + 3 * offset.y $Button0.position.y = origin.y + 3 * offset.y
@@ -69,7 +69,7 @@ func wrong():
_tween.finished.connect(reset) _tween.finished.connect(reset)
func right(): func right():
get_tree().change_scene_to_file("res://scenes/levels/level_%s.tscn" % GloblaData.level) get_tree().change_scene_to_file("res://scenes/levels/level_%s.tscn" % GlobalData.level)
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void: func _process(delta: float) -> void:
File renamed without changes.
+1 -1
View File
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://btj7tpfvqfelu"] [gd_scene format=3 uid="uid://btj7tpfvqfelu"]
[ext_resource type="Script" uid="uid://c7fhd1eqlgwr4" path="res://scripts/Phonephreak.gd" id="1_knn0u"] [ext_resource type="Script" uid="uid://c7fhd1eqlgwr4" path="res://scenes/puzzles/phonephreak.gd" id="1_knn0u"]
[ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="2_bg4gc"] [ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="2_bg4gc"]
[ext_resource type="Texture2D" uid="uid://x0lbagpjbmqi" path="res://assets/sprites/led.png" id="3_4f8pu"] [ext_resource type="Texture2D" uid="uid://x0lbagpjbmqi" path="res://assets/sprites/led.png" id="3_4f8pu"]
[ext_resource type="Texture2D" uid="uid://hbkkhhlechol" path="res://assets/sprites/phonephreak.png" id="3_ba2os"] [ext_resource type="Texture2D" uid="uid://hbkkhhlechol" path="res://assets/sprites/phonephreak.png" id="3_ba2os"]
-35
View File
@@ -1,35 +0,0 @@
[gd_scene format=3 uid="uid://d1xirc54wud0s"]
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/player.tscn" id="1_g7g4h"]
[ext_resource type="Script" uid="uid://v7bcqfwryutg" path="res://scripts/test_scene.gd" id="1_j8ivh"]
[ext_resource type="PackedScene" uid="uid://dxx6mxv6x5yws" path="res://scenes/enemy.tscn" id="2_j8ivh"]
[ext_resource type="PackedScene" uid="uid://c17txy4vh4wka" path="res://scenes/casset.tscn" id="4_7ddre"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(1116.25, 73)
[node name="test_scene" type="Node2D" unique_id=1970054744]
script = ExtResource("1_j8ivh")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1255479846]
offset_left = 2.0
offset_top = 530.0
offset_right = 1121.0
offset_bottom = 606.0
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_g7g4h")]
position = Vector2(64, 386)
[node name="floor" type="StaticBody2D" parent="." unique_id=306980091]
collision_layer = 2
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="floor" unique_id=1146724072]
position = Vector2(561.125, 569)
shape = SubResource("RectangleShape2D_aqe1g")
[node name="enemy" parent="." unique_id=1471932521 instance=ExtResource("2_j8ivh")]
position = Vector2(380, 334)
[node name="casset" parent="." unique_id=1213318639 instance=ExtResource("4_7ddre")]
position = Vector2(1018, 456)
-26
View File
@@ -1,26 +0,0 @@
extends CharacterBody2D
var SPEED = Vector2(5, 0)
const JUMP_VELOCITY = -400.0
func _ready() -> void:
$Timer.start()
func _physics_process(delta: float) -> void:
velocity += get_gravity() * delta
move_and_slide()
patrol()
func patrol():
position += SPEED
func _on_timer_timeout() -> void:
SPEED = -SPEED
$Timer.start()
-1
View File
@@ -1 +0,0 @@
uid://2jmspsmp5wpm
@@ -10,3 +10,4 @@ var doing_puzzle: bool = false
var hurtable = false var hurtable = false
var weapon = 1 var weapon = 1
var level = 1 var level = 1
var level2 = 1
File renamed without changes.
-1
View File
@@ -1 +0,0 @@
uid://v7bcqfwryutg