Skip to content

Commit 6d47ab6

Browse files
committed
Add random townie character
Draw the character in Aseprite as layers. Each layer has a part variant and offset encoded in its name. For example: - "head_003" for variant 3 of the character head. - "body_002.dy_-12" for variant 2 of the character body, and an offset of -12 in the Y axis. Export each part variant as PNG. Create a scene with one AnimatedSprite2D node per part. Use the character sprite randomizer to randomly set the multiple PNGs of each part. Also use the cel-shading node and material in each part with skin. Add the character randomizer to the root node. Also add a test scene with multiple townies instantiated. Add talker behavior to them and some dialogue explanation.
1 parent 04d2b07 commit 6d47ab6

39 files changed

+1307
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-FileCopyrightText: The Threadbare Authors
2+
# SPDX-License-Identifier: MPL-2.0
3+
~ townie_1
4+
Hey, I'm not just a random guy. I have a very unique seed number.
5+
=> salute
6+
~ townie_2
7+
I'm blue! If you are happy with the random results, except for a thing...
8+
...you can activate Editable Children and then reset the character seed to zero. Then apply any changes to the inner nodes.
9+
=> salute
10+
~ townie_3
11+
~ townie_4
12+
~ salute
13+
[[See you around.|Welcome to the town!]]
14+
=> END
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[remap]
2+
3+
importer="dialogue_manager"
4+
importer_version=15
5+
type="Resource"
6+
uid="uid://n5gf3o4mmxlu"
7+
path="res://.godot/imported/character_randomizer_test.dialogue-40cb32867b5a5020b3c0cb6723f4f46d.tres"
8+
9+
[deps]
10+
11+
source_file="res://scenes/game_elements/characters/components/character_randomizer_test.dialogue"
12+
dest_files=["res://.godot/imported/character_randomizer_test.dialogue-40cb32867b5a5020b3c0cb6723f4f46d.tres"]
13+
14+
[params]
15+
16+
defaults=true

scenes/game_elements/characters/components/character_randomizer_test.tscn

Lines changed: 307 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://0t1eptqlcb8t"
6+
path="res://.godot/imported/townie-body_001.png-6d35c19fc3c13c2ee878a575e835679f.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://scenes/game_elements/characters/npcs/components/townie-body_001.png"
14+
dest_files=["res://.godot/imported/townie-body_001.png-6d35c19fc3c13c2ee878a575e835679f.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/uastc_level=0
22+
compress/rdo_quality_loss=0.0
23+
compress/hdr_compression=1
24+
compress/normal_map=0
25+
compress/channel_pack=0
26+
mipmaps/generate=false
27+
mipmaps/limit=-1
28+
roughness/mode=0
29+
roughness/src_normal=""
30+
process/channel_remap/red=0
31+
process/channel_remap/green=1
32+
process/channel_remap/blue=2
33+
process/channel_remap/alpha=3
34+
process/fix_alpha_border=true
35+
process/premult_alpha=false
36+
process/normal_map_invert_y=false
37+
process/hdr_as_srgb=false
38+
process/hdr_clamp_exposure=false
39+
process/size_limit=0
40+
detect_3d/compress_to=1
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://ccmsckg3l3iay"
6+
path="res://.godot/imported/townie-body_002.dy_-12.png-d34bc9c1d9cf388e514fefe0c1536492.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://scenes/game_elements/characters/npcs/components/townie-body_002.dy_-12.png"
14+
dest_files=["res://.godot/imported/townie-body_002.dy_-12.png-d34bc9c1d9cf388e514fefe0c1536492.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/uastc_level=0
22+
compress/rdo_quality_loss=0.0
23+
compress/hdr_compression=1
24+
compress/normal_map=0
25+
compress/channel_pack=0
26+
mipmaps/generate=false
27+
mipmaps/limit=-1
28+
roughness/mode=0
29+
roughness/src_normal=""
30+
process/channel_remap/red=0
31+
process/channel_remap/green=1
32+
process/channel_remap/blue=2
33+
process/channel_remap/alpha=3
34+
process/fix_alpha_border=true
35+
process/premult_alpha=false
36+
process/normal_map_invert_y=false
37+
process/hdr_as_srgb=false
38+
process/hdr_clamp_exposure=false
39+
process/size_limit=0
40+
detect_3d/compress_to=1
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://dlvcbntsncg18"
6+
path="res://.godot/imported/townie-body_002.png-5e739254d6cd3574ade20782a3bac17c.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://scenes/game_elements/characters/npcs/components/townie-body_002.png"
14+
dest_files=["res://.godot/imported/townie-body_002.png-5e739254d6cd3574ade20782a3bac17c.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/uastc_level=0
22+
compress/rdo_quality_loss=0.0
23+
compress/hdr_compression=1
24+
compress/normal_map=0
25+
compress/channel_pack=0
26+
mipmaps/generate=false
27+
mipmaps/limit=-1
28+
roughness/mode=0
29+
roughness/src_normal=""
30+
process/channel_remap/red=0
31+
process/channel_remap/green=1
32+
process/channel_remap/blue=2
33+
process/channel_remap/alpha=3
34+
process/fix_alpha_border=true
35+
process/premult_alpha=false
36+
process/normal_map_invert_y=false
37+
process/hdr_as_srgb=false
38+
process/hdr_clamp_exposure=false
39+
process/size_limit=0
40+
detect_3d/compress_to=1
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)