Saturday, April 05, 2014

Collision avec le monde

Au milieu de ma série de scans sur le thème "Critical Link", je retombe sur un diagramme UML représentant la séquence d'action qui découle d'une collision entre un personnage et un bloc spécial. Comme il va prochainement me falloir gérer des collisions entre crayons fixes et taille-crayon, je blog en stock ...

This is how collision between a Game OBject and the tiled world occurs in my current Game Engine for DS library.  Scribbled note next to the dotted line says "collide(c)" and comments "current code enforces
  • block disappears only if extra & 0x80 is set
  • block reacts only with HERO when extra & 0x40 is set.
where "extra" is the  8-bit reconstruction of the free bits in each special tile
.

No comments: