Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

SOLVED - Game not showing up in the Browser

A topic by AllenMLewis17 created Nov 14, 2023 Views: 576 Replies: 1
Viewing posts 1 to 2
(1 edit)

I'm sure this is a common problem, but my game doesn't appear properly after I hit "run game" on the game page.  The music plays, but nothing is drawn.

I made the game in Gamemaker 2, and I tested it extensively with the built-in HTML5 exporter, and it worked perfectly that way.  Why not here?  Any ideas at all would be helpful, and though I doubt it will help, here is my game page where you can see the problem for yourself: https://allenmlewis17.itch.io/iceblockpuzzle

Let me know if the demo shows up fine for you, because then I'll know it is a problem on my end.

I figured it out by poking around in the browser code with "Developer Tools."  Turns out, it was trying to read this code that saves and loads the screen dimensions in desktop mode, but couldn't access the files for some reason.  But, this code is only relevant for the desktop version anyway, so I just commented it out.

//Load config

var configfullscreen = true;

var configheight = 1080;

var configwidth = 1920;

var configgamepad = 0;

if (file_exists("file_config.txt"))

{

var configfile = file_text_open_read("file_config.txt");

configheight = file_text_read_real(configfile);

file_text_readln(configfile); //Next line

configwidth = file_text_read_real(configfile);

file_text_readln(configfile); //Next line

configfullscreen = file_text_read_real(configfile);

file_text_readln(configfile); //Next line

configgamepad = file_text_read_real(configfile);

global.gamepadID = configgamepad;

window_set_size(configwidth, configheight);

window_set_fullscreen(configfullscreen);

file_text_close(configfile);

}

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.