Mar-23-2020, 01:35 AM
Using pygame rect will make this simple. Create area rect and player rect. Move player then clamp_ip player rect.
player.rect.clamp_ip(area) Now the player can't move beyond the window.
player.rect.clamp_ip(area) Now the player can't move beyond the window.
99 percent of computer problems exists between chair and keyboard.