0:00 / 0:00
#collisiondetection#pixelperfect#c
Pixel Perfect Collision Detection in C
Nick Walton
6.4K subscribers • 3 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Nick Walton
Intermediate. Assumes working knowledge.
7K views3 years ago1 recommendation
Game developmentProgramming languagesCGame programmingAlgorithms
Nick Walton explains how to implement pixel-perfect collision detection in C using bitmasks.
Get the code at the text version of this tutorial: croakingkero.com/tutorials/pixel_collision_detection/ I'll show you how to detect collisions on a per-pixel basis. Collision *response* is unique to each game, so I'll give an example of that for a 2D platformer in my next video. Chapters Intro Creating masks Concepts No overlap, early out Finding the overlap Finding the colliding section of each mask Comparing each pixel for collision EndingWhy it's here
1 person recommends thisWhat people say. Recommended as a clear and concise tutorial on implementing pixel-perfect collision detection in C.