Basically, you can create a script and drop this inside it: gml_pragma(“PNGCrush”) One easy way of reducing the size of your game is to use the PNGCrush pragma. This is an important requirement as the game will need to be small in size so it loads as fast as possible and takes the least amount of space. “The game should be around 5MB or smaller” įor more information, see Debugging Your Game In The Browser on the helpdesk. For example, if you try to use a variable that wasn’t created or wasn’t given a value, it will not throw an error and will instead return undefined. Note that in some cases, your HTML5 game might not even throw an error. You can also use show_debug_message() in your code, which will output the given string into this console.
OPERA GX BROWSER GAMES CODE
Note: It’s important to run your game in Debug Mode if you want to look at the console, otherwise all of your code will be obfuscated and you will not be able to recognize any asset or function names in the stack trace. Any errors will appear here in a red colour and you can expand them and look at the stack trace to find the culprit. Once the game has loaded in your browser, you can click on the URL bar and then press F12 to open the Developer Tools.įrom the Developer Tools, select the “Console” tab where you will see the output log of your game. For debugging such errors, make sure to run the game in Debug Mode (by pressing F6 or clicking on the Debug button). When your game has an error or a bug that causes a fatal crash, you will, in most cases, see a black screen, which indicates that you have an error. Debugging HTML5Īs a simple rule of thumb, make sure to clean your asset cache every once in a while, especially if you’re facing graphical issues in-game using the HTML5 export. During development, you can press F6 to run your game in debug mode which will open it much faster (as this doesn’t perform code obfuscation).įor more information, see Setting Up For HTML5 on the helpdesk. Even if you have the Desktop licence, it is recommended to use the HTML5 platform for testing your game during development, so you can see any HTML5-specific bugs early and ensure maximum compatibility with that platform. You can then run the game, which will be opened in your default browser. Starting your game in HTML5 is fairly straightforward: you need to open the Target Manager (from the top-right corner of your IDE) and select the HTML5 platform. This means that even if you don’t own any GMS2 licences, you will still be able to compete and create your own browser game.
OPERA GX BROWSER GAMES FREE
GameMaker Studio 2 has an HTML5 export that you can purchase separately, but luckily all GX Jam participants will receive a free HTML5 licence that will be valid throughout the jam period. “The game should be playable on HTML5”Įver played a game in your browser? Chances are those games were made in HTML5, unless you’re playing something from the ancient Flash era. “The game must incorporate the mystery theme”Ī mystery theme will be announced when the jam starts, and your entry must incorporate this theme in any way, whether it’s the art, the story, the gameplay or anything else where the use of the theme is clear.