Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by ojap

Hi,

I'm new to using impact and have spent the last couple of weeks developing. I now have a basic game that I want to put on my website but I'm having trouble with getting the game running as it does when I am working using XAMPP.

I have baked all of my code into a single game.min.js and am just wondering what I need to upload to get the game running on a live webpage. For simplicity I am just using cPanel to manage files on the website.

Thanks!

1 decade ago by stahlmanDesign

Make sure you change your index.html to load the game.min.js instead of impact.js and main.js

Baked:
<script type="text/javascript" src="game.min.js"></script>

Unbaked:
<script type="text/javascript" src="lib/impact/impact.js"></script>
<script type="text/javascript" src="lib/game/main.js"></script>

1 decade ago by ojap

Thanks, I did change the index.html to load the game.min.js.

I have been uploading the entire folder structure and the index.html page is not loading the game but instead showing a grey box.

Also, I presume that changing the name of index.html should cause no issues?

Thanks.

1 decade ago by SnakePlissken

yea changing the index.html name will cause problems if your server does not know what file to look at in your folder to see what to initially launch. Normally it defaults to index.html
Page 1 of 1
« first « previous next › last »