Click here to see a sample of how it works on the web.
flutter run
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.
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.
Joypad | input | Direction |
---|---|---|
UP | LogicalKeyboardKey keyW | UP |
Left | LogicalKeyboardKey keyA | Left |
right | LogicalKeyboardKey keyD | right |
Down | LogicalKeyboardKey keyS | Down |
Sokoban (100+ tiles)
Retro Character Sprite Sheet
I appreciate it very much.
Daisuke Takayama