Push Box Game With Pygame

Beginner

In this project, we will be developing the classic game Sokoban using Python and Pygame, covering basic Python syntax and game development skills with Pygame.

PygamePython

Introduction

This project is the development of the classic game Sokoban using the Python language and Pygame.

The knowledge points covered in this project include:

  • Basic syntax of Python
  • Basic game development with Pygame

This course has a moderate level of difficulty and is suitable for users who have a basic understanding of Python and want to further enhance their knowledge.

The source code sokoban.py.zip, is released under the GNU GPL v3 license, and the skin was created by Borgar.

👀 Preview

preview

🎯 Tasks

In this project, you will learn:

  • How to initialize the game using Pygame
  • How to handle game events and keyboard operations
  • How to implement the map for the game
  • How to implement movement operations for the player and boxes
  • How to implement undo and redo operations
  • How to test the game interface

🏆 Achievements

After completing this project, you will be able to:

  • Initialize Pygame and set up the game window
  • Handle game events and keyboard inputs in Pygame
  • Implement the game map and display it using Pygame
  • Implement movement operations for the player and boxes
  • Implement undo and redo operations in the game
  • Test and run the game interface

Teacher

labby

Labby

Labby is the LabEx teacher.