What is Pygame?
Pygame is one of the most popular 2d game engines. It is SDL wrapper for python. It is a powerful and very simple to use game engine. it is specifically designed for game development so you get all the basic elements of a game in it (eg.. sprites, timer, display functionality, sound functionality, events etc..)
Pygame is highly portable means you can use it with nearly with every platform.
If you want to teach kids programming, they find programming more interesting when they make something like games. With pygame you can write your full game code in a single file. You need not to create a big and complicated file structure if you don't want to.
What you need to get started with Pygame?
The thing that you need to get started with pygame is python3 installed on your system. Python 3.6.1 or greater is recommended by Pygame.
How to install?
The best way to install pygame is with the pip tool (which is what python uses to install packages).
when you install python(newer versions), you get pip automatically installed. We use the --user flag to tell it to install into the home directory, rather than globally.
You need latest pip to install pygame. Try upgrading pip if pygame starts compiling from source and and fails to install.
Run the following commands to install pygame on your system:
Windows:-
Linux:-
You get Pygame already installed with Raspberry Pi. You need not install it.
If you want to install on Mac or other platform, go through the installation process Here
Once you have installed Pygame, you are ready to GO......
Stay tuned for posts related to how to use the various elements of Pygame
In the Next post we'll see how to create an empty game window using Pygame...
Pygame is one of the most popular 2d game engines. It is SDL wrapper for python. It is a powerful and very simple to use game engine. it is specifically designed for game development so you get all the basic elements of a game in it (eg.. sprites, timer, display functionality, sound functionality, events etc..)
Pygame is highly portable means you can use it with nearly with every platform.
If you want to teach kids programming, they find programming more interesting when they make something like games. With pygame you can write your full game code in a single file. You need not to create a big and complicated file structure if you don't want to.
What you need to get started with Pygame?
The thing that you need to get started with pygame is python3 installed on your system. Python 3.6.1 or greater is recommended by Pygame.
How to install?
The best way to install pygame is with the pip tool (which is what python uses to install packages).
when you install python(newer versions), you get pip automatically installed. We use the --user flag to tell it to install into the home directory, rather than globally.
You need latest pip to install pygame. Try upgrading pip if pygame starts compiling from source and and fails to install.
Run the following commands to install pygame on your system:
Windows:-
py -m pip install -U pygame --user
Linux:-
python3 -m pip install -U pygame --user
You get Pygame already installed with Raspberry Pi. You need not install it.
If you want to install on Mac or other platform, go through the installation process Here
Once you have installed Pygame, you are ready to GO......
Stay tuned for posts related to how to use the various elements of Pygame
In the Next post we'll see how to create an empty game window using Pygame...
No comments:
Post a Comment
Your comments and suggestions are valuable and are always welcome and will be helpful to me to create a good quality content. Please leave your thoughts