Merge branch 'main' of http://git.nanoyagi.com/NanoYagi/JumpRopeOldTech
ci/woodpecker/push/woodpecker Pipeline was successful
No files matched your search
@@ -0,0 +1,49 @@
|
|||||||
|
[gd_scene format=3 uid="uid://bcu7ftukipiyy"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d0lvnnd3mqfxh" path="res://old_computer.gd" id="1_6jyhx"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://brppyauh1xyif" path="res://art/computer/background.png" id="2_2wyuv"]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2wyuv"]
|
||||||
|
bg_color = Color(0.28627452, 0.25490198, 0.22745098, 1)
|
||||||
|
|
||||||
|
[node name="OldComputer" type="CanvasLayer" unique_id=1944134941]
|
||||||
|
script = ExtResource("1_6jyhx")
|
||||||
|
|
||||||
|
[node name="BackgroundPanel" type="Panel" parent="." unique_id=1876350245]
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="ForegroundPanel" type="Panel" parent="BackgroundPanel" unique_id=1797726425]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxFlat_2wyuv")
|
||||||
|
|
||||||
|
[node name="ScreenPanel" type="Panel" parent="BackgroundPanel/ForegroundPanel" unique_id=528166777]
|
||||||
|
layout_mode = 0
|
||||||
|
offset_left = 82.0
|
||||||
|
offset_top = 42.0
|
||||||
|
offset_right = 122.81183
|
||||||
|
offset_bottom = 85.64739
|
||||||
|
scale = Vector2(27.099607, 14.530945)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="BackgroundPanel" unique_id=856709145]
|
||||||
|
position = Vector2(618, 349)
|
||||||
|
texture = ExtResource("2_2wyuv")
|
||||||
|
|
||||||
|
[node name="ConsoleText" type="RichTextLabel" parent="." unique_id=715961645]
|
||||||
|
offset_left = 150.0
|
||||||
|
offset_top = 105.0
|
||||||
|
offset_right = 1102.0
|
||||||
|
offset_bottom = 652.0
|
||||||
|
text = ">> Pharaoh OS 2000 Boot Sequence
|
||||||
|
>> WARN: Detected anomalies!
|
||||||
|
>> WARN: Memory integrity at %d%%!
|
||||||
|
>> User: Please load backup data disk (1 of 4)
|
||||||
|
>> Player: Press interact [E] or jump [Space] to exit."
|
||||||
|
After Width: | Height: | Size: 130 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bfqc03jxmymdy"
|
||||||
|
path="res://.godot/imported/Pharaoh.png-b23c3a0f85bea8b766379c1c8242fe8c.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/Pharaoh.png"
|
||||||
|
dest_files=["res://.godot/imported/Pharaoh.png-b23c3a0f85bea8b766379c1c8242fe8c.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/high_quality_mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
mipmaps/preserve_alpha_test_coverage=false
|
||||||
|
mipmaps/alpha_test_threshold=0.5
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
After Width: | Height: | Size: 70 KiB |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://brppyauh1xyif"
|
||||||
|
path="res://.godot/imported/background.png-26b98ec3cc5bed410faa484fde97db25.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/computer/background.png"
|
||||||
|
dest_files=["res://.godot/imported/background.png-26b98ec3cc5bed410faa484fde97db25.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/high_quality_mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
mipmaps/preserve_alpha_test_coverage=false
|
||||||
|
mipmaps/alpha_test_threshold=0.5
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
After Width: | Height: | Size: 93 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://csa0jku42e2q3"
|
||||||
|
path="res://.godot/imported/1.png-be292bb4085d2b3fba4748c9259c4dbd.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/numbers/1.png"
|
||||||
|
dest_files=["res://.godot/imported/1.png-be292bb4085d2b3fba4748c9259c4dbd.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/high_quality_mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
mipmaps/preserve_alpha_test_coverage=false
|
||||||
|
mipmaps/alpha_test_threshold=0.5
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
After Width: | Height: | Size: 98 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://5p4gwkndi1un"
|
||||||
|
path="res://.godot/imported/2.png-7eebbc475a29d976e42436727060df80.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/numbers/2.png"
|
||||||
|
dest_files=["res://.godot/imported/2.png-7eebbc475a29d976e42436727060df80.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/high_quality_mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
mipmaps/preserve_alpha_test_coverage=false
|
||||||
|
mipmaps/alpha_test_threshold=0.5
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
After Width: | Height: | Size: 97 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dtsrcmnqjjuwq"
|
||||||
|
path="res://.godot/imported/3.png-ebfbf280803cfb699406cf40ae0d5948.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/numbers/3.png"
|
||||||
|
dest_files=["res://.godot/imported/3.png-ebfbf280803cfb699406cf40ae0d5948.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/high_quality_mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
mipmaps/preserve_alpha_test_coverage=false
|
||||||
|
mipmaps/alpha_test_threshold=0.5
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
After Width: | Height: | Size: 117 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c1m4qu2pobdhc"
|
||||||
|
path="res://.godot/imported/4.png-3ede4dd94b7768fa3734a425aa677929.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/numbers/4.png"
|
||||||
|
dest_files=["res://.godot/imported/4.png-3ede4dd94b7768fa3734a425aa677929.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/high_quality_mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
mipmaps/preserve_alpha_test_coverage=false
|
||||||
|
mipmaps/alpha_test_threshold=0.5
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
After Width: | Height: | Size: 304 B |
@@ -0,0 +1,11 @@
|
|||||||
|
extends Pickup
|
||||||
|
|
||||||
|
@export var disk_num: int
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$DiskNumber.texture = load("res://art/numbers/%d.png" % disk_num)
|
||||||
|
|
||||||
|
func _on_picked_up() -> void:
|
||||||
|
%Player2D.give_disk(disk_num)
|
||||||
|
%Player2D.give_objective("disk%d" % disk_num, "Install data disk %d" % disk_num)
|
||||||
|
print("Picked up disk ", disk_num)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://d1uqjaar8v5vi
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
[gd_scene format=3 uid="uid://b1e1nx60ng3tq"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1uqjaar8v5vi" path="res://disk.gd" id="1_olhq3"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b0l3mbvieqbnb" path="res://art/empty_tablet.png" id="3_olhq3"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://f2xmq6cgiiwj" path="res://sound/coin.wav" id="4_5qg3x"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6qpsl"]
|
||||||
|
radius = 7.0
|
||||||
|
height = 20.0
|
||||||
|
|
||||||
|
[node name="Disk" type="Node2D" unique_id=1739014101]
|
||||||
|
script = ExtResource("1_olhq3")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=813041394]
|
||||||
|
texture = ExtResource("3_olhq3")
|
||||||
|
|
||||||
|
[node name="Area2D" type="Area2D" parent="." unique_id=170499029]
|
||||||
|
scale = Vector2(1.3291091, 1)
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
||||||
|
shape = SubResource("CapsuleShape2D_6qpsl")
|
||||||
|
|
||||||
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=1778061188]
|
||||||
|
stream = ExtResource("4_5qg3x")
|
||||||
|
volume_db = 1.0
|
||||||
|
|
||||||
|
[node name="DiskNumber" type="Sprite2D" parent="." unique_id=1317449795]
|
||||||
|
|
||||||
|
[connection signal="picked_up" from="." to="." method="_on_picked_up"]
|
||||||
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|
||||||
@@ -17,7 +17,6 @@ dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.cte
|
|||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
compress/high_quality=false
|
compress/high_quality=false
|
||||||
compress/high_quality_mode=0
|
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/uastc_level=0
|
compress/uastc_level=0
|
||||||
compress/rdo_quality_loss=0.0
|
compress/rdo_quality_loss=0.0
|
||||||
@@ -26,8 +25,6 @@ compress/normal_map=0
|
|||||||
compress/channel_pack=0
|
compress/channel_pack=0
|
||||||
mipmaps/generate=false
|
mipmaps/generate=false
|
||||||
mipmaps/limit=-1
|
mipmaps/limit=-1
|
||||||
mipmaps/preserve_alpha_test_coverage=false
|
|
||||||
mipmaps/alpha_test_threshold=0.5
|
|
||||||
roughness/mode=0
|
roughness/mode=0
|
||||||
roughness/src_normal=""
|
roughness/src_normal=""
|
||||||
process/channel_remap/red=0
|
process/channel_remap/red=0
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
class_name Interactable
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
signal interacted
|
||||||
|
|
||||||
|
var checked_teleport
|
||||||
|
var telecam_speed_mult = 4
|
||||||
|
var enabled = true
|
||||||
|
var cooldown = 2
|
||||||
|
var is_interactable = false
|
||||||
|
|
||||||
|
func disable():
|
||||||
|
enabled = false
|
||||||
|
$Sprite2D.modulate = Color.DARK_ORANGE
|
||||||
|
|
||||||
|
func enable():
|
||||||
|
enabled = true
|
||||||
|
$Sprite2D.modulate = Color.WHITE
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if not (is_interactable and Input.is_action_just_released("interact")):
|
||||||
|
return
|
||||||
|
|
||||||
|
interacted.emit()
|
||||||
|
|
||||||
|
func _physics_process(delta: float) -> void:
|
||||||
|
pass
|
||||||
|
|
||||||
|
func _on_approach(body) -> void:
|
||||||
|
if body!=%Player2D:
|
||||||
|
return
|
||||||
|
is_interactable = true
|
||||||
|
|
||||||
|
func _on_abandon(body) -> void:
|
||||||
|
if body!=%Player2D:
|
||||||
|
return
|
||||||
|
is_interactable = false
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://dbg7h6gp6hun8
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
extends RichTextLabel
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
var new_text = "OBJECTIVES:\n"
|
||||||
|
for objective in %Player2D.objectives:
|
||||||
|
new_text = new_text + %Player2D.objectives[objective] + "\n"
|
||||||
|
text = new_text
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://oyyhhy1gemg0
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
extends CanvasLayer
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$ConsoleText.text = $ConsoleText.text % %Pharaoh.get_memory_integrity()
|
||||||
|
open()
|
||||||
|
|
||||||
|
func open() -> void:
|
||||||
|
visible = true
|
||||||
|
|
||||||
|
func printline(line: String) -> void:
|
||||||
|
open()
|
||||||
|
$ConsoleText.text += "\n" + line
|
||||||
|
|
||||||
|
func close() -> void:
|
||||||
|
visible = false
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://d0lvnnd3mqfxh
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
extends Interactable
|
||||||
|
|
||||||
|
var disks_wanted = [1, 2, 3, 4]
|
||||||
|
var disks_loaded = []
|
||||||
|
|
||||||
|
var starting_integrity = 2
|
||||||
|
var total_integrity = starting_integrity + len(disks_wanted)
|
||||||
|
|
||||||
|
func load_disk(disk_num: int) -> bool:
|
||||||
|
if !disk_num or (disk_num in disks_loaded):
|
||||||
|
return false
|
||||||
|
|
||||||
|
disks_loaded.push_back(disk_num)
|
||||||
|
disks_wanted.remove_at(disks_wanted.find(disk_num))
|
||||||
|
return true
|
||||||
|
|
||||||
|
func get_memory_integrity():
|
||||||
|
return 100.0 / total_integrity * (starting_integrity + len(disks_loaded))
|
||||||
|
|
||||||
|
func _on_interacted() -> void:
|
||||||
|
var wanted_disk = disks_wanted.front()
|
||||||
|
if not %Player2D.take_disk(wanted_disk):
|
||||||
|
return
|
||||||
|
|
||||||
|
if not load_disk(wanted_disk):
|
||||||
|
return
|
||||||
|
|
||||||
|
%Player2D.complete_objective("disk%d" % wanted_disk)
|
||||||
|
print("Loaded up disk ", wanted_disk)
|
||||||
|
%OldComputer.printline(
|
||||||
|
">> Loaded data disk %d (of %d). Memory integrity now at %d%%" %
|
||||||
|
[wanted_disk, len(disks_wanted) + len(disks_loaded), get_memory_integrity()]
|
||||||
|
)
|
||||||
|
|
||||||
|
wanted_disk = disks_wanted.front()
|
||||||
|
if (not wanted_disk) or %Player2D.has_disk(wanted_disk):
|
||||||
|
return
|
||||||
|
|
||||||
|
%Player2D.give_objective("disk%d" % wanted_disk, "Locate data disk %d" % wanted_disk)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://bh588bpddschq
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
[gd_scene format=3 uid="uid://dr8h8xij3qw2h"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bh588bpddschq" path="res://pharaoh.gd" id="1_mt7kg"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b2nldodte5p6s" path="res://art/sarco_closed.png" id="2_mt7kg"]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eumkw"]
|
||||||
|
size = Vector2(26, 32)
|
||||||
|
|
||||||
|
[node name="Pharaoh" type="Node2D" unique_id=1201409437]
|
||||||
|
script = ExtResource("1_mt7kg")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
|
||||||
|
texture = ExtResource("2_mt7kg")
|
||||||
|
|
||||||
|
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/Area2D" unique_id=1560168165]
|
||||||
|
position = Vector2(0, -8)
|
||||||
|
shape = SubResource("RectangleShape2D_eumkw")
|
||||||
|
|
||||||
|
[connection signal="interacted" from="." to="." method="_on_interacted"]
|
||||||
|
[connection signal="body_entered" from="Sprite2D/Area2D" to="." method="_on_approach"]
|
||||||
|
[connection signal="body_exited" from="Sprite2D/Area2D" to="." method="_on_abandon"]
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
class_name Pickup
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
signal picked_up
|
||||||
|
|
||||||
|
# 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:
|
||||||
|
pass
|
||||||
|
|
||||||
|
func on_contact(body: Node2D) -> void:
|
||||||
|
print(body)
|
||||||
|
$AudioStreamPlayer2D.play(0)
|
||||||
|
visible = false
|
||||||
|
picked_up.emit()
|
||||||
|
await get_tree().create_timer(0.2).timeout
|
||||||
|
queue_free()
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://bun3ype8fkpv8
|
||||||
@@ -17,6 +17,9 @@ var dashing = false
|
|||||||
var death_threshold = 1000
|
var death_threshold = 1000
|
||||||
var coins = 0
|
var coins = 0
|
||||||
|
|
||||||
|
var data_disks = []
|
||||||
|
var objectives = {}
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
|
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
|
||||||
|
|
||||||
@@ -36,6 +39,28 @@ func refresh_jump(new_jumps):
|
|||||||
if jumps > 0:
|
if jumps > 0:
|
||||||
$Jetpack/JumpIndicator.show()
|
$Jetpack/JumpIndicator.show()
|
||||||
|
|
||||||
|
func give_disk(disk_num: int) -> void:
|
||||||
|
data_disks.push_back(disk_num)
|
||||||
|
|
||||||
|
func take_disk(disk_num) -> bool:
|
||||||
|
if not has_disk(disk_num):
|
||||||
|
return false
|
||||||
|
|
||||||
|
data_disks.remove_at(data_disks.find(disk_num))
|
||||||
|
return true
|
||||||
|
|
||||||
|
func has_disk(disk_num: int) -> bool:
|
||||||
|
return disk_num in data_disks
|
||||||
|
|
||||||
|
func give_objective(id: String, description: String) -> void:
|
||||||
|
objectives[id] = description
|
||||||
|
|
||||||
|
func has_objective(id: String) -> bool:
|
||||||
|
return objectives.has(id)
|
||||||
|
|
||||||
|
func complete_objective(id: String) -> bool:
|
||||||
|
return objectives.erase(id)
|
||||||
|
|
||||||
func on_teleport():
|
func on_teleport():
|
||||||
refresh_jump(1)
|
refresh_jump(1)
|
||||||
teleport_cooldown = 1
|
teleport_cooldown = 1
|
||||||
@@ -73,7 +98,12 @@ func _process(delta: float) -> void:
|
|||||||
if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")):
|
if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")):
|
||||||
get_tree().reload_current_scene()
|
get_tree().reload_current_scene()
|
||||||
|
|
||||||
|
if Input.is_action_just_released("interact"):
|
||||||
|
%OldComputer.close()
|
||||||
|
|
||||||
if Input.is_action_just_pressed("jump"):
|
if Input.is_action_just_pressed("jump"):
|
||||||
|
%OldComputer.close()
|
||||||
|
|
||||||
if is_on_floor():
|
if is_on_floor():
|
||||||
velocity.y = JUMP_VELOCITY
|
velocity.y = JUMP_VELOCITY
|
||||||
elif !is_on_floor() and jumps >= 1:
|
elif !is_on_floor() and jumps >= 1:
|
||||||
@@ -89,6 +119,9 @@ func _process(delta: float) -> void:
|
|||||||
#velocity.y = 0
|
#velocity.y = 0
|
||||||
#velocity.x = 0
|
#velocity.x = 0
|
||||||
|
|
||||||
|
if %OldComputer.visible:
|
||||||
|
return
|
||||||
|
|
||||||
var direction = Input.get_axis("move_left","move_right")
|
var direction = Input.get_axis("move_left","move_right")
|
||||||
|
|
||||||
if direction < 0:
|
if direction < 0:
|
||||||
|
|||||||
@@ -364,6 +364,27 @@ controller_restart_right={
|
|||||||
"script": null
|
"script": null
|
||||||
)]
|
)]
|
||||||
}
|
}
|
||||||
|
interact={
|
||||||
|
"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": 69,
|
||||||
|
"key_label": 0,
|
||||||
|
"unicode": 101,
|
||||||
|
"location": 0,
|
||||||
|
"echo": false,
|
||||||
|
"script": null
|
||||||
|
)]
|
||||||
|
}
|
||||||
|
|
||||||
[input_devices]
|
[input_devices]
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,15 @@
|
|||||||
[ext_resource type="PackedScene" uid="uid://bos6oh7nwyeca" path="res://vertical_long_block.tscn" id="4_pkg7o"]
|
[ext_resource type="PackedScene" uid="uid://bos6oh7nwyeca" path="res://vertical_long_block.tscn" id="4_pkg7o"]
|
||||||
[ext_resource type="PackedScene" uid="uid://biot4cuwgohvo" path="res://longer_block.tscn" id="6_dwbse"]
|
[ext_resource type="PackedScene" uid="uid://biot4cuwgohvo" path="res://longer_block.tscn" id="6_dwbse"]
|
||||||
[ext_resource type="PackedScene" uid="uid://kstmxoa4dx55" path="res://coin.tscn" id="8_ioo17"]
|
[ext_resource type="PackedScene" uid="uid://kstmxoa4dx55" path="res://coin.tscn" id="8_ioo17"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b1e1nx60ng3tq" path="res://disk.tscn" id="10_2u3nc"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dbk4f76ux6dsv" path="res://wallspike.tscn" id="10_hiqwa"]
|
[ext_resource type="PackedScene" uid="uid://dbk4f76ux6dsv" path="res://wallspike.tscn" id="10_hiqwa"]
|
||||||
[ext_resource type="Texture2D" uid="uid://s3h6tpypoee0" path="res://art/music_button.png" id="12_2o6r5"]
|
[ext_resource type="Texture2D" uid="uid://s3h6tpypoee0" path="res://art/music_button.png" id="12_2o6r5"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c8m4d77hcr0pj" path="res://spike.tscn" id="12_k3n1d"]
|
[ext_resource type="PackedScene" uid="uid://c8m4d77hcr0pj" path="res://spike.tscn" id="12_k3n1d"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dxgnkftqtyt53" path="res://art/music_button_disabled.png" id="13_70uel"]
|
[ext_resource type="Texture2D" uid="uid://dxgnkftqtyt53" path="res://art/music_button_disabled.png" id="13_70uel"]
|
||||||
[ext_resource type="Script" uid="uid://d3rx82psovcpp" path="res://music_button.gd" id="14_70uel"]
|
[ext_resource type="Script" uid="uid://d3rx82psovcpp" path="res://music_button.gd" id="14_70uel"]
|
||||||
|
[ext_resource type="Script" uid="uid://oyyhhy1gemg0" path="res://objectives_label.gd" id="14_ikiii"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dr8h8xij3qw2h" path="res://pharaoh.tscn" id="15_hiqwa"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bcu7ftukipiyy" path="res://OldComputer.tscn" id="19_cbp6q"]
|
||||||
|
|
||||||
[node name="World" type="Node2D" unique_id=1327991900]
|
[node name="World" type="Node2D" unique_id=1327991900]
|
||||||
process_mode = 1
|
process_mode = 1
|
||||||
@@ -199,6 +203,22 @@ position = Vector2(0, -58.094738)
|
|||||||
[node name="Coin4" parent="Tutorial" unique_id=1504473184 instance=ExtResource("8_ioo17")]
|
[node name="Coin4" parent="Tutorial" unique_id=1504473184 instance=ExtResource("8_ioo17")]
|
||||||
position = Vector2(0, -85.66513)
|
position = Vector2(0, -85.66513)
|
||||||
|
|
||||||
|
[node name="Disk" parent="Tutorial" unique_id=514380026 instance=ExtResource("10_2u3nc")]
|
||||||
|
position = Vector2(213, 95.511696)
|
||||||
|
disk_num = 1
|
||||||
|
|
||||||
|
[node name="Disk2" parent="Tutorial" unique_id=369042906 instance=ExtResource("10_2u3nc")]
|
||||||
|
position = Vector2(285, 96.49635)
|
||||||
|
disk_num = 2
|
||||||
|
|
||||||
|
[node name="Disk3" parent="Tutorial" unique_id=224370384 instance=ExtResource("10_2u3nc")]
|
||||||
|
position = Vector2(188, 234.34827)
|
||||||
|
disk_num = 3
|
||||||
|
|
||||||
|
[node name="Disk4" parent="Tutorial" unique_id=1193788903 instance=ExtResource("10_2u3nc")]
|
||||||
|
position = Vector2(293, 182.16148)
|
||||||
|
disk_num = 4
|
||||||
|
|
||||||
[node name="WallSpike" parent="Tutorial" unique_id=287086441 instance=ExtResource("10_hiqwa")]
|
[node name="WallSpike" parent="Tutorial" unique_id=287086441 instance=ExtResource("10_hiqwa")]
|
||||||
position = Vector2(1325, 629.1956)
|
position = Vector2(1325, 629.1956)
|
||||||
|
|
||||||
@@ -294,14 +314,28 @@ visible = false
|
|||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_top = 23.0
|
offset_left = 3.0
|
||||||
offset_bottom = 23.0
|
offset_top = 32.0
|
||||||
|
offset_right = 3.0
|
||||||
|
offset_bottom = 32.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
bbcode_enabled = true
|
bbcode_enabled = true
|
||||||
text = "COINS:"
|
text = "COINS:"
|
||||||
script = ExtResource("3_wse8f")
|
script = ExtResource("3_wse8f")
|
||||||
|
|
||||||
|
[node name="Objectives" type="RichTextLabel" parent="CanvasLayer" unique_id=528356873]
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_top = 605.0
|
||||||
|
offset_bottom = 274.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
bbcode_enabled = true
|
||||||
|
text = "OBJECTIVES:"
|
||||||
|
script = ExtResource("14_ikiii")
|
||||||
|
|
||||||
[node name="MusicButton" type="TextureButton" parent="CanvasLayer" unique_id=1088022504]
|
[node name="MusicButton" type="TextureButton" parent="CanvasLayer" unique_id=1088022504]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
anchors_preset = 1
|
anchors_preset = 1
|
||||||
@@ -322,6 +356,13 @@ texture_pressed = ExtResource("13_70uel")
|
|||||||
texture_disabled = ExtResource("13_70uel")
|
texture_disabled = ExtResource("13_70uel")
|
||||||
script = ExtResource("14_70uel")
|
script = ExtResource("14_70uel")
|
||||||
|
|
||||||
|
[node name="Pharaoh" parent="." unique_id=44054531 instance=ExtResource("15_hiqwa")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
position = Vector2(192, 185.11545)
|
||||||
|
|
||||||
|
[node name="OldComputer" parent="." unique_id=1951254108 instance=ExtResource("19_cbp6q")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
|
||||||
[node name="Block" parent="." unique_id=226580978 instance=ExtResource("2_036b0")]
|
[node name="Block" parent="." unique_id=226580978 instance=ExtResource("2_036b0")]
|
||||||
position = Vector2(6637, -253.12886)
|
position = Vector2(6637, -253.12886)
|
||||||
|
|
||||||
|
|||||||