Implementing Wall Bounces for Objects in Pygame
This tutorial demonstrates how to make a ball rebound off walls in Pygame. The example uses a circle, but the method can be applied to any object. The videos are concise and focused on the core technique.

Sam Whitby Coding
2.9K views • Nov 27, 2020

About this video
This video shows getting a ball to rebound off the wall. The object being used is a circle but you can use any object you wish. These videos are concise and simple, and it would be extremely helpful to press the like button and subscribe to the channel.
Patreon: https://www.patreon.com/samwhitbycodes
Twitter: https://twitter.com/CodesWhitby
Maths Channel: https://www.youtube.com/channel/UCK0NB-IXzVcPjxP8YbeeUVA?
Tags:
computer,science,computer science,code,coding,sam,whitby,sam whitby coding,sam whitby,whitby coding,ict,computer science gcse,aqa,ocr,edexcel,gcse computing,gcse computer,gcse computer science,tutorials,tutorial,how,to,how to,codes,programming,program,gcse,bouncing,bounce,rebound,repel,bouncing off walls,rebounding off walls,changing direction,boune off walls,rebound off walls,pygame,python,pygame walls,walls,bounce walls,rebounding walls,rebound walls,physics
Patreon: https://www.patreon.com/samwhitbycodes
Twitter: https://twitter.com/CodesWhitby
Maths Channel: https://www.youtube.com/channel/UCK0NB-IXzVcPjxP8YbeeUVA?
Tags:
computer,science,computer science,code,coding,sam,whitby,sam whitby coding,sam whitby,whitby coding,ict,computer science gcse,aqa,ocr,edexcel,gcse computing,gcse computer,gcse computer science,tutorials,tutorial,how,to,how to,codes,programming,program,gcse,bouncing,bounce,rebound,repel,bouncing off walls,rebounding off walls,changing direction,boune off walls,rebound off walls,pygame,python,pygame walls,walls,bounce walls,rebounding walls,rebound walls,physics
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
2.9K
Likes
12
Duration
2:26
Published
Nov 27, 2020
User Reviews
4.0
(2)