Collisions between texts and rectangles in js

44 Views Asked by At

I'm trying to create a game where a car crashes into letters, how can I create these collisions? Because I only know how to create collisions between rectangles or circles, but not between letters. I tried both creating some writing and using PNG images with the writing inside but I didn't find the solution. Thanks in advance!

If I create the writings directly with HTML canvas, then I have created a function that manages the collisions, but I cannot switch between the writings, because it is as if it treats them all as a single block.

0

There are 0 best solutions below