This is the sixth day of my participation in the August More text Challenge. For details, see:August is more challenging

Pygame series

30 Examples of PyGame development (opening words) — Environment building + game effect demonstration/Power planning

Let’s learn 30 examples of PyGame development (1) — Maze mini game with power planning

30 Examples of PyGame Development (2) — Tower Defense games with a Power plan

Let’s learn pyGame development 30 examples (3) — Shooting aliens small game

Let’s learn 30 examples of PyGame development (4) — Tetris small game by storing power plan

Let’s learn 30 examples of PyGame development (5)

Let’s learn PyGame development 30 examples (6) — Alpine skiing games with a plan to keep power

The source code for

Environment set up

Python3 environment

Download and install

Website address: www.python.org/downloads/

Open directly, is the download interface: you can choose different versions, 3+ versions can be selected. Python3.6 is used as an example.

Then select:

Exe directly click to install

Configuring Environment Variables

Configure the path where you installed Python as an environment variable

Python Version View

Run the python -v command

PS D:\pip-21.0.1\pip-21.0.1> python -V                                                                                  Python 3.6.5
PS D:\pip-21.0.1\pip-21.0.1>        
Copy the code

Package management tool PIP

PIP download install

Website address: pypi.org/project/pip…

Directly open, is the download interface:

Download pip-21.0.1.tar.gz and extract it. In the decompressed directory,

Run python setup.py install to install pip21

Do the following GIF:

Environment Variable Configuration

PIP is installed in the Python scripts directory by default

View PIP version

Open the command line: PIP -v PS D:\ PIP -21.0.1\ PIP -21.0.1> PIP -v PIP 21.0.1 from f:\develop\python36\lib\site-packages\ PIP (Python 3.6) PS D: \ PIP - 21.0.1 \ PIP - 21.0.1 >Copy the code

Install the PyGame module using PIP

On the command line, run PIP install PyGame to automatically add the PyGame module to your Python environment.

PS D:\pip-21.0.1\pip-21.0.1> PIP install Pygame Looking in indexes: http://mirrors.aliyun.com/pypi/simple Requirement already satisfied: Pygame in f: \ develop \ python36 \ lib \ site - packages (2.0.1)Copy the code

Project introduction

Take a look at some of the small game projects developed before, share the development process, and code.

Game effect display

Put in a couple of renderings

1, the tower defense

2. Alien Wars

3. Gobang game

4, 2048 small games

More games, as the column continues to update. Welcome to attention

Pygame series

30 Examples of PyGame development (opening words) — Environment building + game effect demonstration/Power planning

Let’s learn 30 examples of PyGame development (1) — Maze mini game with power planning

30 Examples of PyGame Development (2) — Tower Defense games with a Power plan

Let’s learn pyGame development 30 examples (3) — Shooting aliens small game

Let’s learn 30 examples of PyGame development (4) — Tetris small game by storing power plan

Let’s learn 30 examples of PyGame development (5)

Let’s learn PyGame development 30 examples (6) — Alpine skiing games with a plan to keep power

. Under continuous update