Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2013, 10:11:27 PM (10 years ago)
Author:
jo
Message:

Making the Tetris collision detection more robust, by decoupling stone-stone collisions and stone-brick collisions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/tetris/Tetris.h

    r9667 r9802  
    8383            void createBrick(void);
    8484            void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats.
    85             bool isValidStonePosition(TetrisStone* stone, const Vector3& position);
     85            bool checkStoneStoneCollision(TetrisStone* stone, const Vector3& position);
     86            bool checkStoneBottomCollision(TetrisStone* stone, const Vector3& position);
    8687            bool isValidBrickPosition(TetrisBrick* brick);
    8788            void findFullRows(void);
Note: See TracChangeset for help on using the changeset viewer.