Feature Request for virtual coordinates support in EaselJS

alex's Avatar


10 Apr, 2013 11:44 AM

I've found a few times recently that I've been creating games that run at different resolutions (and load different assets) on different devices. This makes setting an object's position a bit awkward. Having some form of virtual coordinates is useful to aid this, so that internally EaselJS multiplies these coords by an appropriate scale factor before applying them to the canvas. Currently I've created a base class as an adapter that all my actors extend and which does this, but it feels like this is something that could be done better internally by setting a virtual coordinate scale factor on the Stage.

  1. 1 Posted by dave on 26 May, 2013 07:27 AM

    dave's Avatar

    In the same vein, maybe this would make it possible with this to set scaleY=-1 and again be able to use the math formulae and equations we learned at school.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac