deepnight / ldtk

Modern, lightweight and efficient 2D level editor
https://ldtk.io
MIT License
3.42k stars 188 forks source link

Enum parameters #405

Open tynberry opened 3 years ago

tynberry commented 3 years ago

Enum values could have custom properties. This would allow for having one entity for all enemies while each one would have its specific variables. For example: Melee enemy - hitscan range, punch speed Ranged enemy - projectile type, projectile speed, firerate, accuracy Ambient enemy - *nothing*

deepnight commented 3 years ago

Hi! This use-case will probably be covered by Entity "inheritance" which will allow to create a base Entity, then "extend" it to add some extra properties (eg. a Mob entity, extended to MeleeMob, RangedMob etc.)

I will open a dedicated issue :)

deepnight commented 3 years ago

Related #408