Skip to content

Part 7 - collision detection against platforms, snowball AI using them

Compare
Choose a tag to compare
@ped7g ped7g released this 08 Feb 07:19
· 15 commits to master since this release
fe8b226

The screen is divided into 16px wide columns (0..15, 16..31, ...), each column has list of platforms (their Y coordinates) and there's new routine GetPlatformPosUnder which will return the platform under the current sprite.

And the snowball AI was modified to use the new function and make the snowballs roll down through the level until they get out of screen completely.