python project pinball game 1

Hello everyone, today I am going to bring you a very interesting little game---pinball game!

Before making the game, we need to understand the pinball game first:

The pinball game is a popular mini-game. You need to use your racket to hit the ball to make it hit the block or keep the ball from falling to the ground. If the ball falls to the ground, you fail.

This type of game generally has no end point , and most of them are single-player games , just like tank battle games.

 Today, we are going to start making our own pinball game!

Start making

First, let's import the required library files:

import pygame

If not, please do this:

1. If you are using pycharm:

Directly ctrl+alt+s to open the "Settings" item, click the plus sign on the right and enter "pygame" in the pop-up window

Guess you like

Origin blog.csdn.net/CSP_J/article/details/128766188