From 8732bc86bf0adf9994a74795497d6ec3a0227079 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 24 Nov 2025 17:35:18 +0200 Subject: Initial frobert --- assets/frobert/frobert-normal.png | Bin 0 -> 545 bytes assets/frobert/frobert-normal.png.import | 40 ++++++++++++++++++++++++++ assets/frobert/frobert.aseprite | Bin 0 -> 459 bytes assets/frobert/frobert.png | Bin 0 -> 248 bytes assets/frobert/frobert.png.import | 40 ++++++++++++++++++++++++++ assets/frobert/frobert.tres | 8 ++++++ assets/frobert/frobert_normal_auto.png | Bin 0 -> 682 bytes assets/frobert/frobert_normal_auto.png.import | 40 ++++++++++++++++++++++++++ assets/normal_map_circle.png | Bin 0 -> 299955 bytes assets/normal_map_circle.png.import | 40 ++++++++++++++++++++++++++ player.tscn | 27 ++++++++++------- room_test1.tscn | 38 +++++++++++++++++++++++- 12 files changed, 221 insertions(+), 12 deletions(-) create mode 100644 assets/frobert/frobert-normal.png create mode 100644 assets/frobert/frobert-normal.png.import create mode 100644 assets/frobert/frobert.aseprite create mode 100644 assets/frobert/frobert.png create mode 100644 assets/frobert/frobert.png.import create mode 100644 assets/frobert/frobert.tres create mode 100644 assets/frobert/frobert_normal_auto.png create mode 100644 assets/frobert/frobert_normal_auto.png.import create mode 100644 assets/normal_map_circle.png create mode 100644 assets/normal_map_circle.png.import diff --git a/assets/frobert/frobert-normal.png b/assets/frobert/frobert-normal.png new file mode 100644 index 0000000..fea8253 Binary files /dev/null and b/assets/frobert/frobert-normal.png differ diff --git a/assets/frobert/frobert-normal.png.import b/assets/frobert/frobert-normal.png.import new file mode 100644 index 0000000..09b8a42 --- /dev/null +++ b/assets/frobert/frobert-normal.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ds1vg8unxsgyo" +path="res://.godot/imported/frobert-normal.png-b03a984729522e2d0a7dc88591a68e2e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frobert/frobert-normal.png" +dest_files=["res://.godot/imported/frobert-normal.png-b03a984729522e2d0a7dc88591a68e2e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +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 +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 diff --git a/assets/frobert/frobert.aseprite b/assets/frobert/frobert.aseprite new file mode 100644 index 0000000..b895fc1 Binary files /dev/null and b/assets/frobert/frobert.aseprite differ diff --git a/assets/frobert/frobert.png b/assets/frobert/frobert.png new file mode 100644 index 0000000..eea359b Binary files /dev/null and b/assets/frobert/frobert.png differ diff --git a/assets/frobert/frobert.png.import b/assets/frobert/frobert.png.import new file mode 100644 index 0000000..09e9eab --- /dev/null +++ b/assets/frobert/frobert.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ckoc3bw4l1j87" +path="res://.godot/imported/frobert.png-26f3ad5599437fa0af9a3f144193e6c4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frobert/frobert.png" +dest_files=["res://.godot/imported/frobert.png-26f3ad5599437fa0af9a3f144193e6c4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +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 +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 diff --git a/assets/frobert/frobert.tres b/assets/frobert/frobert.tres new file mode 100644 index 0000000..81c32bc --- /dev/null +++ b/assets/frobert/frobert.tres @@ -0,0 +1,8 @@ +[gd_resource type="CanvasTexture" load_steps=3 format=3 uid="uid://8ucucqeioxqr"] + +[ext_resource type="Texture2D" uid="uid://ckoc3bw4l1j87" path="res://assets/frobert/frobert.png" id="1_ijty2"] +[ext_resource type="Texture2D" uid="uid://d0fpe2qp8rr4t" path="res://assets/frobert/frobert_normal_auto.png" id="2_ijty2"] + +[resource] +diffuse_texture = ExtResource("1_ijty2") +normal_texture = ExtResource("2_ijty2") diff --git a/assets/frobert/frobert_normal_auto.png b/assets/frobert/frobert_normal_auto.png new file mode 100644 index 0000000..3a667e1 Binary files /dev/null and b/assets/frobert/frobert_normal_auto.png differ diff --git a/assets/frobert/frobert_normal_auto.png.import b/assets/frobert/frobert_normal_auto.png.import new file mode 100644 index 0000000..3a19f58 --- /dev/null +++ b/assets/frobert/frobert_normal_auto.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d0fpe2qp8rr4t" +path="res://.godot/imported/frobert_normal_auto.png-3e67fc7d941ef4bd2381d55baf0dd5ec.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frobert/frobert_normal_auto.png" +dest_files=["res://.godot/imported/frobert_normal_auto.png-3e67fc7d941ef4bd2381d55baf0dd5ec.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +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 +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 diff --git a/assets/normal_map_circle.png b/assets/normal_map_circle.png new file mode 100644 index 0000000..eb86bf5 Binary files /dev/null and b/assets/normal_map_circle.png differ diff --git a/assets/normal_map_circle.png.import b/assets/normal_map_circle.png.import new file mode 100644 index 0000000..d788b61 --- /dev/null +++ b/assets/normal_map_circle.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b365os0g6fe88" +path="res://.godot/imported/normal_map_circle.png-e865082d0e72930aed93d5c303a8cf4d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/normal_map_circle.png" +dest_files=["res://.godot/imported/normal_map_circle.png-e865082d0e72930aed93d5c303a8cf4d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +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 +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 diff --git a/player.tscn b/player.tscn index f0e23db..4826b7e 100644 --- a/player.tscn +++ b/player.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=12 format=3 uid="uid://coxnsharboouu"] +[gd_scene load_steps=15 format=3 uid="uid://coxnsharboouu"] [ext_resource type="Texture2D" uid="uid://o0yy2jkyp0dy" path="res://assets/kenney_1-bit-platformer-pack/Tilemap/monochrome_tilemap_transparent_packed.png" id="1_4flbx"] [ext_resource type="Script" uid="uid://cw711xwg5k1ym" path="res://player.gd" id="2_onrkg"] +[ext_resource type="Texture2D" uid="uid://8ucucqeioxqr" path="res://assets/frobert/frobert.tres" id="3_i3pqv"] [sub_resource type="AtlasTexture" id="AtlasTexture_wtcfe"] atlas = ExtResource("1_4flbx") @@ -31,6 +32,14 @@ region = Rect2(80, 192, 16, 16) atlas = ExtResource("1_4flbx") region = Rect2(96, 192, 16, 16) +[sub_resource type="AtlasTexture" id="AtlasTexture_hqtel"] +atlas = ExtResource("3_i3pqv") +region = Rect2(0, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_sweqy"] +atlas = ExtResource("3_i3pqv") +region = Rect2(16, 0, 16, 16) + [sub_resource type="SpriteFrames" id="SpriteFrames_rj586"] animations = [{ "frames": [{ @@ -69,7 +78,7 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_0e48y") +"texture": SubResource("AtlasTexture_hqtel") }], "loop": true, "name": &"idle", @@ -77,7 +86,7 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_q6r6c") +"texture": SubResource("AtlasTexture_sweqy") }], "loop": true, "name": &"jump", @@ -85,13 +94,10 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_0hol4") +"texture": SubResource("AtlasTexture_hqtel") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_0e48y") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_epypp") +"texture": SubResource("AtlasTexture_sweqy") }], "loop": true, "name": &"walk", @@ -107,9 +113,8 @@ script = ExtResource("2_onrkg") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] position = Vector2(0, -1) sprite_frames = SubResource("SpriteFrames_rj586") -animation = &"walk" -autoplay = "walk" -frame_progress = 0.86319524 +animation = &"idle" +autoplay = "idle" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 3) diff --git a/room_test1.tscn b/room_test1.tscn index 55b2103..97056cb 100644 --- a/room_test1.tscn +++ b/room_test1.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=4 uid="uid://cfj21o6wsd3hv"] +[gd_scene load_steps=9 format=4 uid="uid://cfj21o6wsd3hv"] [ext_resource type="Texture2D" uid="uid://o0yy2jkyp0dy" path="res://assets/kenney_1-bit-platformer-pack/Tilemap/monochrome_tilemap_transparent_packed.png" id="1_ubxha"] [ext_resource type="PackedScene" uid="uid://coxnsharboouu" path="res://player.tscn" id="2_qglt1"] @@ -437,6 +437,14 @@ texture = ExtResource("1_ubxha") physics_layer_0/collision_layer = 1 sources/1 = SubResource("TileSetAtlasSource_0e48y") +[sub_resource type="Gradient" id="Gradient_dri7h"] +colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_m3rqw"] +gradient = SubResource("Gradient_dri7h") +fill = 1 +fill_from = Vector2(0.5, 0.5) + [node name="RoomTest1" type="Node2D"] process_mode = 1 @@ -473,3 +481,31 @@ exit_towards = "JUMP_RIGHT" enter_towards = "DROP" target_room = "res://room_test3.tscn" target_door = "DoorUp" + +[node name="CanvasModulate" type="CanvasModulate" parent="."] +color = Color(0.20854908, 0.12776822, 0.042044938, 1) + +[node name="PointLight2D" type="PointLight2D" parent="."] +position = Vector2(62.000008, 61.000008) +scale = Vector2(6.859375, 6.375) +color = Color(0.99945337, 0.8187886, 0.8147719, 1) +energy = 2.0 +texture = SubResource("GradientTexture2D_m3rqw") +height = 50.0 + +[node name="PointLight2D2" type="PointLight2D" parent="."] +visible = false +position = Vector2(179, -9) +scale = Vector2(6.859375, 6.375) +color = Color(0.99945337, 0.8187886, 0.8147719, 1) +energy = 2.0 +texture = SubResource("GradientTexture2D_m3rqw") +height = 50.0 + +[node name="DirectionalLight2D" type="DirectionalLight2D" parent="."] +position = Vector2(113, -70) +color = Color(0.8901961, 0.9137255, 0.9098039, 1) +shadow_enabled = true +shadow_filter = 1 +shadow_filter_smooth = 3.1 +height = 0.28 -- cgit v1.3