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 dennisdc

Hey all.

I have begun dabbling with Impact, and I have come across a small problem.

I would like to be able to bake my code in two separate files, being the game file and the impact file. I would like this so I would not have to rebake all my games each time Impact is updated or changed.

I tried a little experiment, but it seems that baking the game files would also bake the impact files along with them.

Is this possible, and if so, how ?

1 decade ago by Graphikos

Baking each path separately should work fine. It's pretty simple.

#!/bin/bash

# Path to impact.js and your game's main .js
IMPACT_LIBRARY=lib/impact/impact.js

# Output file
OUTPUT_FILE=impact.min.js


# Change CWD to Impact's base dir and bake!
cd ..
php tools/bake.php $IMPACT_LIBRARY $OUTPUT_FILE

#!/bin/bash

# Path to impact.js and your game's main .js
GAME=lib/game/main.js

# Output file
OUTPUT_FILE=game.min.js


# Change CWD to Impact's base dir and bake!
cd ..
php tools/bake.php $GAME $OUTPUT_FILE

1 decade ago by dennisdc

So the Impact files will not be baked into the game file then ?
Page 1 of 1
« first « previous next › last »