Feature Request for virtual coordinates support in EaselJS

alex's Avatar

alex

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

Generic

? 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

Recent Discussions

22 Dec, 2014 06:12 PM
22 Dec, 2014 06:10 PM
22 Dec, 2014 05:08 PM
22 Dec, 2014 05:00 PM
21 Dec, 2014 12:47 PM

 

20 Dec, 2014 12:02 PM
20 Dec, 2014 10:51 AM
19 Dec, 2014 09:45 PM
19 Dec, 2014 07:11 PM
18 Dec, 2014 11:26 PM
18 Dec, 2014 07:26 PM