Damage visualizer for simple mobs (#1332)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
metalgearsloth
2020-07-23 10:04:03 +10:00
committed by GitHub
parent 9585c7b82d
commit 56737b635f
11 changed files with 146 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
# Hacky for the stress test so don't even consider adding to this
- type: entity
save: false
name: Xeno
name: Xeno hunter
id: XenoMob_Content
description: They mostly come at night. Mostly.
drawdepth: Mobs
@@ -14,15 +14,16 @@
- left
- right
- type: MovementSpeedModifier
# Organs
- type: InteractionOutline
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Species/xeno.rsi
state: running
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: running
sprite: Mobs/Species/xeno_hunter.rsi
- type: Icon
sprite: Mobs/Species/xeno.rsi
state: running
sprite: Mobs/Species/xeno_hunter.rsi
state: standing
- type: Clickable
- type: Physics
mass: 85
@@ -48,13 +49,16 @@
- type: Damageable
- type: CombatMode
- type: Teleportable
- type: CharacterInfo
- type: FootstepSound
- type: HumanoidAppearance
- type: Stunnable
- type: AnimationPlayer
- type: UnarmedCombat
range: 1.5
arcwidth: 0
arc: claw
damage: 90
- type: Appearance
visuals:
- type: DamageStateVisualizer2D
normal: running
dead: dead

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -14,6 +14,20 @@
{
"name": "standing",
"directions": 4
},
{
"name": "dead",
"directions": 1
},
{
"name": "sleeping",
"directions": 1,
"delays": [
[
1.0,
1.0
]
]
}
]
}

View File

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB