Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

ct.js

Create cool 2D games with a free game editor! · By Cosmo Myzrail Gorynych

help about compiling to html

A topic by jasonxxx created 22 days ago Views: 22 Replies: 1
Viewing posts 1 to 2

hi i can play it only in firefox after complie just loading in chrome and opera why is it that sir thanks

Developer

Games require a webserver to run properly in Chromium-based browsers due to security restrictions. While developing, ct.js hosts a local web server for your game. You can run your project, then click “open in external browser” icon, and then test the opened link in different browsers to see whether it works in them. (Actually, you don’t need to do it, because the built-in debugger is built on Chromium :D)

So if it works in ct.js debugger, it will work. Upload your exported game to some web server (e.g. here on itch) and it will work there as well. Otherwise, use desktop builds if you want to run games offline.