Git Product home page Git Product logo

push_puzzle's Introduction

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

push_puzzle's People

Contributors

panicdragon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mxthing renfu-her

push_puzzle's Issues

To be completely run in a console app as well.

Separation of interest so that it can be completely executed in a console app as well.

Console application execution

$ dart run bin/main.dart

lib/src/stage_state.dartの import 'package:flame/components.dart' の依存(Dart library 'dart:ui')により、コンソールから実行できなくなっているので実行できるように、依存をなくす。

こちら使用。
https://pub.dev/packages/dart_console

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.