[Solved]Test HTML5 game in browser

Get help using Construct 3!

Post » Sun Jun 04, 2017 10:45 am

Hey everyone!

I just started using C3 free version to see if I like it and so far I do! :D

Was just wondering how I could test my game in an actual web browser instead of a standalone window?

Thanks!

Edit: If anyone is looking to do this without a webserver open up Run make sure you close out of all chrome windows and copy paste this into the Run dialog.

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --allow-file-access-from-files

Then just drag and drop the index.html from the HTML5 export into the newly opened chrome window and enjoy!
Last edited by ThatGuyMiniB on Mon Jun 05, 2017 4:53 am, edited 1 time in total.
B
4
S
1
Posts: 6
Reputation: 314

Post » Mon Jun 05, 2017 2:31 am

I think you can export it as html5, then just upload it a webserver and go to that page.
B
63
S
21
G
1
Posts: 24
Reputation: 4,371

Post » Mon Jun 05, 2017 3:39 am

Welp time to figure out how to create a webserver XD.

Any suggestions?
B
4
S
1
Posts: 6
Reputation: 314

Post » Mon Jun 05, 2017 1:59 pm

If you have good upload speed at home, you could do something like Apache.
There are also sites that offer free server (site hosting) that usually include access to a private fileserver (mainly where the site will be hosted from).
I'd say just upload it to one of them and do it that way to save time. Apache gives you 100% control though, although you'll need to set firewall rules on your router for redirects and blocking some traffic, which isn't terribly difficult, just time consuming.
I usually use 000webhost if I want to throw something up for others to look at, plus they give you a free subdomain to use on their site (or add your own if you purchased a domain).
It's a shame Dropbox killed their hosting folder (think it was called public), literally made this thing super easy.
B
63
S
21
G
1
Posts: 24
Reputation: 4,371

Post » Mon Jun 05, 2017 10:05 pm

You don't need anything as complicated as Apache. It's a real pain to get up and running especially when you just want it as a simple server.

If you have a mac or a windows box with python you can do this:
http://www.linuxjournal.com/content/tec ... ver-python

$ cd /home/somedir
$ python -m SimpleHTTPServer

Or you can just install node.js and npm install http-server and you are good to go with very minimal / no config needed https://www.npmjs.com/package/http-server

(step by step https://www.npmjs.com/package/http-server/tutorial )
B
19
S
3
G
5
Posts: 46
Reputation: 4,653


Return to How do I...?

Who is online

Users browsing this forum: Nwadkgames and 0 guests