jarcane / minicosm

A FP-oriented game engine inspired by universe.rkt, written in Clojurescript
24 stars 2 forks source link

Sprite/object scaling #4

Closed jarcane closed 4 years ago

jarcane commented 4 years ago

Much like rotating, scaling of elements, especially image-based items like sprites and maps, would be most helpful for a range of applications.

Proposal: As ctx.scale() works similarly to ctx.rotate(), the considerations presented in issue https://github.com/jarcane/minicosm/issues/3 are more or less equally applicable. Either a :scale element that applies the effect to its children, or else implemented per supported element as a property on the :image, :sprite, and :map elements.