๐ŸงŸโ€โ™‚๏ธ Enemy Schema

Defines enemy types, behaviors, and interactions with the player or world.

โœ… Field Rules & Accepted Values

FieldTypeRequiredNotes
idstringโœ… YesUnique ID (e.g., 'slime_01')
namestringโœ… YesUI display name
healthnumberโœ… YesTotal HP
damagenumberโœ… YesDamage dealt to player
speednumberโŒ NoDefault is 1.0
spritestringโœ… YesPath to sprite asset
aiTypestringโœ… YesBuilt-in or custom AI logic
abilitiesstring[]โŒ NoAbility IDs used by enemy
levelIdnumberโŒ NoOptional level restriction
bossbooleanโŒ NoEnables boss logic and UI
phasesnumberโŒ NoNumber of phases (boss only)
phaseTriggersstring[]โŒ NoE.g., health_below_50, time_elapsed_30
spawnIfobjectโŒ NoConditional spawn logic
statusImmunitiesstring[]โŒ NoE.g., ['freeze', 'poison']
onDeathstringโŒ NoTrigger/event ID on death
onHitstringโŒ NoTrigger/event on hit
onAttackstringโŒ NoTrigger/event on attack
soundobjectโŒ NoSound effects for actions
dropsstring[]โŒ NoToken/item IDs dropped on death