Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Html game window — Gideros Forum

Html game window

billydbbillydb Member
edited July 2016 in General questions
The problem I'm having:

image

The game area is basically the blue sky box

Here's what I'm going for:

http://games.truevalhalla.com/dungeonsweep/

Basically I want a border that masks everything outside the project "window".
I don't want full screen as it forces it to squash or stretch.

Any help would be much appreciated.
Thanks

Comments

  • hgy29hgy29 Maintainer
    Accepted Answer
    At gideros side, you can use setClip() on your "window" to prevent any drawing outside its bounds.
  • antixantix Member
    So if your blue area was 640x 480 you would use something like
    stage:setClip(0, 0, 640, 480)
  • Wow that was easy :)
    Thanks guys

    Likes: antix, simwhi

    +1 -1 (+2 / -0 )Share on Facebook
  • antixantix Member
    Gotta love it when there's an easy solution :)

    Likes: simwhi

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.