flashjaysan
New member
- Joined
- Oct 13, 2021
- Messages
- 4
Hi! I did some forum research but couldn't find something satisfying but I have to admit I'm not really good at finding stuff in forums.
I also searched in the mojo API but to no avail as well. I may be doing it the wrong way.
So I'd like to know how to set the resolution of a game. In BlitzMax it's as easy as calling Graphics(width, height) but with that Mojo class, I thought it would be in its constructor.
Another related question is, if I set the resolution of a game, does it sets the window size in Desktop export and the canvas size in HTML export ? Can I stretch this afterwards (for example for a pixelart like experience in fullscreen) ?
Let's take an example. If I want to set a window/canvas to 640x360, how do I do it and when ?
I also searched in the mojo API but to no avail as well. I may be doing it the wrong way.
So I'd like to know how to set the resolution of a game. In BlitzMax it's as easy as calling Graphics(width, height) but with that Mojo class, I thought it would be in its constructor.
Another related question is, if I set the resolution of a game, does it sets the window size in Desktop export and the canvas size in HTML export ? Can I stretch this afterwards (for example for a pixelart like experience in fullscreen) ?
Let's take an example. If I want to set a window/canvas to 640x360, how do I do it and when ?
Code:
Strict
Import mojo
Class MyGame Extends App
Method OnCreate()
SetUpdateRate(60)
End
Method OnRender()
Cls(100, 100, 100)
End
End
Function Main: Int()
New MyGame()
End