ondras / rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
https://ondras.github.io/rot.js/hp/
BSD 3-Clause "New" or "Revised" License
2.33k stars 254 forks source link

Currently no way to utilize stacked tiles with tileColorize #136

Closed Blindmikey closed 6 years ago

Blindmikey commented 6 years ago

There doesn't seem to be a way to utilize both great features. Stacked tiles in ROT.Display.draw() works only when tileColorize is not set.

Proposed syntax would be

ROT.Display.draw( x, y, ['#', '@'], ['fgcolor1', 'fgcolor2'], ['bgcolor1', 'bgcolor2'] );
ondras commented 6 years ago

Makes sense! Also, this looks like a pretty straightforward improvement.

ondras commented 6 years ago

@Blindmikey I believe I fixed this (and added a small demo to the interactive manual) in https://github.com/ondras/rot.js/commit/5375817b392b6276bbe0f38c15dd555da5d5ebf2

Blindmikey commented 6 years ago

This is amazing, thank you so much!