GithubHelp home page GithubHelp logo

diyorbek / socoban Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 9.8 MB

A classic 2D game in which the player moves boxes around to place them in a particular position.

Java 100.00%
java javafx javafx-games university-project

socoban's Introduction

Socoban

Inspired by a classic Sokoban game. Game has multiple levels. At the beginning of each level you will be shown a board wil boxes for 3 seconds. Then boxes will be spread across the board randomly. Your task is to move the boxes to turn the board to its initial state. You have to manage to complete it before timer hits 0.

demo

Controls

Use arrow keys or:

  • w - move up
  • s - move left
  • a - move down
  • d - move right
  • e - see target board

To push or pull a box hold SHIFT key and use controls.

Levels

Levels are customizable. You can add new levels by creating files inside src/level/.

File name should be level-N.txt format, for ex. level-1.txt, level-2.txt.

10 5 60
----------
---====---
---####---
---====---
----------

1st line of file is level info. Consists of 3 columns:

  1. Map width
  2. Map height
  3. Time limit in seconds

The rest of the file is the representaion of the level board map:

  • - Empty spot
  • # Box
  • = Wall

socoban's People

Contributors

diyorbek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.