Skip to main content

A dinosaur game made with pygame

Project description

You are a dinosaur, and you have to dodge the meteors by moving the mouse. If a meteor hits you, you lose a life. Hopefully, you always can eat a ham to recover some lives.

I made this game to learn how to use pygame in my 2nd year of my studies. I recently updated it to support Python 3, and to polish a bit the project (mainly translating the comments and code into English).

I also left the original one in first_version folder just for the old times :D

I also recently uploaded the application to to learn how to publish Python packages.


This app is uploaded in To install and run it, you just need to:

pip install dinosaur-pygame
dinosaur_pygame  # The game is installed as a script, just needs to run that command for the game to start.

Local Development

You may need to install some prerequisites to make pygame work. Once they are installed, to install the project:

make install

To run the application:

make run

To install the package and check if it works before publishing the new version into

make package_install
dinosaur_pygame  # checks if it runs properly in the console. Run this with your venv activated.

Good starting documentation for pypi packages: and

To publish the new package in test pypi

make upload_package_to_test_pypi  # it requires your token
python3 -m pip install --index-url --no-deps dinosaur-pygame=={VERSION}
dinosaur_pygame  # Run the app


For the new version, I got the images from

Author: Alberto Morales

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dinosaur-pygame, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size dinosaur_pygame-0.0.2-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dinosaur-pygame-0.0.2.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page