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 Bitbot

I've been playing around with impact JS and I managed to get a simple board with some blocks that fall down tetris-style:
http://alpha.exerpg.com/minigames/

Right now I'm clearing blocks in collideWith, but I'm not sure how to get all the blocks in a column to shift down once a block is cleared. Each block is an instance of an entity called Brick.

I could assign each block a group based on the column, and then select/move blocks by group, but that seems slow. Is there a better way to do it?

1 decade ago by Graphikos

Psst... bake your code if you plan on posting a live URL.

http://impactjs.com/documentation/baking

1 decade ago by Bitbot

That seems rather counterproductive to debugging. It's on a development server, not a production site.

1 decade ago by Graphikos

You posted your URL in public space... development server or not anyone on the net can access it now.

You are asking about your code, not the engine's. Your code can be fully uncompressed/unbaked but you should make an effort to protect the source code of the full game engine.

Do the developer of Impact a favor and use a baked version online.

1 decade ago by dominic

I don't totally understand what is you want to do, but filling the whole screen with entities could be very slow in the end.

You could try a different approach, where you remove entities that have come to a rest from the game and instead represent that block in the collision and background map. This way you could also clear whole rows or columns of blocks more easily.

I appreciate if you bake your source code before posting it publicly, but I don't "require" it. As long as you don't offer the engine's source on github or as ZIP download, I'm fine with it.
Page 1 of 1
« first « previous next › last »