summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-11-13 23:51:27 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-11-14 00:03:24 +0100
commit3a6d2c7b2629b7ee6f759d9e7a4509cf4dbcd7d9 (patch)
tree22ae66447b07bd22a0e95a1bb002e48534aff29d
parent64493452fcf9cebd67774aee32704589a949e6ef (diff)
downloadnj26-master.tar.gz
Add Spatial, box and zombie scenesHEADmaster
-rw-r--r--.gitignore2
-rw-r--r--Spatial.tscn33
-rw-r--r--box.tscn14
-rw-r--r--box/Material_001.materialbin0 -> 1647 bytes
-rw-r--r--box/Material_003.materialbin0 -> 1647 bytes
-rw-r--r--box/box.obj278
-rw-r--r--export_presets.cfg34
-rw-r--r--project.godot46
-rw-r--r--zombie.gd92
-rw-r--r--zombie.tscn24
-rw-r--r--zombie/b0.pngbin0 -> 11890 bytes
-rw-r--r--zombie/b1.pngbin0 -> 9449 bytes
-rw-r--r--zombie/b2.pngbin0 -> 11247 bytes
-rw-r--r--zombie/b3.pngbin0 -> 11730 bytes
-rw-r--r--zombie/b4.pngbin0 -> 10289 bytes
-rw-r--r--zombie/b5.pngbin0 -> 10888 bytes
-rw-r--r--zombie/b6.pngbin0 -> 12178 bytes
-rw-r--r--zombie/b7.pngbin0 -> 10488 bytes
-rw-r--r--zombie/f0.pngbin0 -> 10954 bytes
-rw-r--r--zombie/f1.pngbin0 -> 7934 bytes
-rw-r--r--zombie/f2.pngbin0 -> 10204 bytes
-rw-r--r--zombie/f3.pngbin0 -> 11009 bytes
-rw-r--r--zombie/f4.pngbin0 -> 8970 bytes
-rw-r--r--zombie/f5.pngbin0 -> 9889 bytes
-rw-r--r--zombie/f6.pngbin0 -> 11423 bytes
-rw-r--r--zombie/f7.pngbin0 -> 9094 bytes
-rw-r--r--zombie/l0.pngbin0 -> 8297 bytes
-rw-r--r--zombie/l1.pngbin0 -> 6330 bytes
-rw-r--r--zombie/l2.pngbin0 -> 7720 bytes
-rw-r--r--zombie/l3.pngbin0 -> 8242 bytes
-rw-r--r--zombie/l4.pngbin0 -> 6929 bytes
-rw-r--r--zombie/l5.pngbin0 -> 7562 bytes
-rw-r--r--zombie/l6.pngbin0 -> 8506 bytes
-rw-r--r--zombie/l7.pngbin0 -> 7009 bytes
-rw-r--r--zombie/n0.pngbin0 -> 9610 bytes
-rw-r--r--zombie/n1.pngbin0 -> 7262 bytes
-rw-r--r--zombie/n2.pngbin0 -> 8990 bytes
-rw-r--r--zombie/n3.pngbin0 -> 9543 bytes
-rw-r--r--zombie/n4.pngbin0 -> 8015 bytes
-rw-r--r--zombie/n5.pngbin0 -> 8730 bytes
-rw-r--r--zombie/n6.pngbin0 -> 9910 bytes
-rw-r--r--zombie/n7.pngbin0 -> 8081 bytes
-rw-r--r--zombie/r0.pngbin0 -> 12945 bytes
-rw-r--r--zombie/r1.pngbin0 -> 9744 bytes
-rw-r--r--zombie/r2.pngbin0 -> 12162 bytes
-rw-r--r--zombie/r3.pngbin0 -> 12965 bytes
-rw-r--r--zombie/r4.pngbin0 -> 10880 bytes
-rw-r--r--zombie/r5.pngbin0 -> 11852 bytes
-rw-r--r--zombie/r6.pngbin0 -> 13313 bytes
-rw-r--r--zombie/r7.pngbin0 -> 10993 bytes
50 files changed, 523 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..828685a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/.import/
+*.png.import
diff --git a/Spatial.tscn b/Spatial.tscn
new file mode 100644
index 0000000..3c11200
--- /dev/null
+++ b/Spatial.tscn
@@ -0,0 +1,33 @@
+[gd_scene load_steps=5 format=2]
+
+[ext_resource path="res://box.tscn" type="PackedScene" id=1]
+[ext_resource path="res://zombie.tscn" type="PackedScene" id=2]
+
+[sub_resource type="PlaneMesh" id=1]
+size = Vector2( 20, 20 )
+
+[sub_resource type="BoxShape" id=2]
+extents = Vector3( 10, 1, 10 )
+
+[node name="Spatial" type="Spatial"]
+
+[node name="MeshInstance" type="MeshInstance" parent="."]
+mesh = SubResource( 1 )
+
+[node name="StaticBody" type="StaticBody" parent="MeshInstance"]
+
+[node name="CollisionShape" type="CollisionShape" parent="MeshInstance/StaticBody"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
+shape = SubResource( 2 )
+
+[node name="Box" parent="." instance=ExtResource( 1 )]
+transform = Transform( 0.828706, -0.559685, 0, 0.559685, 0.828706, 0, 0, 0, 1, 0, 4.61404, 0 )
+
+[node name="Box2" parent="." instance=ExtResource( 1 )]
+transform = Transform( 0.828706, -0.559685, 0, 0.559685, 0.828706, 0, 0, 0, 1, 0, 6.87134, 0 )
+
+[node name="Camera" type="Camera" parent="."]
+transform = Transform( 1, 0, 0, 0, 0.394167, 0.919039, 0, -0.919039, 0.394167, 0, 8.64508, 5.29777 )
+
+[node name="z1" parent="." instance=ExtResource( 2 )]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.09216, -4.62623 )
diff --git a/box.tscn b/box.tscn
new file mode 100644
index 0000000..5364c0a
--- /dev/null
+++ b/box.tscn
@@ -0,0 +1,14 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://box/box.obj" type="ArrayMesh" id=1]
+
+[sub_resource type="BoxShape" id=1]
+
+[node name="RigidBody" type="RigidBody"]
+
+[node name="MeshInstance" type="MeshInstance" parent="."]
+mesh = ExtResource( 1 )
+
+[node name="CollisionShape" type="CollisionShape" parent="."]
+transform = Transform( 0.7, 0, 0, 0, 0.75, 0, 0, 0, 0.7, 0, 0, 0 )
+shape = SubResource( 1 )
diff --git a/box/Material_001.material b/box/Material_001.material
new file mode 100644
index 0000000..a08ed85
--- /dev/null
+++ b/box/Material_001.material
Binary files differ
diff --git a/box/Material_003.material b/box/Material_003.material
new file mode 100644
index 0000000..f18638c
--- /dev/null
+++ b/box/Material_003.material
Binary files differ
diff --git a/box/box.obj b/box/box.obj
new file mode 100644
index 0000000..9132e4e
--- /dev/null
+++ b/box/box.obj
@@ -0,0 +1,278 @@
+# Blender v2.83.18 OBJ File: ''
+# www.blender.org
+mtllib box.mtl
+o Box_Cube.001
+v -0.539011 0.673763 0.539011
+v -0.539011 0.673763 -0.539011
+v 0.539011 0.673763 -0.539011
+v 0.539011 0.673763 0.539011
+v 0.673763 0.539011 -0.539011
+v 0.673763 -0.539011 -0.539011
+v 0.673763 -0.539011 0.539011
+v 0.673763 0.539011 0.539011
+v -0.539011 -0.539011 0.673763
+v -0.539011 0.539011 0.673763
+v 0.539011 0.539011 0.673763
+v 0.539011 -0.539011 0.673763
+v -0.673763 -0.539011 -0.539011
+v -0.673763 -0.539011 0.539011
+v -0.673763 0.539011 0.539011
+v -0.673763 0.539011 -0.539011
+v -0.539011 0.539011 -0.673763
+v -0.539011 -0.539011 -0.673763
+v 0.539011 -0.539011 -0.673763
+v 0.539011 0.539011 -0.673763
+v -0.539011 -0.673763 -0.539011
+v -0.539011 -0.673763 0.539011
+v 0.539011 -0.673763 -0.539011
+v 0.539011 -0.673763 0.539011
+v -0.675000 -0.750000 0.675000
+v -0.675000 0.750000 0.675000
+v -0.675000 -0.750000 -0.675000
+v -0.675000 0.750000 -0.675000
+v 0.675000 -0.750000 0.675000
+v 0.675000 0.750000 0.675000
+v 0.675000 -0.750000 -0.675000
+v 0.675000 0.750000 -0.675000
+v -0.600000 0.750000 0.600000
+v -0.600000 0.750000 -0.600000
+v 0.600000 0.750000 -0.600000
+v 0.600000 0.750000 0.600000
+v 0.750000 0.600000 -0.600000
+v 0.750000 -0.600000 -0.600000
+v 0.750000 -0.600000 0.600000
+v 0.750000 0.600000 0.600000
+v -0.600000 -0.600000 0.750000
+v -0.600000 0.600000 0.750000
+v 0.600000 0.600000 0.750000
+v 0.600000 -0.600000 0.750000
+v -0.750000 -0.600000 -0.600000
+v -0.750000 -0.600000 0.600000
+v -0.750000 0.600000 0.600000
+v -0.750000 0.600000 -0.600000
+v -0.600000 0.600000 -0.750000
+v -0.600000 -0.600000 -0.750000
+v 0.600000 -0.600000 -0.750000
+v 0.600000 0.600000 -0.750000
+v -0.600000 -0.750000 -0.600000
+v -0.600000 -0.750000 0.600000
+v 0.600000 -0.750000 -0.600000
+v 0.600000 -0.750000 0.600000
+v -0.539011 0.673763 0.539011
+v -0.539011 0.673763 -0.539011
+v 0.539011 0.673763 -0.539011
+v 0.539011 0.673763 0.539011
+v 0.673763 0.539011 -0.539011
+v 0.673763 -0.539011 -0.539011
+v 0.673763 -0.539011 0.539011
+v 0.673763 0.539011 0.539011
+v -0.539011 -0.539011 0.673763
+v -0.539011 0.539011 0.673763
+v 0.539011 0.539011 0.673763
+v 0.539011 -0.539011 0.673763
+v -0.673763 -0.539011 -0.539011
+v -0.673763 -0.539011 0.539011
+v -0.673763 0.539011 0.539011
+v -0.673763 0.539011 -0.539011
+v -0.539011 0.539011 -0.673763
+v -0.539011 -0.539011 -0.673763
+v 0.539011 -0.539011 -0.673763
+v 0.539011 0.539011 -0.673763
+v -0.539011 -0.673763 -0.539011
+v -0.539011 -0.673763 0.539011
+v 0.539011 -0.673763 -0.539011
+v 0.539011 -0.673763 0.539011
+vt 0.625000 0.500000
+vt 0.875000 0.500000
+vt 0.875000 0.750000
+vt 0.625000 0.750000
+vt 0.375000 0.500000
+vt 0.625000 0.500000
+vt 0.625000 0.750000
+vt 0.375000 0.750000
+vt 0.375000 0.750000
+vt 0.625000 0.750000
+vt 0.625000 1.000000
+vt 0.375000 1.000000
+vt 0.375000 0.000000
+vt 0.625000 0.000000
+vt 0.625000 0.250000
+vt 0.375000 0.250000
+vt 0.375000 0.250000
+vt 0.625000 0.250000
+vt 0.625000 0.500000
+vt 0.375000 0.500000
+vt 0.125000 0.500000
+vt 0.375000 0.500000
+vt 0.375000 0.750000
+vt 0.125000 0.750000
+vt 0.375000 0.000000
+vt 0.625000 0.000000
+vt 0.625000 0.000000
+vt 0.375000 0.000000
+vt 0.625000 0.500000
+vt 0.375000 0.500000
+vt 0.375000 0.500000
+vt 0.625000 0.500000
+vt 0.625000 0.750000
+vt 0.625000 0.750000
+vt 0.625000 0.500000
+vt 0.375000 0.000000
+vt 0.625000 0.000000
+vt 0.375000 0.750000
+vt 0.125000 0.750000
+vt 0.125000 0.750000
+vt 0.375000 0.750000
+vt 0.625000 0.500000
+vt 0.625000 0.750000
+vt 0.375000 0.750000
+vt 0.375000 0.750000
+vt 0.625000 0.750000
+vt 0.625000 0.250000
+vt 0.625000 0.000000
+vt 0.625000 0.250000
+vt 0.625000 1.000000
+vt 0.625000 1.000000
+vt 0.125000 0.500000
+vt 0.125000 0.500000
+vt 0.375000 0.500000
+vt 0.375000 0.500000
+vt 0.125000 0.750000
+vt 0.375000 0.750000
+vt 0.375000 0.750000
+vt 0.125000 0.750000
+vt 0.625000 1.000000
+vt 0.625000 0.750000
+vt 0.625000 0.750000
+vt 0.625000 1.000000
+vt 0.625000 0.250000
+vt 0.125000 0.500000
+vt 0.125000 0.750000
+vt 0.125000 0.500000
+vt 0.375000 0.250000
+vt 0.375000 0.250000
+vt 0.125000 0.500000
+vt 0.125000 0.500000
+vt 0.125000 0.750000
+vt 0.625000 0.250000
+vt 0.375000 0.250000
+vt 0.625000 0.000000
+vt 0.375000 0.000000
+vt 0.375000 0.500000
+vt 0.625000 0.250000
+vt 0.375000 0.500000
+vt 0.625000 1.000000
+vt 0.625000 0.750000
+vt 0.625000 0.500000
+vt 0.625000 0.250000
+vt 0.375000 0.250000
+vt 0.375000 0.750000
+vt 0.625000 0.000000
+vt 0.625000 0.250000
+vt 0.625000 0.500000
+vt 0.375000 0.500000
+vt 0.625000 0.500000
+vt 0.375000 0.000000
+vt 0.625000 0.000000
+vt 0.125000 0.750000
+vt 0.125000 0.500000
+vt 0.375000 0.250000
+vn 0.0000 1.0000 0.0000
+vn 1.0000 0.0000 0.0000
+vn 0.0000 0.0000 1.0000
+vn -1.0000 0.0000 0.0000
+vn 0.0000 0.0000 -1.0000
+vn 0.0000 -1.0000 0.0000
+vn -0.7071 0.0000 0.7071
+vn 0.7071 0.0000 -0.7071
+vn 0.8944 0.4472 0.0000
+vn 0.6247 0.0000 -0.7809
+vn 0.0000 0.7809 -0.6247
+vn 0.7071 0.0000 0.7071
+vn 0.8944 -0.4472 0.0000
+vn 0.0000 0.7809 0.6247
+vn 0.0000 -0.4472 0.8944
+vn 0.0000 0.4472 0.8944
+vn 0.0000 0.6247 -0.7809
+vn -0.8944 0.4472 0.0000
+vn -0.8944 -0.4472 0.0000
+vn -0.7071 0.0000 -0.7071
+vn 0.7809 -0.6247 0.0000
+vn 0.0000 -0.4472 -0.8944
+vn 0.0000 0.4472 -0.8944
+vn -0.6247 0.0000 -0.7809
+vn -0.6247 -0.7809 0.0000
+vn 0.0000 -0.6247 0.7809
+vn 0.0000 -0.7809 0.6247
+vn 0.0000 -0.7809 -0.6247
+vn -0.6247 0.0000 0.7809
+vn -0.7809 -0.6247 0.0000
+vn -0.7809 0.0000 -0.6247
+vn 0.0000 -0.6247 -0.7809
+vn 0.7809 0.6247 0.0000
+vn 0.6247 0.0000 0.7809
+vn 0.0000 0.6247 0.7809
+vn 0.7809 0.0000 0.6247
+vn 0.6247 0.7809 0.0000
+vn -0.6247 0.7809 0.0000
+vn -0.7809 0.6247 0.0000
+vn -0.7809 0.0000 0.6247
+vn 0.7809 0.0000 -0.6247
+vn 0.6247 -0.7809 0.0000
+usemtl Material.003
+s off
+f 3/1/1 2/2/1 1/3/1 4/4/1
+f 6/5/2 5/6/2 8/7/2 7/8/2
+f 12/9/3 11/10/3 10/11/3 9/12/3
+f 14/13/4 15/14/4 16/15/4 13/16/4
+f 18/17/5 17/18/5 20/19/5 19/20/5
+f 21/21/6 23/22/6 24/23/6 22/24/6
+usemtl Material.001
+f 25/25/7 26/26/7 47/27/7 46/28/7
+f 32/29/8 31/30/8 51/31/8 52/32/8
+f 32/29/9 30/33/9 40/34/9 37/35/9
+f 26/26/7 25/25/7 41/36/7 42/37/7
+f 29/38/6 25/39/6 54/40/6 56/41/6
+f 30/33/1 32/29/1 35/42/1 36/43/1
+f 40/34/10 39/44/10 63/45/10 64/46/10
+f 28/47/1 26/26/1 33/48/1 34/49/1
+f 26/50/1 30/33/1 36/43/1 33/51/1
+f 32/29/1 28/47/1 34/49/1 35/42/1
+f 51/31/11 50/52/11 74/53/11 75/54/11
+f 31/30/8 32/29/8 37/35/8 38/55/8
+f 30/33/12 29/38/12 39/44/12 40/34/12
+f 29/38/13 31/30/13 38/55/13 39/44/13
+f 41/56/14 44/57/14 68/58/14 65/59/14
+f 25/39/15 29/38/15 44/57/15 41/56/15
+f 30/33/16 26/50/16 42/60/16 43/61/16
+f 29/38/12 30/33/12 43/61/12 44/57/12
+f 33/51/17 36/43/17 60/62/17 57/63/17
+f 26/26/18 28/47/18 48/64/18 47/27/18
+f 27/65/19 25/39/19 46/66/19 45/67/19
+f 28/47/20 27/68/20 45/69/20 48/64/20
+f 54/40/21 53/70/21 77/71/21 78/72/21
+f 31/30/22 27/65/22 50/52/22 51/31/22
+f 28/47/23 32/29/23 52/32/23 49/73/23
+f 27/68/20 28/47/20 49/73/20 50/74/20
+f 46/28/24 47/27/24 71/75/24 70/76/24
+f 27/65/6 31/30/6 55/77/6 53/70/6
+f 25/39/6 27/65/6 53/70/6 54/40/6
+f 31/30/6 29/38/6 56/41/6 55/77/6
+f 47/27/25 48/64/25 72/78/25 71/75/25
+f 53/70/26 55/77/26 79/79/26 77/71/26
+f 43/61/27 42/60/27 66/80/27 67/81/27
+f 49/73/28 52/32/28 76/82/28 73/83/28
+f 48/64/29 45/69/29 69/84/29 72/78/29
+f 55/77/30 56/41/30 80/85/30 79/79/30
+f 52/32/31 51/31/31 75/54/31 76/82/31
+f 56/41/32 54/40/32 78/72/32 80/85/32
+f 34/49/33 33/48/33 57/86/33 58/87/33
+f 38/55/34 37/35/34 61/88/34 62/89/34
+f 35/42/35 34/49/35 58/87/35 59/90/35
+f 42/37/36 41/36/36 65/91/36 66/92/36
+f 39/44/37 38/55/37 62/89/37 63/45/37
+f 45/67/38 46/66/38 70/93/38 69/94/38
+f 36/43/39 35/42/39 59/90/39 60/62/39
+f 44/57/40 43/61/40 67/81/40 68/58/40
+f 50/74/41 49/73/41 73/83/41 74/95/41
+f 37/35/42 40/34/42 64/46/42 61/88/42
diff --git a/export_presets.cfg b/export_presets.cfg
new file mode 100644
index 0000000..207c54c
--- /dev/null
+++ b/export_presets.cfg
@@ -0,0 +1,34 @@
+[preset.0]
+
+name="HTML5"
+platform="HTML5"
+runnable=true
+custom_features=""
+export_filter="all_resources"
+include_filter=""
+exclude_filter=""
+export_path="../html5/nj26.html"
+script_export_mode=1
+script_encryption_key=""
+
+[preset.0.options]
+
+custom_template/debug=""
+custom_template/release=""
+variant/export_type=0
+vram_texture_compression/for_desktop=true
+vram_texture_compression/for_mobile=false
+html/export_icon=true
+html/custom_html_shell=""
+html/head_include=""
+html/canvas_resize_policy=2
+html/focus_canvas_on_start=true
+html/experimental_virtual_keyboard=false
+progressive_web_app/enabled=false
+progressive_web_app/offline_page=""
+progressive_web_app/display=1
+progressive_web_app/orientation=0
+progressive_web_app/icon_144x144=""
+progressive_web_app/icon_180x180=""
+progressive_web_app/icon_512x512=""
+progressive_web_app/background_color=Color( 0, 0, 0, 1 )
diff --git a/project.godot b/project.godot
index f37b6b9..6dc30a1 100644
--- a/project.godot
+++ b/project.godot
@@ -8,15 +8,61 @@
config_version=4
+_global_script_classes=[ {
+"base": "RigidBody",
+"class": "Zombie",
+"language": "GDScript",
+"path": "res://zombie.gd"
+} ]
+_global_script_class_icons={
+"Zombie": ""
+}
+
[application]
config/name="nj26"
+run/main_scene="res://Spatial.tscn"
config/icon="res://icon.png"
[gui]
common/drop_mouse_on_gui_input_disabled=true
+[input]
+
+p1_up={
+"deadzone": 0.5,
+"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":87,"unicode":0,"echo":false,"script":null)
+, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":16777232,"unicode":0,"echo":false,"script":null)
+, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
+, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
+ ]
+}
+p1_down={
+"deadzone": 0.5,
+"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":83,"unicode":0,"echo":false,"script":null)
+, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":16777234,"unicode":0,"echo":false,"script":null)
+, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
+, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null)
+ ]
+}
+p1_left={
+"deadzone": 0.5,
+"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":16777231,"unicode":0,"echo":false,"script":null)
+, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
+, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
+, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
+ ]
+}
+p1_right={
+"deadzone": 0.5,
+"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":16777233,"unicode":0,"echo":false,"script":null)
+, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":68,"unicode":0,"echo":false,"script":null)
+, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
+, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
+ ]
+}
+
[physics]
common/enable_pause_aware_picking=true
diff --git a/zombie.gd b/zombie.gd
new file mode 100644
index 0000000..aa024c9
--- /dev/null
+++ b/zombie.gd
@@ -0,0 +1,92 @@
+class_name Zombie extends RigidBody
+
+enum Dir {
+ none
+ up
+ down
+ left
+ right
+}
+
+var dir = Dir.none
+var lastdir
+var tlast = 0
+var frame_i = 0
+
+var images: Dictionary = {}
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+func _physics_process(delta):
+ var updown = ((Input.get_action_strength("p1_down")
+ - Input.get_action_strength("p1_up")) * 2 * delta)
+ var rightleft = ((Input.get_action_strength("p1_right")
+ - Input.get_action_strength("p1_left")) * 2 * delta)
+
+
+ if rightleft:
+ if rightleft > 0:
+ dir = Dir.right
+ else:
+ dir = Dir.left
+ elif updown:
+ if updown > 0:
+ dir = Dir.up
+ else:
+ dir = Dir.down
+ else:
+ dir = Dir.none
+
+ self.translate(Vector3(rightleft, 0, updown))
+
+func getid() -> String:
+ var id = ""
+
+ match dir:
+ Dir.none:
+ id += "n"
+ Dir.up:
+ id += "f"
+ Dir.down:
+ id += "b"
+ Dir.left:
+ id += "l"
+ Dir.right:
+ id += "r"
+
+ id += String(frame_i)
+ return id
+
+func setimg(id: String):
+ var mesh = get_node("MeshInstance")
+ var material = mesh.get_surface_material(0).duplicate()
+
+ material.albedo_texture = images[id]
+ mesh.set_surface_material(0, material)
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta):
+ tlast += delta
+
+ if tlast > 0.15:
+ tlast = 0
+ frame_i += 1
+
+ if frame_i >= 8:
+ frame_i = 0
+
+ if lastdir != dir:
+ tlast = 0
+ frame_i = 0
+
+ lastdir = dir
+ setimg(getid())
+
+func _init():
+ for f in ["n", "f", "b", "l", "r"]:
+ for i in range(8):
+ var id = f + String(i)
+ var path = "res://zombie/" + id + ".png"
+ images[id] = load(path)
diff --git a/zombie.tscn b/zombie.tscn
new file mode 100644
index 0000000..c467511
--- /dev/null
+++ b/zombie.tscn
@@ -0,0 +1,24 @@
+[gd_scene load_steps=6 format=2]
+
+[ext_resource path="res://zombie/f1.png" type="Texture" id=1]
+[ext_resource path="res://zombie.gd" type="Script" id=2]
+
+[sub_resource type="PlaneMesh" id=1]
+size = Vector2( 1, 2 )
+
+[sub_resource type="SpatialMaterial" id=2]
+albedo_texture = ExtResource( 1 )
+
+[sub_resource type="BoxShape" id=3]
+extents = Vector3( 0.5, 1, 0.25 )
+
+[node name="RigidBody" type="RigidBody"]
+script = ExtResource( 2 )
+
+[node name="MeshInstance" type="MeshInstance" parent="."]
+transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
+mesh = SubResource( 1 )
+material/0 = SubResource( 2 )
+
+[node name="CollisionShape" type="CollisionShape" parent="."]
+shape = SubResource( 3 )
diff --git a/zombie/b0.png b/zombie/b0.png
new file mode 100644
index 0000000..3d7bfbf
--- /dev/null
+++ b/zombie/b0.png
Binary files differ
diff --git a/zombie/b1.png b/zombie/b1.png
new file mode 100644
index 0000000..325caa1
--- /dev/null
+++ b/zombie/b1.png
Binary files differ
diff --git a/zombie/b2.png b/zombie/b2.png
new file mode 100644
index 0000000..b10524d
--- /dev/null
+++ b/zombie/b2.png
Binary files differ
diff --git a/zombie/b3.png b/zombie/b3.png
new file mode 100644
index 0000000..574cbea
--- /dev/null
+++ b/zombie/b3.png
Binary files differ
diff --git a/zombie/b4.png b/zombie/b4.png
new file mode 100644
index 0000000..6257c07
--- /dev/null
+++ b/zombie/b4.png
Binary files differ
diff --git a/zombie/b5.png b/zombie/b5.png
new file mode 100644
index 0000000..71d228c
--- /dev/null
+++ b/zombie/b5.png
Binary files differ
diff --git a/zombie/b6.png b/zombie/b6.png
new file mode 100644
index 0000000..b0a1825
--- /dev/null
+++ b/zombie/b6.png
Binary files differ
diff --git a/zombie/b7.png b/zombie/b7.png
new file mode 100644
index 0000000..3ef193b
--- /dev/null
+++ b/zombie/b7.png
Binary files differ
diff --git a/zombie/f0.png b/zombie/f0.png
new file mode 100644
index 0000000..e3a0799
--- /dev/null
+++ b/zombie/f0.png
Binary files differ
diff --git a/zombie/f1.png b/zombie/f1.png
new file mode 100644
index 0000000..f45e98f
--- /dev/null
+++ b/zombie/f1.png
Binary files differ
diff --git a/zombie/f2.png b/zombie/f2.png
new file mode 100644
index 0000000..f28642e
--- /dev/null
+++ b/zombie/f2.png
Binary files differ
diff --git a/zombie/f3.png b/zombie/f3.png
new file mode 100644
index 0000000..24989af
--- /dev/null
+++ b/zombie/f3.png
Binary files differ
diff --git a/zombie/f4.png b/zombie/f4.png
new file mode 100644
index 0000000..24fff5d
--- /dev/null
+++ b/zombie/f4.png
Binary files differ
diff --git a/zombie/f5.png b/zombie/f5.png
new file mode 100644
index 0000000..dd7d60e
--- /dev/null
+++ b/zombie/f5.png
Binary files differ
diff --git a/zombie/f6.png b/zombie/f6.png
new file mode 100644
index 0000000..dbb6b1a
--- /dev/null
+++ b/zombie/f6.png
Binary files differ
diff --git a/zombie/f7.png b/zombie/f7.png
new file mode 100644
index 0000000..1841665
--- /dev/null
+++ b/zombie/f7.png
Binary files differ
diff --git a/zombie/l0.png b/zombie/l0.png
new file mode 100644
index 0000000..7b7036c
--- /dev/null
+++ b/zombie/l0.png
Binary files differ
diff --git a/zombie/l1.png b/zombie/l1.png
new file mode 100644
index 0000000..0229eb6
--- /dev/null
+++ b/zombie/l1.png
Binary files differ
diff --git a/zombie/l2.png b/zombie/l2.png
new file mode 100644
index 0000000..94b8e04
--- /dev/null
+++ b/zombie/l2.png
Binary files differ
diff --git a/zombie/l3.png b/zombie/l3.png
new file mode 100644
index 0000000..ff1fdab
--- /dev/null
+++ b/zombie/l3.png
Binary files differ
diff --git a/zombie/l4.png b/zombie/l4.png
new file mode 100644
index 0000000..28bdf97
--- /dev/null
+++ b/zombie/l4.png
Binary files differ
diff --git a/zombie/l5.png b/zombie/l5.png
new file mode 100644
index 0000000..5051dd4
--- /dev/null
+++ b/zombie/l5.png
Binary files differ
diff --git a/zombie/l6.png b/zombie/l6.png
new file mode 100644
index 0000000..8d554f2
--- /dev/null
+++ b/zombie/l6.png
Binary files differ
diff --git a/zombie/l7.png b/zombie/l7.png
new file mode 100644
index 0000000..4054dbf
--- /dev/null
+++ b/zombie/l7.png
Binary files differ
diff --git a/zombie/n0.png b/zombie/n0.png
new file mode 100644
index 0000000..668042e
--- /dev/null
+++ b/zombie/n0.png
Binary files differ
diff --git a/zombie/n1.png b/zombie/n1.png
new file mode 100644
index 0000000..3e46dfb
--- /dev/null
+++ b/zombie/n1.png
Binary files differ
diff --git a/zombie/n2.png b/zombie/n2.png
new file mode 100644
index 0000000..7f539c0
--- /dev/null
+++ b/zombie/n2.png
Binary files differ
diff --git a/zombie/n3.png b/zombie/n3.png
new file mode 100644
index 0000000..816fd2d
--- /dev/null
+++ b/zombie/n3.png
Binary files differ
diff --git a/zombie/n4.png b/zombie/n4.png
new file mode 100644
index 0000000..60bc73e
--- /dev/null
+++ b/zombie/n4.png
Binary files differ
diff --git a/zombie/n5.png b/zombie/n5.png
new file mode 100644
index 0000000..4a6b882
--- /dev/null
+++ b/zombie/n5.png
Binary files differ
diff --git a/zombie/n6.png b/zombie/n6.png
new file mode 100644
index 0000000..1a7f57d
--- /dev/null
+++ b/zombie/n6.png
Binary files differ
diff --git a/zombie/n7.png b/zombie/n7.png
new file mode 100644
index 0000000..a0e1058
--- /dev/null
+++ b/zombie/n7.png
Binary files differ
diff --git a/zombie/r0.png b/zombie/r0.png
new file mode 100644
index 0000000..b47a23f
--- /dev/null
+++ b/zombie/r0.png
Binary files differ
diff --git a/zombie/r1.png b/zombie/r1.png
new file mode 100644
index 0000000..d66a639
--- /dev/null
+++ b/zombie/r1.png
Binary files differ
diff --git a/zombie/r2.png b/zombie/r2.png
new file mode 100644
index 0000000..b63d568
--- /dev/null
+++ b/zombie/r2.png
Binary files differ
diff --git a/zombie/r3.png b/zombie/r3.png
new file mode 100644
index 0000000..15129b1
--- /dev/null
+++ b/zombie/r3.png
Binary files differ
diff --git a/zombie/r4.png b/zombie/r4.png
new file mode 100644
index 0000000..c63ffca
--- /dev/null
+++ b/zombie/r4.png
Binary files differ
diff --git a/zombie/r5.png b/zombie/r5.png
new file mode 100644
index 0000000..b19c871
--- /dev/null
+++ b/zombie/r5.png
Binary files differ
diff --git a/zombie/r6.png b/zombie/r6.png
new file mode 100644
index 0000000..3fb0803
--- /dev/null
+++ b/zombie/r6.png
Binary files differ
diff --git a/zombie/r7.png b/zombie/r7.png
new file mode 100644
index 0000000..0eb71fb
--- /dev/null
+++ b/zombie/r7.png
Binary files differ