Cacodemon visuals.

This commit is contained in:
Kiri 2023-09-03 16:20:24 -07:00
parent 960895e24c
commit f3c66cb240
10 changed files with 84 additions and 8 deletions

View File

@ -1,7 +1,7 @@
- ~~Integrate caco plush~~
- ~~Makefile for caco plush sprites~~
- Jumper cables
- ~~Fix upper/lowercase consistency between objects~~
- ~~Jumper cables~~
- ~~Jumper cables ammohandler stuff~~
- ~~Fix wiring kit brightmaps~~
@ -14,4 +14,4 @@
- Organize source_data
- Fix upper/lowercase consistency between objects

View File

@ -58,5 +58,36 @@ brightmap sprite jmppc0
disablefullbright
}
// ----------------------------------------------------------------------
// Caco plushie brightmaps
brightmap sprite kcplb0
{
map "sprites/cacoplush/bright_cacoplushie_idle.png"
disablefullbright
}
brightmap sprite kcpld0
{
map "sprites/cacoplush/bright_cacoplushie_pickup.png"
disablefullbright
}
brightmap sprite kcple0
{
map "sprites/cacoplush/bright_cacoplushie_glowing1.png"
disablefullbright
}
brightmap sprite kcplf0
{
map "sprites/cacoplush/bright_cacoplushie_glowing2.png"
disablefullbright
}
brightmap sprite kcplg0
{
map "sprites/cacoplush/bright_cacoplushie_glowing3.png"
disablefullbright
}

View File

@ -23,7 +23,12 @@ all : \
../sprites/cacoplush/cacoplushie_glowing1.png \
../sprites/cacoplush/cacoplushie_glowing2.png \
../sprites/cacoplush/cacoplushie_glowing3.png \
../sprites/cacoplush/cacoplushie_pickup.png
../sprites/cacoplush/cacoplushie_pickup.png \
../sprites/cacoplush/bright_cacoplushie_idle.png \
../sprites/cacoplush/bright_cacoplushie_pickup.png \
../sprites/cacoplush/bright_cacoplushie_glowing1.png \
../sprites/cacoplush/bright_cacoplushie_glowing2.png \
../sprites/cacoplush/bright_cacoplushie_glowing3.png
# Base frames
../sprites/gretchencounter/kgcma0.png : gretchencounter_weaponsprite.aseprite
@ -392,3 +397,26 @@ brightmaps : povsprite.aseprite
--ignore-layer "brightmap" \
--frame-range 1,3 --save-as ../sprites/cacoplush/cacoplushie_glowing.png
# Brightmaps
../sprites/cacoplush/bright_cacoplushie_idle.png : cacoplushie.aseprite
aseprite -b $^ \
--layer "brightmap" \
--scale 0.77 \
--frame-range 0,0 --save-as $@
../sprites/cacoplush/bright_cacoplushie_pickup.png : cacoplushie.aseprite
aseprite -b $^ \
--layer "brightmap" \
--frame-range 0,0 \
--scale 0.25 \
--save-as $@
../sprites/cacoplush/bright_cacoplushie_glowing1.png \
../sprites/cacoplush/bright_cacoplushie_glowing2.png \
../sprites/cacoplush/bright_cacoplushie_glowing3.png : cacoplushie.aseprite
aseprite -b $^ \
--scale 0.77 \
--layer "brightmap" \
--frame-range 1,3 --save-as ../sprites/cacoplush/bright_cacoplushie_glowing.png

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -32,6 +32,7 @@ class KiriCacodemonPlushieProjectile : SlowProjectile
{
mass 500;
scale 0.3;
+bright;
}
// What item threw this?
@ -130,7 +131,7 @@ class KiriCacodemonPlushie : HDWeapon {
scale 0.63;
tag "cacodemon plushie";
tag "Cacodemon Plushie";
}
states
@ -548,6 +549,21 @@ class KiriCacodemonPlushie : HDWeapon {
}
}
// Spawn green balls.
if(spawned_creature) {
if(level.time & 1) {
double mrad = spawned_creature.radius * 0.3;
spawned_creature.A_SpawnParticle(
"green", SPF_FULLBRIGHT, 50,
frandom(4, 8), 0,
frandom(-mrad, mrad), frandom(-mrad, mrad), frandom(0.1, 0.9) * spawned_creature.height,
frandom(-0.2, 0.2), frandom(-0.2, 0.2), frandom(0.05, 0.2),
frandom(-0.05, 0.05), frandom(-0.05, 0.05), 0.06,
startalphaf : 0.8,
sizestep : 0.1);
}
}
} else {
// Monster is inside plushie. Sloooooooooooooowly
@ -720,9 +736,6 @@ class KiriCacodemonPlushie : HDWeapon {
shieldItem.amount = invoker.getMonsterShield();
}
// Copy player colors over.
spawned_thing.translation = invoker.owner.translation;
// Set the name.
spawned_thing.setTag(invoker.getMonsterName());
@ -745,6 +758,10 @@ class KiriCacodemonPlushie : HDWeapon {
// distinct!
//
// spawned_thing.A_SetTranslation("AllPurple");
//
// This would just copy the player colors over.
//
// spawned_thing.translation = invoker.owner.translation;
// Spawn flash.
spawn_ball.A_SpawnItemEx(