otter animations added

This commit is contained in:
Arthur
2022-12-10 18:03:32 +01:00
parent 8366aaf268
commit 591fa6c260
24 changed files with 394 additions and 15 deletions

View File

@@ -117,5 +117,9 @@ playing = true
[node name="Storage" parent="." instance=ExtResource("4_5jw5g")] [node name="Storage" parent="." instance=ExtResource("4_5jw5g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31598, 0.0193453, -5.2771) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31598, 0.0193453, -5.2771)
[node name="Storage2" parent="." instance=ExtResource("4_5jw5g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31598, 0.0193453, 0.876562)
currentType = 2
[node name="Cannon" parent="." instance=ExtResource("5_vgxqe")] [node name="Cannon" parent="." instance=ExtResource("5_vgxqe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.4817, 1.2303, 0.0486939) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.4817, 1.2303, 0.0486939)

View File

@@ -1,13 +1,18 @@
[gd_scene load_steps=14 format=3 uid="uid://ckkn7rha3voqv"] [gd_scene load_steps=19 format=3 uid="uid://bikdn7ep2vpxw"]
[ext_resource type="Script" path="res://scripts/Train.gd" id="1_mcmgl"] [ext_resource type="Script" path="res://scripts/Train.gd" id="1_mcmgl"]
[ext_resource type="PackedScene" uid="uid://c1mymb38wqdg6" path="res://Nodes/train.tscn" id="2_xoa1a"] [ext_resource type="PackedScene" uid="uid://c1mymb38wqdg6" path="res://Nodes/train.tscn" id="2_xoa1a"]
[ext_resource type="PackedScene" uid="uid://vwjd5od63jgh" path="res://Nodes/Player.tscn" id="3_x8j45"] [ext_resource type="PackedScene" uid="uid://vwjd5od63jgh" path="res://Nodes/Player.tscn" id="3_x8j45"]
[ext_resource type="Texture2D" uid="uid://dsphpbpt27t1i" path="res://a3TCqhg.png" id="4_jkvql"] [ext_resource type="Texture2D" uid="uid://cxfybbp5idjwg" path="res://o_idle1.png" id="4_7ygjr"]
[ext_resource type="Texture2D" uid="uid://d1m2jplf8u0h0" path="res://Nodes/walking_ball1.png" id="5_agdvf"] [ext_resource type="Texture2D" uid="uid://dh6hvv1lfdnm1" path="res://o_idle2.png" id="5_p3dnb"]
[ext_resource type="Texture2D" uid="uid://eg0k8esm2scp" path="res://p5lFkJY.png" id="6_lxfv3"] [ext_resource type="Texture2D" uid="uid://c1v5tc8lk8pdo" path="res://o_walking_ball1.png" id="6_feotg"]
[ext_resource type="Texture2D" uid="uid://du7d6fk4dabd7" path="res://cVOQuID.png" id="7_35jf0"] [ext_resource type="Texture2D" uid="uid://bjrhp4dqckoxf" path="res://o_walking1.png" id="7_4lb8v"]
[ext_resource type="Texture2D" uid="uid://ctbxpx6p36bdi" path="res://walking_ball2.png" id="8_cgycp"] [ext_resource type="Texture2D" uid="uid://ci4yd4vjr17o1" path="res://o_walking_coal1.png" id="7_jsqie"]
[ext_resource type="Texture2D" uid="uid://os0kogn0mkus" path="res://o_walking_powder1.png" id="7_lwj85"]
[ext_resource type="Texture2D" uid="uid://j7jwtqmvg0m8" path="res://o_walking2.png" id="8_isr5o"]
[ext_resource type="Texture2D" uid="uid://djsergj3l4t2c" path="res://o_walking_ball2.png" id="9_rt6ws"]
[ext_resource type="Texture2D" uid="uid://ctssikrodjqvc" path="res://o_walking_powder2.png" id="11_eefgn"]
[ext_resource type="Texture2D" uid="uid://nctqw3vt5q0y" path="res://o_walking_coal2.png" id="12_581v4"]
[sub_resource type="BoxShape3D" id="BoxShape3D_dijw3"] [sub_resource type="BoxShape3D" id="BoxShape3D_dijw3"]
size = Vector3(1, 3.77669, 24) size = Vector3(1, 3.77669, 24)
@@ -23,25 +28,45 @@ size = Vector3(1, 6, 9.05915)
[sub_resource type="SpriteFrames" id="SpriteFrames_ltjyh"] [sub_resource type="SpriteFrames" id="SpriteFrames_ltjyh"]
animations = [{ animations = [{
"frames": [ExtResource("4_jkvql")], "frames": [ExtResource("4_7ygjr"), ExtResource("5_p3dnb")],
"loop": true, "loop": true,
"name": &"idle", "name": &"idle",
"speed": 1.0 "speed": 2.0
}, { }, {
"frames": [ExtResource("5_agdvf")], "frames": [ExtResource("6_feotg")],
"loop": true, "loop": true,
"name": &"idle_ball", "name": &"idle_ball",
"speed": 1.0 "speed": 1.0
}, { }, {
"frames": [ExtResource("6_lxfv3"), ExtResource("7_35jf0")], "frames": [ExtResource("7_jsqie")],
"loop": true,
"name": &"idle_coal",
"speed": 1.0
}, {
"frames": [ExtResource("7_lwj85")],
"loop": true,
"name": &"idle_powder",
"speed": 1.0
}, {
"frames": [ExtResource("7_4lb8v"), ExtResource("8_isr5o")],
"loop": true, "loop": true,
"name": &"walking", "name": &"walking",
"speed": 2.0 "speed": 2.0
}, { }, {
"frames": [ExtResource("5_agdvf"), ExtResource("8_cgycp")], "frames": [ExtResource("6_feotg"), ExtResource("9_rt6ws")],
"loop": true, "loop": true,
"name": &"walking_ball", "name": &"walking_ball",
"speed": 2.0 "speed": 2.0
}, {
"frames": [ExtResource("7_jsqie"), ExtResource("12_581v4")],
"loop": true,
"name": &"walking_coal",
"speed": 2.0
}, {
"frames": [ExtResource("7_lwj85"), ExtResource("11_eefgn")],
"loop": true,
"name": &"walking_powder",
"speed": 2.0
}] }]
[node name="Train2" type="Node3D"] [node name="Train2" type="Node3D"]
@@ -84,6 +109,6 @@ transform = Transform3D(1, 0, -3.55271e-15, 0, 1, 0, 3.55271e-15, 0, 1, 2.84217e
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="CharacterBody3D"] [node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="CharacterBody3D"]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, 0, -2, 0) transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, 0, -2, 0)
frames = SubResource("SpriteFrames_ltjyh") frames = SubResource("SpriteFrames_ltjyh")
animation = &"idle_ball" animation = &"walking_coal"
speed_scale = 2.0 speed_scale = 2.0
playing = true playing = true

View File

@@ -2,9 +2,9 @@
[ext_resource type="Script" path="res://scripts/Logic/Game.gd" id="1_iox18"] [ext_resource type="Script" path="res://scripts/Logic/Game.gd" id="1_iox18"]
[ext_resource type="PackedScene" uid="uid://bqe8ucbruto1j" path="res://Nodes/StartNode.tscn" id="2_61aog"] [ext_resource type="PackedScene" uid="uid://bqe8ucbruto1j" path="res://Nodes/StartNode.tscn" id="2_61aog"]
[ext_resource type="PackedScene" path="res://Nodes/Train_P1.tscn" id="3_0be5n"] [ext_resource type="PackedScene" uid="uid://md2ofbviios3" path="res://Nodes/Train_P1.tscn" id="3_0be5n"]
[ext_resource type="PackedScene" uid="uid://cys06pnxfjl2m" path="res://Nodes/UI.tscn" id="4_kxuy0"] [ext_resource type="PackedScene" uid="uid://cys06pnxfjl2m" path="res://Nodes/UI.tscn" id="4_kxuy0"]
[ext_resource type="PackedScene" path="res://Nodes/Train_P2.tscn" id="4_lmu0s"] [ext_resource type="PackedScene" uid="uid://bikdn7ep2vpxw" path="res://Nodes/Train_P2.tscn" id="4_lmu0s"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ghq3e"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ghq3e"]
sky_top_color = Color(0.662745, 0.356863, 0.129412, 1) sky_top_color = Color(0.662745, 0.356863, 0.129412, 1)

BIN
o_idle1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

34
o_idle1.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cxfybbp5idjwg"
path="res://.godot/imported/o_idle1.png-9ad1e33384b578c92256776007ea4475.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://o_idle1.png"
dest_files=["res://.godot/imported/o_idle1.png-9ad1e33384b578c92256776007ea4475.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

BIN
o_idle2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

34
o_idle2.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dh6hvv1lfdnm1"
path="res://.godot/imported/o_idle2.png-7afb0370a35b05edb0e1dd193916e55e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://o_idle2.png"
dest_files=["res://.godot/imported/o_idle2.png-7afb0370a35b05edb0e1dd193916e55e.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

BIN
o_walking1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

34
o_walking1.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bjrhp4dqckoxf"
path="res://.godot/imported/o_walking1.png-a570560a8bd4e4a4c247cf9076ed1d3d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://o_walking1.png"
dest_files=["res://.godot/imported/o_walking1.png-a570560a8bd4e4a4c247cf9076ed1d3d.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

BIN
o_walking2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

34
o_walking2.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://j7jwtqmvg0m8"
path="res://.godot/imported/o_walking2.png-1556805b62e7ad576cd1fdf859df52a4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://o_walking2.png"
dest_files=["res://.godot/imported/o_walking2.png-1556805b62e7ad576cd1fdf859df52a4.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

BIN
o_walking_ball1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1v5tc8lk8pdo"
path.s3tc="res://.godot/imported/o_walking_ball1.png-db942bba1c9d5c750a565458e8ed5e89.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_ball1.png-db942bba1c9d5c750a565458e8ed5e89.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_ball1.png"
dest_files=["res://.godot/imported/o_walking_ball1.png-db942bba1c9d5c750a565458e8ed5e89.s3tc.ctex", "res://.godot/imported/o_walking_ball1.png-db942bba1c9d5c750a565458e8ed5e89.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

BIN
o_walking_ball2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djsergj3l4t2c"
path="res://.godot/imported/o_walking_ball2.png-24e87b674c9c350af889c915ece4444e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://o_walking_ball2.png"
dest_files=["res://.godot/imported/o_walking_ball2.png-24e87b674c9c350af889c915ece4444e.ctex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
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

BIN
o_walking_coal1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ci4yd4vjr17o1"
path.s3tc="res://.godot/imported/o_walking_coal1.png-ffdb06a726c3ad120972ad0831bb4ed5.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_coal1.png-ffdb06a726c3ad120972ad0831bb4ed5.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_coal1.png"
dest_files=["res://.godot/imported/o_walking_coal1.png-ffdb06a726c3ad120972ad0831bb4ed5.s3tc.ctex", "res://.godot/imported/o_walking_coal1.png-ffdb06a726c3ad120972ad0831bb4ed5.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

BIN
o_walking_coal2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://nctqw3vt5q0y"
path.s3tc="res://.godot/imported/o_walking_coal2.png-05a9020fc65605a77e717f3532b6b309.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_coal2.png-05a9020fc65605a77e717f3532b6b309.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_coal2.png"
dest_files=["res://.godot/imported/o_walking_coal2.png-05a9020fc65605a77e717f3532b6b309.s3tc.ctex", "res://.godot/imported/o_walking_coal2.png-05a9020fc65605a77e717f3532b6b309.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

BIN
o_walking_powder1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://os0kogn0mkus"
path.s3tc="res://.godot/imported/o_walking_powder1.png-fedd9f79d2c93a926d436b81ebedb88b.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_powder1.png-fedd9f79d2c93a926d436b81ebedb88b.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_powder1.png"
dest_files=["res://.godot/imported/o_walking_powder1.png-fedd9f79d2c93a926d436b81ebedb88b.s3tc.ctex", "res://.godot/imported/o_walking_powder1.png-fedd9f79d2c93a926d436b81ebedb88b.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

BIN
o_walking_powder2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ctssikrodjqvc"
path.s3tc="res://.godot/imported/o_walking_powder2.png-defbe8d19c7108c30dd611e1857d571f.s3tc.ctex"
path.etc2="res://.godot/imported/o_walking_powder2.png-defbe8d19c7108c30dd611e1857d571f.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://o_walking_powder2.png"
dest_files=["res://.godot/imported/o_walking_powder2.png-defbe8d19c7108c30dd611e1857d571f.s3tc.ctex", "res://.godot/imported/o_walking_powder2.png-defbe8d19c7108c30dd611e1857d571f.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

View File

@@ -87,6 +87,6 @@ func fill_inventory(type):
1: 1:
walking = "walking_powder" walking = "walking_powder"
idle = "idle_powder" idle = "idle_powder"
3: 2:
walking = "walking_coal" walking = "walking_coal"
idle = "idle_coal" idle = "idle_coal"