I'm gonna add a Physics engine tomorrow to the game. Since I was developing it in AS 2 and no AS 2 physics engines seems to be 'working', I'll have to port it to ActionScript 3.0
But that's gonna worth the work, since I'm gonna use Box2DFlashAS3 physics engine.
The tricky part is going to be how da heck I'm going to attach the 'splash' image to the blocks.
Here's a small image showing what I'm talking about:
This means that I have to apply a masked splash to both the ground (or whatever is being 'painted') and the near cube. In order to do that, I need to check if the cube is near enough the splash and then apply the splash to it, too.Another issue would be the cube-ground paiting process. That is, if you hit a cube, then the ground would need to be splashed, too.
I really don't think this will be a big problem, because of the 'rendering' engine I'm using is quite fast and would not crash if a splash is attached, even if it's out of the visible (masked) area
So, that's all for now.
Check back soon for more posts and updates!
Luiz.
ViciousPud.WF.jpg)
Nenhum comentário:
Postar um comentário