Original title: Building Chrome Dinosaur Game in Pygame (Part 3: Running Dino)

In the last post, we coded up the infinite scrolling horizon upon which the Dino runs and in the process we learned how to display images on the canvas, how coordinates work in pygame, how to use the pygame.time.Clock class in controlling the Refresh rate of the video game among a few other lessons. In this post, we’ll code up the Dino and give it the ability to run for dear life.

But before we go any further, I need to make it clear that I’m assuming the following things about you:

You understand basic English. Trust me, this is not a given. You possess basic knowledge of the Python programming language. If not, check out this coding resource to learn. You’re following along on a Mac, Linux or Windows Laptop or Desktop. You can’t use your smartphone for this I’m afraid. You can comfortably change the Refresh rate of our game without breaking a sweat. If you can’t, then quickly checkout the previous post before proceeding with this one.

Alright, let’s dive in!

Who left a d

Read the original article here