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 Jonathan

Can Impact create more than just squares to interact with? like for example can I created slanted ground, or like an explosion crater? Where I could later colide with, e.g. a sprite character running over uneven ground or a missile destroying part of the ground.... Would this be a engine limit me like to working with just squares and circles? sorry if that's confusing.

1 decade ago by Arantor

Yes, you can create slanted ground. 1.19 comes with a series of sloped tiles allowing for quite nice terrain to be made. As an example of what can be done (quite trivially) with them, I made a lunar lander game with them - http://whatsthatgame.co.uk/index.php?pages/aralander/

Explosion crater is doable but not so easy (much as the whole Worms type terrain won't be easy, you'll basically have to maintain the data yourself and figure out whether collision is appropriate, but it's certainly not impossible to do)

If you're using the sloped tiles, entities (characters, enemies, bullets, whatever) can easily collide and not only report back collision but the angle of collision as well can be determined.

(Circles aren't directly supported. Most of the time you imitate it using squares anyway, and have the same essential problems as any pixel-level arbitrary terrain)

1 decade ago by Jonathan

Circles are not supported? but box2d has circles, is there just a limited port of box2d in Impact?


This is exactly what I want to do, would this be easy to implement?
http://www.emanueleferonato.com/2010/06/25/worms-like-destructible-terrain-in-flash/

1 decade ago by Jonathan

Better link: http://www.emanueleferonato.com/2010/08/05/worms-like-destructible-terrain-in-flash-part-2/

1 decade ago by drailing

hi,

i think this game used the box2d circles:

http://impactjs.com/forums/games/my-only-friend-the-end

perhaps this developer can help you (and im interested too, so please ask him in the forum :-) )

1 decade ago by Arantor

I deliberately didn't mention Box2D since it's not built in but a separate plugin - and the fact that I have no experience with it means I can't tell you how usable it is or not. The fact is, you can do anything you like, just that you might have to do it manually.

(Heck, I remember seeing someone implement a near-perfect clone of Lemmings in JavaScript long before canvas even existed, and that's pixel-perfect landscape handling. Just it had to be done manually.)
Page 1 of 1
« first « previous next › last »