Added player, added tiles, added objects

This commit is contained in:
2026-01-07 00:23:05 +03:00
parent f22dcea5da
commit a23d8ccff7
54 changed files with 1722 additions and 46 deletions
-10
View File
@@ -1,10 +0,0 @@
class_name BWObject
extends Node2D
@export var is_colored := true
@export var is_white := true
func invert() -> void:
is_white = not is_white
-1
View File
@@ -1 +0,0 @@
uid://b7qut5xhc5hxo
-10
View File
@@ -1,10 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://bgtb7602a2260"]
[ext_resource type="Script" uid="uid://b7qut5xhc5hxo" path="res://game/objects/b_w_object.gd" id="1_jpa1b"]
[node name="BlackAndWhiteObject" type="Node2D"]
script = ExtResource("1_jpa1b")
[node name="Black" type="Node2D" parent="."]
[node name="White" type="Node2D" parent="."]
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://dx1yasi8wlaye"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_nvgb0"]
[sub_resource type="AtlasTexture" id="AtlasTexture_opqiy"]
atlas = ExtResource("1_nvgb0")
region = Rect2(48, 0, 16, 32)
[node name="Bookstand" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_opqiy")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://dopjsft0y8mw5"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_57t4w"]
[sub_resource type="AtlasTexture" id="AtlasTexture_sqimt"]
atlas = ExtResource("1_57t4w")
region = Rect2(128, 32, 32, 32)
[node name="Cabinet" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_sqimt")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://b8pvlnpdnfmd0"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_rse2u"]
[sub_resource type="AtlasTexture" id="AtlasTexture_1kw05"]
atlas = ExtResource("1_rse2u")
region = Rect2(176, 0, 16, 32)
[node name="Chair" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_1kw05")
+59
View File
@@ -0,0 +1,59 @@
[gd_scene load_steps=9 format=3 uid="uid://b3kyqvuxmfn8f"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_xghly"]
[ext_resource type="Shader" uid="uid://lqq1mg6l1qqe" path="res://game/shaders/black_n_white.gdshader" id="2_4nvxe"]
[sub_resource type="GDScript" id="GDScript_4nvxe"]
script/source = "extends Node2D
func _ready() -> void:
$AnimatedSprite2D.play(\"default\")
"
[sub_resource type="AtlasTexture" id="AtlasTexture_2ho61"]
atlas = ExtResource("1_xghly")
region = Rect2(0, 0, 32, 32)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2ho61"]
shader = ExtResource("2_4nvxe")
shader_parameter/black_color = Color(0, 0, 0, 1)
shader_parameter/white_color = Color(1, 1, 1, 1)
shader_parameter/switch_colors = false
shader_parameter/threshold = 0.5
shader_parameter/speed = 5.0000002375
shader_parameter/intensity = 0.50000002375
shader_parameter/scale = 75.0000035625
[sub_resource type="AtlasTexture" id="AtlasTexture_6xx0h"]
atlas = ExtResource("1_xghly")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_b1qtt"]
atlas = ExtResource("1_xghly")
region = Rect2(32, 16, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_f0x6e"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6xx0h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b1qtt")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Fireplace" type="Node2D"]
script = SubResource("GDScript_4nvxe")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_2ho61")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_2ho61")
position = Vector2(0, 8)
sprite_frames = SubResource("SpriteFrames_f0x6e")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://betmooym3gxqx"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_x2hio"]
[sub_resource type="AtlasTexture" id="AtlasTexture_1c3a2"]
atlas = ExtResource("1_x2hio")
region = Rect2(160, 32, 32, 32)
[node name="Moon" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_1c3a2")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://crccdk7wmuqig"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_a62d7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qwmf4"]
atlas = ExtResource("1_a62d7")
region = Rect2(0, 32, 48, 32)
[node name="PaintingHL" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_qwmf4")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://c0bk5sk661hi1"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_u3qkd"]
[sub_resource type="AtlasTexture" id="AtlasTexture_vssfe"]
atlas = ExtResource("1_u3qkd")
region = Rect2(48, 32, 32, 32)
[node name="PaintingHS" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_vssfe")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://d330w1ygg6uxy"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_v74mh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_hq5lq"]
atlas = ExtResource("1_v74mh")
region = Rect2(96, 0, 32, 48)
[node name="PaintingVL" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_hq5lq")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://bo7756lp68bl1"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_1hdr2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_0ynw1"]
atlas = ExtResource("1_1hdr2")
region = Rect2(64, 0, 32, 32)
[node name="PaintingVS" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_0ynw1")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://bdwbdnbenueu1"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_qacj7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_runce"]
atlas = ExtResource("1_qacj7")
region = Rect2(128, 0, 48, 32)
[node name="Table" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_runce")
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://bgs6j6ak5qnq1"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_0act5"]
[sub_resource type="AtlasTexture" id="AtlasTexture_pnn6n"]
atlas = ExtResource("1_0act5")
region = Rect2(48, 96, 32, 32)
[node name="InteractionKbd" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_pnn6n")
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://c0cae3bivcnal"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_fjtec"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ow2w5"]
atlas = ExtResource("1_fjtec")
region = Rect2(112, 96, 32, 32)
[node name="InteractionPad" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_ow2w5")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://pw8xqtpauy57"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_gth0n"]
[sub_resource type="AtlasTexture" id="AtlasTexture_wa8xe"]
atlas = ExtResource("1_gth0n")
region = Rect2(0, 96, 48, 32)
[node name="JumpKbd" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_wa8xe")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://3372ayctb2ed"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_206pc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_6w0xc"]
atlas = ExtResource("1_206pc")
region = Rect2(80, 96, 32, 32)
[node name="JumpPad" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_6w0xc")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://cemhsfdru4pv6"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_pa6ll"]
[sub_resource type="AtlasTexture" id="AtlasTexture_v0og1"]
atlas = ExtResource("1_pa6ll")
region = Rect2(0, 64, 48, 32)
[node name="MovementKbd" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_v0og1")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://tipop68pyrf7"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_crf2r"]
[sub_resource type="AtlasTexture" id="AtlasTexture_00r84"]
atlas = ExtResource("1_crf2r")
region = Rect2(80, 48, 32, 48)
[node name="MovementPad" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_00r84")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://deo60sij43ibm"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_t6r5l"]
[sub_resource type="AtlasTexture" id="AtlasTexture_lviuj"]
atlas = ExtResource("1_t6r5l")
region = Rect2(48, 64, 32, 32)
[node name="SwitchKbd" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_lviuj")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://f70xseggdimg"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_d2iw1"]
[sub_resource type="AtlasTexture" id="AtlasTexture_nyhjv"]
atlas = ExtResource("1_d2iw1")
region = Rect2(112, 64, 32, 32)
[node name="SwitchPad" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_nyhjv")
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://cvhovmnl050os"]
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_610bq"]
[sub_resource type="AtlasTexture" id="AtlasTexture_wbqlk"]
atlas = ExtResource("1_610bq")
region = Rect2(144, 80, 32, 48)
[node name="Wardrobe" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_wbqlk")