summaryrefslogtreecommitdiffstats
path: root/rooms
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-28 18:22:34 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-28 18:22:34 +0200
commit81c5a2c75112699297d31d5736a0770b84b2d525 (patch)
tree746c41597362d9fb83fa16c739bc414c89d0011e /rooms
parent7e2875109d458e2183ad0c27f833b432981a54c2 (diff)
Add cinematic bars
Diffstat (limited to 'rooms')
-rw-r--r--rooms/relic.tscn23
-rw-r--r--rooms/surface19.tscn24
-rw-r--r--rooms/test3.tscn1
3 files changed, 28 insertions, 20 deletions
diff --git a/rooms/relic.tscn b/rooms/relic.tscn
new file mode 100644
index 0000000..ce50a99
--- /dev/null
+++ b/rooms/relic.tscn
@@ -0,0 +1,23 @@
+[gd_scene load_steps=4 format=3 uid="uid://cc6au2x7x3c5i"]
+
+[ext_resource type="Texture2D" uid="uid://chj76nr0mlfdi" path="res://assets.untracked/kenney_1-bit-platformer-pack/Tiles/Transparent/tile_0022.png" id="1_v8p2h"]
+[ext_resource type="Script" uid="uid://bhkotkakm8i4i" path="res://relic.gd" id="2_2utpd"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_v8p2h"]
+size = Vector2(8.535536, 8.535535)
+
+[node name="Relic" type="Sprite2D"]
+texture = ExtResource("1_v8p2h")
+script = ExtResource("2_2utpd")
+
+[node name="Area2D" type="Area2D" parent="."]
+collision_layer = 64
+collision_mask = 2
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
+position = Vector2(-2.4689058e-08, -1.1920929e-07)
+rotation = 0.7853982
+scale = Vector2(0.9999999, 0.9999999)
+shape = SubResource("RectangleShape2D_v8p2h")
+
+[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
diff --git a/rooms/surface19.tscn b/rooms/surface19.tscn
index 3165e93..40e14e2 100644
--- a/rooms/surface19.tscn
+++ b/rooms/surface19.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=4 uid="uid://dr3ju5oehcjhx"]
+[gd_scene load_steps=9 format=4 uid="uid://dr3ju5oehcjhx"]
[ext_resource type="Script" uid="uid://cbhily4o7e2r3" path="res://room.gd" id="1_vlhxe"]
[ext_resource type="Texture2D" uid="uid://dkek11j5dh6as" path="res://assets.untracked/kenney_1-bit-platformer-pack/Tiles/Default/tile_0338.png" id="2_ywagw"]
@@ -7,21 +7,7 @@
[ext_resource type="PackedScene" uid="uid://coxnsharboouu" path="res://player.tscn" id="5_d5y4x"]
[ext_resource type="PackedScene" uid="uid://df0loiahar23o" path="res://door.tscn" id="6_i631u"]
[ext_resource type="Texture2D" uid="uid://tmcwkm2n5nrq" path="res://assets/kenney_1-bit-platformer-pack/Tiles/Transparent/tile_0165.png" id="7_vlhxe"]
-[ext_resource type="Texture2D" uid="uid://chj76nr0mlfdi" path="res://assets/kenney_1-bit-platformer-pack/Tiles/Transparent/tile_0022.png" id="8_ywagw"]
-
-[sub_resource type="GDScript" id="GDScript_lhrvv"]
-script/source = "extends Sprite2D
-
-var t: float = 0
-const w: float = 5
-const A: float = 1
-
-var oscing = true
-
-func _physics_process(delta: float) -> void:
- if oscing: t += delta
- offset.y = A * sin(w * t)
-"
+[ext_resource type="PackedScene" uid="uid://cc6au2x7x3c5i" path="res://rooms/relic.tscn" id="8_ywagw"]
[node name="Surface19" type="Node2D" groups=["debug_info"]]
process_mode = 1
@@ -57,7 +43,7 @@ position = Vector2(42, 54)
scale = Vector2(1, 4)
exit_towards = "RIGHT"
enter_towards = "LEFT"
-target_room = "res://rooms/surface2.tscn"
+target_room = "res://rooms/surface18.tscn"
target_door = "DoorRight"
[node name="DoorRight" parent="." instance=ExtResource("6_i631u")]
@@ -72,7 +58,5 @@ target_door = "DoorCave"
position = Vector2(288, 72)
texture = ExtResource("7_vlhxe")
-[node name="Relic" type="Sprite2D" parent="."]
+[node name="Relic1" parent="." instance=ExtResource("8_ywagw")]
position = Vector2(168, 56)
-texture = ExtResource("8_ywagw")
-script = SubResource("GDScript_lhrvv")
diff --git a/rooms/test3.tscn b/rooms/test3.tscn
index 628719f..d8857d4 100644
--- a/rooms/test3.tscn
+++ b/rooms/test3.tscn
@@ -100,6 +100,7 @@ scale = Vector2(4, 1)
exit_towards = "DROP"
enter_towards = "JUMP"
target_room = "res://rooms/test1.tscn"
+target_door = "DoorLeft"
[node name="ComputerPath" type="Path2D" parent="."]
curve = SubResource("Curve2D_bml3v")