Skip to content

Latest commit

 

History

History
80 lines (65 loc) · 2.83 KB

README.md

File metadata and controls

80 lines (65 loc) · 2.83 KB

PuzzleField

Puzzle game platform.

Description

PuzzleField is puzzle game platform. You can play with the following 2 puzzle games.

  • FruitsField
  • Sokoban

Requirement

PuzzleField will run on Windows (desktop application). Keyboard is necessary for play.

Usage

  1. Run PuzzleField.exe.
  2. In puzzle game select window:
    1. Use the up/down/8/2 keys to select puzzle (scenario).
    2. Use the left/right/4/6 keys to move scenario/map field.
    3. Use the up/down/8/2 keys to select map.
    4. Hit enter key to start game.

image

FruitsField

  1. Up/Down/Left/Right/8/2/4/6 keys to move player. And catch all fruits in map.
  2. Space key to action arrow block. The arrow block does not stop until it hits an obstacle. The arrow block with obstacles will disappear ahead. The opposite arrow block can not be erased.
  3. Esc key to abort game, and return to select window.

image

Sokoban

  1. Up/Down/Left/Right/8/2/4/6 keys to move player or push box. And move all boxes to goal.
  2. Esc key to abort game, and return to select window.

image

Build

The following environment is necessary to build.

Development

Add puzzle maps:

  1. Store json/map/slc style map file in "FruitsField/" or "Sokoban/" folder. It support 3 kinds of map styles.
    • Json style: See "fruits_field_original.json".
    • Map style: Text style. See "sokoban_uzanka_6x6.map".
    • Slc style: XML style. See any web pages containing maps.
  2. Add new title information in "puzzle_field.json" file.

Add puzzle:

  1. Implement new puzzle class (ex: NewPuzzleScene). Make rule, images, maps, ... etc.
  2. Add new class to PuzzleFieldSceneFactory class for create new scene.
  3. Add new puzzle class json for characters (ex: "class_NewPuzzle.json").
  4. Add new title information in "puzzle_field.json" file.

Auto detector:

When PuzzleField is started, it automatically detects the map in the user folder.

  1. Place the map file in the user folder ({ClassName}/user/). Map style is ".json", ".xml" ".slc", or ".map".
  2. Add or change the "auto_detect" key to "true" in "puzzle_field.json" file.
  3. Run PuzzleField.exe application. Automatically detect and add map files.

Result information:

Cleared result is saved in "C:/Users/{username}/AppData/Local/PuzzleField/UserDefault.xml". This is specification of cocos2d-x.

Licence

GNU General Public License v3.0

Libraries, fonts and other licenses used in PuzzleField are follow their respective licenses.