Skip to content
Sign upLog in
Profile icon

no

@figglediggle
pass
  • new optimized game

    Cover page
    Made with Python
    Recent comments (0)
Repls
Community
figglediggle
figglediggle
shared a Post
1 year ago
1
Why won't my collision detection function work inside a class?
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
poorly written game
Python
figglediggle
figglediggle
shared a Post
1 year ago
1
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
poorly written game
Python
figglediggle
figglediggle
shared a Post
2 years ago
2
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
test #2
Python
FlaminHotValdez
FlaminHotValdez
You could use nested for loops to test every possible combination and its values.2 years ago
SixBeeps
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