From c2a73ff69a09cf842091232201557bc01049defa Mon Sep 17 00:00:00 2001 From: Wynd Date: Sat, 14 Sep 2024 22:26:26 +0300 Subject: [PATCH] Initial commit with some textures and map tests --- .gitattributes | 2 ++ .gitignore | 3 ++ bat.png | Bin 0 -> 133 bytes bat.png.import | 34 ++++++++++++++++++++ box-switch.png | Bin 0 -> 166 bytes box-switch.png.import | 34 ++++++++++++++++++++ box.png | Bin 0 -> 206 bytes box.png.import | 34 ++++++++++++++++++++ box.tscn | 53 ++++++++++++++++++++++++++++++ box_switch.tscn | 60 ++++++++++++++++++++++++++++++++++ ghost.png | Bin 0 -> 133 bytes ghost.png.import | 34 ++++++++++++++++++++ grave.png | Bin 0 -> 252 bytes grave.png.import | 34 ++++++++++++++++++++ grave.tscn | 73 ++++++++++++++++++++++++++++++++++++++++++ main.tscn | 73 ++++++++++++++++++++++++++++++++++++++++++ project.godot | 27 ++++++++++++++++ tileset.png | Bin 0 -> 578 bytes tileset.png.import | 34 ++++++++++++++++++++ 19 files changed, 495 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bat.png create mode 100644 bat.png.import create mode 100644 box-switch.png create mode 100644 box-switch.png.import create mode 100644 box.png create mode 100644 box.png.import create mode 100644 box.tscn create mode 100644 box_switch.tscn create mode 100644 ghost.png create mode 100644 ghost.png.import create mode 100644 grave.png create mode 100644 grave.png.import create mode 100644 grave.tscn create mode 100644 main.tscn create mode 100644 project.godot create mode 100644 tileset.png create mode 100644 tileset.png.import diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/bat.png b/bat.png new file mode 100644 index 0000000000000000000000000000000000000000..14099781310ee5e65966b71e1bdcdd943ee340d4 GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQjEnx?oJHr&dIz4a_l`_978lF zCMPTq`S98M|MTb5|M{=6uu5mdKI;Vst09OSrNB{r; literal 0 HcmV?d00001 diff --git a/bat.png.import b/bat.png.import new file mode 100644 index 0000000..7deedf6 --- /dev/null +++ b/bat.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dxkxa6e6ue1b6" +path="res://.godot/imported/bat.png-8c5f11e0110a5921c6efd8f18e634996.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://bat.png" +dest_files=["res://.godot/imported/bat.png-8c5f11e0110a5921c6efd8f18e634996.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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/box-switch.png b/box-switch.png new file mode 100644 index 0000000000000000000000000000000000000000..4eb273e35ccd936b3e053e0c0af426f56016b692 GIT binary patch literal 166 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQjEnx?oJHr&dIz4auPgU978lF zCMQUIYM9vA*r=$p>WjVE${4zvF940uX%Y=|~09H})kN`kbw2V`FQZ z8$Eqt$KfljKvn4nmkAy#|K4{!~$g47@oc|(_yVTrVg}=!PC{x JWt~$(699}sJiY(` literal 0 HcmV?d00001 diff --git a/box-switch.png.import b/box-switch.png.import new file mode 100644 index 0000000..695241a --- /dev/null +++ b/box-switch.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b4i416bsd62n1" +path="res://.godot/imported/box-switch.png-09af05dc015f6a7c21a3d4c8a8039a04.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://box-switch.png" +dest_files=["res://.godot/imported/box-switch.png-09af05dc015f6a7c21a3d4c8a8039a04.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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/box.png b/box.png new file mode 100644 index 0000000000000000000000000000000000000000..09d80d00339ed8fe4f5fa61f2a7089dd9d36b154 GIT binary patch literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^8bHj!!3HF|gZ4%PDaPU;cPEB*=VV?2IUSxZjv*Gk z$q7Kf(XI9O|LgDD|GzLfoWOWPMqDhEtNg*nx4-}W|MmB+y_GNjc0<9%CypF#dU$4@ zu!ITEg*(iD{#^RspL_qi{M@#a$(!ehRC?Jsgm83qtuXS5*dyDlCKe#X?85^Dx5IVP zKJ;`PUC_z8iC|HsYBTCns@*fgxJ|v$1k-)@q=e7(8A5T-G@yGywnr CMNkp| literal 0 HcmV?d00001 diff --git a/box.png.import b/box.png.import new file mode 100644 index 0000000..6f694b5 --- /dev/null +++ b/box.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://br4mm65ok0dfl" +path="res://.godot/imported/box.png-196cb2b6d7422a4ab3b9c60b5a994fe3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://box.png" +dest_files=["res://.godot/imported/box.png-196cb2b6d7422a4ab3b9c60b5a994fe3.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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/box.tscn b/box.tscn new file mode 100644 index 0000000..3af7a66 --- /dev/null +++ b/box.tscn @@ -0,0 +1,53 @@ +[gd_scene load_steps=5 format=3 uid="uid://cjus07bbbn4wd"] + +[ext_resource type="Texture2D" uid="uid://br4mm65ok0dfl" path="res://box.png" id="1_myqej"] + +[sub_resource type="Animation" id="Animation_21bg4"] +resource_name = "RESET" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_db20y"] +resource_name = "complete" +length = 0.5 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.15, 0.3, 0.45), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_g7bql"] +_data = { +"RESET": SubResource("Animation_21bg4"), +"complete": SubResource("Animation_db20y") +} + +[node name="Box" type="Node2D"] + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture_filter = 1 +texture = ExtResource("1_myqej") +hframes = 5 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Sprite2D"] +libraries = { +"": SubResource("AnimationLibrary_g7bql") +} +autoplay = "RESET" diff --git a/box_switch.tscn b/box_switch.tscn new file mode 100644 index 0000000..1a9f6b7 --- /dev/null +++ b/box_switch.tscn @@ -0,0 +1,60 @@ +[gd_scene load_steps=6 format=3 uid="uid://c2qq84wh76mkx"] + +[ext_resource type="Texture2D" uid="uid://b4i416bsd62n1" path="res://box-switch.png" id="1_s5gx1"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_g4f6l"] +size = Vector2(8, 8) + +[sub_resource type="Animation" id="Animation_33k1i"] +resource_name = "active" +length = 0.5 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.25), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [0, 1] +} + +[sub_resource type="Animation" id="Animation_615sy"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_78s6f"] +_data = { +"RESET": SubResource("Animation_615sy"), +"active": SubResource("Animation_33k1i") +} + +[node name="BoxSwitch" type="Area2D"] + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture_filter = 1 +texture = ExtResource("1_s5gx1") +hframes = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource("RectangleShape2D_g4f6l") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_78s6f") +} +autoplay = "active" diff --git a/ghost.png b/ghost.png new file mode 100644 index 0000000000000000000000000000000000000000..3439b8fbd0cea5bdf0f85631e82fa4f7a08b121f GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQjEnx?oJHr&dIz4a_l`_978lF zCMPTqFgPT!zpnmwzs|v9r;c`u52{yuQUP6pt_c$0f g+-&j_p2WC0X{vFeH0gYntboFyt=akR{0FJUMX#fBK literal 0 HcmV?d00001 diff --git a/ghost.png.import b/ghost.png.import new file mode 100644 index 0000000..2064aa4 --- /dev/null +++ b/ghost.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d2weyvrv4qsa2" +path="res://.godot/imported/ghost.png-f343bb4bd35f12f8f631dffe3b7d2891.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ghost.png" +dest_files=["res://.godot/imported/ghost.png-f343bb4bd35f12f8f631dffe3b7d2891.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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/grave.png b/grave.png new file mode 100644 index 0000000000000000000000000000000000000000..bb003a359a5068b4e19a573ec2c01b1eb67e2454 GIT binary patch literal 252 zcmVPx#wn;=mR7i>Kmaz@QAPhy#DZK|^FADZxitIs=KE(}m17reUWy!KI1cL4wewFB9 z`&)n$fXNCmQHY6p*>shPJuzqT*QhxFfFtj2B)%u#CSMRe0RUXrr&yS|#olK&V~@N$ zL{EsGtTiPMP6L)sQsb@ICu@eb_?KD+mzH|ObL!tdq=sf$ZP3ov?OQAxkk9h_sdr%N zj{zsQij+9B5EE%G&FLJL`RWm~47Lok8o1M7t^OAjW2H%L;;FR&0000f0D+!HR+xrm#c)Y?P|Mwe4B}!{n?I=6_?AHEFvxkE@fNi-If>EXBjzZPW21k zE!Sr~&HT-&upQi?Dmr-fmTAHlb3PNyI%ZZ)0NbK zT@QZFa4}@v_x9v2-F5qI{U?ESe$SH&t>m+Nf9|%bo40q$ zxs#UHzy6J4U6CBD`eDv$_JWz8rR9o457b_6s9WV3JOvmaHi1v_>-N8m6*|y);?tI} z<~@;2Dw2Cvv(IRHUi_+WbNjsm6@FPyZ5OPwde7v`x-b3Br*+#M7DmdKI;Vst013?yz5oCK literal 0 HcmV?d00001 diff --git a/tileset.png.import b/tileset.png.import new file mode 100644 index 0000000..87de142 --- /dev/null +++ b/tileset.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cbuibrshdpkm1" +path="res://.godot/imported/tileset.png-a39e944f25b35d62f55d4f98a36e2b5e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://tileset.png" +dest_files=["res://.godot/imported/tileset.png-a39e944f25b35d62f55d4f98a36e2b5e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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