Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by stillen

Is there a way to set the level display size to be smaller then the entire canvas?

I was thinking I want to have say the bottom 100px of the canvas for buttons and status updates in my game so there are not buttons overlaying the game blocking the game play. I the BioLab game, my thumbs constantly blocked game play, and I wanted to avoid that.

This also may look really crappy as well and shrink the game too much, but I wanted to try it out.

1 decade ago by Joncom

The easy solution is to let the level draw over the entire canvas.
Then draw a GUI on top that covers up part of your level as you want.
This should work for most situations.
Especially if you're not having any performance issues.

1 decade ago by stillen

My concern is that if a blank out the lower 100px, that gameplay may get blocked out by that overlay . I don't want someone to get lost under the overlay

1 decade ago by svenanders

Code in limits so that entities etc can't go above/below your GUI. I often use this method instead of using the collision map.
Page 1 of 1
« first « previous next › last »