Skip to content

A simple clone of "Sokoban" game written in Python using "pygame" library.

Notifications You must be signed in to change notification settings

JasonNumberThirteen/pygameSokoban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sokoban

A simple clone of "Sokoban" game written in pure Python using "pygame" library.

Table of Contents

General information

  • This is a simple application of "Sokoban" game. It was written in pure Python with the aid of "pygame" library.
  • The project presents my programming skills how I do write code taking care of several optimisations.
  • The game consists of pushing the boxes and moving them to specific locations. Player can push the boxes only in the forward direction and he must be careful to not let any of the boxes get stuck. He has to move boxes to the all "slots" in fewest moves.
  • Win condition: insert all the boxes to specific locations
  • Lose condition: none

Used technologies

  • Visual Studio Code IDE for writing code
  • Python 3.11.2
  • pygame 2.1.3

Features

  • 640x480 resolution
  • Movement by pressing keys
  • Boxes pushing system
  • Collision detection (tile is walkable & box can be pushed)
  • Level, moves & boxes counters
  • Restarting level by pressing specific key
  • Transfer to the next level when completed the current one
  • Graphics drawn without any sprites
  • Loading levels data from CSV files
  • UI system drawing texts in given color
  • Adjustable plenty of values in single script

Usage

  • Press W / S / A / D keys to move the player (the green filled circle)
  • Press the R key to restart the level

Screenshots

"Sokoban" "Sokoban" "Sokoban"

Credits

  • This project was made by Jason

About

A simple clone of "Sokoban" game written in Python using "pygame" library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages