Casset/level1

made a casset that you can pick up. Made a level 1.
This commit is contained in:
sam committed 2026-10-03 17:45:38 -06:00
1 parent 25eabd1364
commit 1eee8b0e92
11 files changed
+297 -349

No files matched your search

+78 -218
View File
@@ -1,229 +1,89 @@
[gd_scene format=3 uid="uid://byyncg030v5uf"]
[ext_resource type="Texture2D" uid="uid://bt61g6xdrepd" path="res://assets/sprites/knight.png" id="1_4tcl0"]
[ext_resource type="TileSet" uid="uid://bcmaud87chfuu" path="res://assets/sprites/knight.tres" id="2_dd0lh"]
[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"]
[sub_resource type="AtlasTexture" id="AtlasTexture_bfxgj"]
atlas = ExtResource("1_4tcl0")
region = Rect2(0, 0, 32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(6598.25, 171)
[sub_resource type="AtlasTexture" id="AtlasTexture_dywbp"]
atlas = ExtResource("1_4tcl0")
region = Rect2(32, 0, 32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yg5ta"]
size = Vector2(787, 135)
[sub_resource type="AtlasTexture" id="AtlasTexture_1seuy"]
atlas = ExtResource("1_4tcl0")
region = Rect2(64, 0, 32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_e270b"]
size = Vector2(341, 630)
[sub_resource type="AtlasTexture" id="AtlasTexture_2r1tl"]
atlas = ExtResource("1_4tcl0")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8a7m2"]
atlas = ExtResource("1_4tcl0")
region = Rect2(0, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_plydf"]
atlas = ExtResource("1_4tcl0")
region = Rect2(32, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ntmo"]
atlas = ExtResource("1_4tcl0")
region = Rect2(64, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nkeig"]
atlas = ExtResource("1_4tcl0")
region = Rect2(96, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nfihu"]
atlas = ExtResource("1_4tcl0")
region = Rect2(128, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_lgguw"]
atlas = ExtResource("1_4tcl0")
region = Rect2(160, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jprdt"]
atlas = ExtResource("1_4tcl0")
region = Rect2(192, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ps2vj"]
atlas = ExtResource("1_4tcl0")
region = Rect2(224, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_sbmf2"]
atlas = ExtResource("1_4tcl0")
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1xax6"]
atlas = ExtResource("1_4tcl0")
region = Rect2(32, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g7tkf"]
atlas = ExtResource("1_4tcl0")
region = Rect2(64, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_4fww7"]
atlas = ExtResource("1_4tcl0")
region = Rect2(96, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_gvm5i"]
atlas = ExtResource("1_4tcl0")
region = Rect2(128, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jrfo0"]
atlas = ExtResource("1_4tcl0")
region = Rect2(160, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_db1r7"]
atlas = ExtResource("1_4tcl0")
region = Rect2(192, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6gwlt"]
atlas = ExtResource("1_4tcl0")
region = Rect2(224, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_c2nc4"]
atlas = ExtResource("1_4tcl0")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vhxpm"]
atlas = ExtResource("1_4tcl0")
region = Rect2(32, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_arkx4"]
atlas = ExtResource("1_4tcl0")
region = Rect2(64, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jqv5m"]
atlas = ExtResource("1_4tcl0")
region = Rect2(96, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_noix2"]
atlas = ExtResource("1_4tcl0")
region = Rect2(128, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_025c5"]
atlas = ExtResource("1_4tcl0")
region = Rect2(160, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bw3ef"]
atlas = ExtResource("1_4tcl0")
region = Rect2(192, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_07dy8"]
atlas = ExtResource("1_4tcl0")
region = Rect2(224, 96, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_d53c6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bfxgj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dywbp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1seuy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2r1tl")
}],
"loop": 1,
"name": &"Idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8a7m2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_plydf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ntmo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nkeig")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nfihu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lgguw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jprdt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ps2vj")
}],
"loop": 1,
"name": &"Roll",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sbmf2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1xax6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g7tkf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4fww7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gvm5i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jrfo0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_db1r7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6gwlt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c2nc4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vhxpm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_arkx4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jqv5m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_noix2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_025c5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bw3ef")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_07dy8")
}],
"loop": 1,
"name": &"Run",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xfo6b"]
size = Vector2(74, 1107)
[node name="Level1" type="Node2D" unique_id=872996404]
script = ExtResource("1_bfxgj")
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=702674080]
[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="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D" unique_id=1742472414]
sprite_frames = SubResource("SpriteFrames_d53c6")
animation = &"Roll"
[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="TileMapLayer" type="TileMapLayer" parent="CharacterBody2D/AnimatedSprite2D" unique_id=1046286093]
tile_set = ExtResource("2_dd0lh")
[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="Area2D" type="Area2D" parent="." unique_id=1173036271]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=857196107]
position = Vector2(5795, -306)
shape = SubResource("RectangleShape2D_xfo6b")
[node name="Marker2D" type="Marker2D" parent="." unique_id=1804380766]
position = Vector2(5418, -140)
[node name="Marker2D2" type="Marker2D" parent="." unique_id=726852992]
position = Vector2(5756, 192)
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
+15
View File
@@ -0,0 +1,15 @@
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
func _on_area_2d_body_entered(body: Node2D) -> void:
GloblaData.doing_puzzle = true
var instance = phonephreak.instantiate()
$Marker2D.add_child(instance)
+1
View File
@@ -0,0 +1 @@
uid://cogpyoqdfygvg