Skip to content

This is a simple game created using the Pygame library in Python.

Notifications You must be signed in to change notification settings

ug1004/dodgingaplanet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dodging a planet GAME

preview

This is a simple game created using the Pygame library in Python. The game is called "UG Spaceman dodging a falling planet". In the game, the player controls a character represented by an image, which can move left and right on the screen using the arrow keys. The objective is to avoid getting hit by falling objects represented by another image, which continuously fall from the top of the screen.

The game window size is 400x400 pixels and it displays a background image, a character image, and an enemy image. The background image is fixed, while the character and enemy images move independently. The enemy image falls at a constant rate, and if it reaches the bottom of the screen without colliding with the character, a new enemy image is generated at a random x-coordinate at the top of the screen.

The game ends if the character collides with an enemy image. Once the game is over, the Pygame window is closed.

선행조건

  • Pygame 라이브러리 설치
pip install pygame

About

This is a simple game created using the Pygame library in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages