no
@figglediggle
pass
I have a collision detection function that works perfectly, but only if I put it in my game loop (lines 30 to 34). If I put it in a class as an attrib
Python
I call check_collision() on line 71 in my game loop. The purpose of this is to check if the two rects (the two players in the game) have collided or n
Python
In one of my projects, I need to test the values of 4 bool variables. Each variable can have either bool value. My current solution to this is to make
Python
FlaminHotValdez You could use nested for loops to test every possible combination and its values.2 years ago
SixBeeps The best way to do this is using an array instead of four separate variables. Then, you could just iterate over the array, counting how many are true and how many are false.2 years ago