Code Monkey home page Code Monkey logo

block-fly's People

Contributors

cdroulers avatar miherlosev avatar olafleur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

block-fly's Issues

Replay moves

Have a move history so we can record a level playthrough and replay it.

Will be useful for showing AI paths at some point

Question : how do I run the tests locally ?

For the moment, when I run npm test I have this error :

> [email protected] test C:\dev\block-fly
> cross-env NODE_ENV=test mocha --require build/test/testHelpers.js "build/test/**/*spec.js"

module.js:472
    throw err;
    ^

Error: Cannot find module 'build/test/testHelpers.js'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at C:\dev\block-fly\node_modules\mocha\bin\_mocha:345:3
    at Array.forEach (native)
    at Object.<anonymous> (C:\dev\block-fly\node_modules\mocha\bin\_mocha:344:10)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:535:3
npm ERR! Test failed.  See above for more details.

When I look in my build directory, there is no test subdirectory.
How do I create it and how do I get the testHelpers.js file ?

Sign-in with save feature!

Allow signing in (with Auth0 or another external provider) and save latest levels and whatnot in the storage it offers.

Has to still work offline!

Mobile / responsive layout

Material design style. Probably have the game be its own page. Use floating hamburger menu to show controls and level functionality in full page popups that become scrollable.

Forms around popups for better accessibility

Entering a password or other text boxes don't respond to hitting enter because they aren't in a form.

Add a form and bind the events to formSubmit instead of button clicked!

Level navigation

To navigate within a set of levels. Either going back or entering password for higher levels.

Use localStorage or whatever to save progress by default!

Level editor

Level editor current features

  • Modify default-levels.json levels
  • Level chooser
  • Add / remove levels
  • That's it!

Level editor missing features

  • Load remote or local file (should be simple, re-use existing code + dialogs)
  • Bug when placing tiles when viewport is smaller than screen
  • Fix panning max / min
  • Allow changing level size
  • Export level set to JSON file

Level editor COOL FEATURES FOR LATER

  • Validate level (has player, has door, player can't fall off map)
  • Easily test level

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.