remixed-dungeon icon indicating copy to clipboard operation
remixed-dungeon copied to clipboard

Replace classes like MimicSprite with json sprite description.

Open Mikhael-Danilov opened this issue 7 years ago • 4 comments

Mikhael-Danilov avatar Jan 17 '18 22:01 Mikhael-Danilov

Iron sprite description - instead of bitmap image? Like what SVG format does?

swooboo avatar Jan 18 '18 09:01 swooboo

Json.

Animation for mobs can described using separate class like in: https://github.com/NYRDS/pixel-dungeon-remix/blob/master/PixelDungeon/src/main/java/com/watabou/pixeldungeon/sprites/BruteSprite.java

Or in a json file: https://github.com/NYRDS/pixel-dungeon-remix/blob/master/PixelDungeon/src/main/assets/spritesDesc/Acidic.json

Second format allow mods to change animations and sfx for mobs ( but some sfx not yet usable in this format )

Mikhael-Danilov avatar Jan 18 '18 17:01 Mikhael-Danilov

I meant how do you describe a bitmap using JSON? (Autocorrect corrected JSON to Iron...)

swooboo avatar Jan 18 '18 20:01 swooboo

Not bitmap, but animation sequences, just look at files in my previous comment,

Mikhael-Danilov avatar Jan 18 '18 22:01 Mikhael-Danilov