Skip to content

flame-games/push_puzzle

Repository files navigation

Sokoban Push Puzzle

Click here to see a sample of how it works on the web.

Usage

flutter run

Architecture

For stage data, lib/utilty/stage_master_data.dart is referenced, and stages are generated as text data.

############
#     ## p #
#   o .. o #
############

The core logic of the game is located under lib/src and is mainly processed here and designed to be executable in CUI.

lib/src/stage_state.dart is the main process that manages the stage state, and lib/src/push_game.dart is designed to encompass it.

Update positions of walls, characters, luggage, etc. as game conditions change.

############
#     ##   #
#  op .. o #
############

The other files under the lib are the Flutter and Flame processes for displaying on the screen as GUI.

Getting Started

As for the content of the game, it is quite simple.

The stage is cleared by moving the character and carrying the luggage to the goal.

Character movement is mainly handled here.

Input Reference

Joypad input Direction
UP LogicalKeyboardKey keyW UP
Left LogicalKeyboardKey keyA Left
right LogicalKeyboardKey keyD right
Down LogicalKeyboardKey keyS Down

Contributor

copyright holder

Sokoban (100+ tiles)

Kenney

Retro Character Sprite Sheet

isaiah658

I appreciate it very much.

Author

Daisuke Takayama