Can you re-size the game canvas?

27 views
Skip to first unread message

bobk

unread,
Feb 9, 2018, 1:25:26 PM2/9/18
to excaliburjs

I have not been able to find a way to get the game to resize when the browser is resized.

I have tried updating the game's width & height, but it will not expand the tileset out to fill the new area available.

Is it possible to resize a running game?

Kamran Ayub

unread,
Feb 9, 2018, 2:05:42 PM2/9/18
to bobk, excaliburjs
Take a look at ex.DisplayMode under the "Managing the Viewport" section:



--
You received this message because you are subscribed to the Google Groups "excaliburjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to excaliburjs...@googlegroups.com.
To post to this group, send email to excal...@googlegroups.com.
Visit this group at https://groups.google.com/group/excaliburjs.
To view this discussion on the web visit https://groups.google.com/d/msgid/excaliburjs/681c0c95-24dc-49ea-8e90-2aec411f57c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bobk

unread,
Feb 9, 2018, 5:53:36 PM2/9/18
to excaliburjs
Thanks!

Kamran Ayub

unread,
Feb 9, 2018, 8:26:29 PM2/9/18
to bobk, excaliburjs
Yep let us know if you run into issues!

--
You received this message because you are subscribed to the Google Groups "excaliburjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to excaliburjs...@googlegroups.com.
To post to this group, send email to excal...@googlegroups.com.
Visit this group at https://groups.google.com/group/excaliburjs.
Reply all
Reply to author
Forward
0 new messages