Monday, November 20, 2023

PYGAME9


This week's Pygame tutorial segment showed how to use collision detection.

It's actually simple, there is a function that detects it (on the encirling rect box).

Here, the collided with goes to a new random position...                                                          

               

                                                                            


                                                                                 


I had been annoyed that the screen femained black while the introductory song played.

The song has been silenced. Sound effects work fine, with movement from hero_right.





 
The text has been silenced, for the moment:



Hero_right now is center, as the game opens:


It is useful to color the rectangles during gamedevelopement to see if the action makes

sense and the character is close to the rect on all sides...












No comments: