I am writing a game in Pygame, I and want to get collision detection working. The aim is that when aan object hits another, the target object disappears. I want to avoid having classes and just have my code class less for now, in one scriptto keep things simple. This makes it difficult to get collision detection working, because the RectRect method in Pygame is called on by an object(class)assumes classes.
The logic I want to achieve is:
object hits a target object
target object disappears.
if object hits a target object
target object disappears
is there an easy wayWhat's the minimal code I'd need to achieve this?(with minimal code possible)