Tag Archives: animation

How to animate an image II- Wrap around screen

One of the problems with our prior pygame animation is that once the red square goes to far to the left, we don’t do anything. It just seems to be gone forever ! What we want to write is the python code that says, “Hey if the image goes all the way to left, off of … Continue reading How to animate an image II- Wrap around screen →

How to animate an image in Pygame

One of the thing you want to do often, when making a game, is animate an object. We are going to learn how to move a red square image across the pygame window. Here’s an animation of the finished product:   The full code is at the below. Download Source Code Scroll down for a … Continue reading How to animate an image in Pygame →

5 Gifs to Understand Binary Search Trees

Gif #1 Gif #2 : Binary Search Tree from Sorted Array  Gif #3 How insertion into a binary search tree (BST) works     Gif #4 : Degeneration of Binary Search Tree Demonstration   Gif #5 is coming …