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

10 years ago by davidg0

I baked the same way as what the doc said, after I loaded game.min.js, the canvas element showed me nothing.
The game is fun to run before baking.
Thanks.

10 years ago by FelipeBudinich

are you sure that you are including game.min.js in the script tags? does the console say anything?

10 years ago by davidg0

Quote from FelipeBudinich
are you sure that you are including game.min.js in the script tags? does the console say anything?

Nothing in the console, and I am sure I included the tag.

10 years ago by dungeonmaster

Can you post your index.html?

10 years ago by FelipeBudinich

Or post the code to a github repo so we can take a look, this is pretty weird.

10 years ago by stahlmanDesign

When using Impact I have two HTML files, one for dev, and one for the baked game:

Inside index-dev.html, I load all the modules unbaked :

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

In index.html, I load just the baked version:

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

This way I can bake often and never have to change my HTML file (instead, I just point my browser to the appropriate URL)
Page 1 of 1
« first « previous next › last »