Search⌘ K

Detecting Collisions

Explore how to implement collision detection and animations within reactive game development using RxJS. Understand how to track game states and animate explosions using sprite sheets to create dynamic, interactive gameplay. This lesson helps you integrate collision functions and rendering into your RxJS application.

We'll cover the following...

Collision detection

This game won’t be any fun if there’s no element of danger. Let’s open up collisions.ts and take a look around. I’ve filled in the math stuff that isn’t as relevant to the Rx core. There’s a checkCollision function that operates much like the other updates you’ve seen. This one’s filled out since it’s more of the same ...