Giter Club home page Giter Club logo

memory-game's People

Contributors

dependabot[bot] avatar softberry avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

memory-game's Issues

Optional settings panel

Make settings panel shown or not to be shown.
For example :
<mini-memory settings="yes[default]/no"></mini-memory>

Aim is to make this game available for embedding in hybrid/native Mobile Apps. Such as Cordova or React Native. So that settings can be managed from already existing setting panels of the hosting app if any.

To&Do

  • Extend ObservedAttributes array
  • Extend render()
  • Update readme.md accordingly
  • if disabled:
    • remove settings button from the toolbar.
    • do not render settings panel

Add Manifest.json

Make this game simply used as Web App by adding icons, mainfest.json etc.
As this project is offered to used in different platforms, this should only be a template who would like to use it as Web App.

Enable AMP Adds

Enable publishers to include AMP apps to the screen between levels.

Custom Image Server

Currently images retrieved from placeholder provider https://picsum.photos/ .
This is used only for demo purpose. But all other users who uses this game should have to use their own images from their servers.

todo:

  • define a crop logic
  • define a json template
  • pay attention of the maximum required images are already supplied. For example a 6x6 game needs 18 unique image. If this is not supplied game should not be initialised.
  • Extend i18n definitions for the new warning messages.

Next Button

Do not jump to auto next level.
Add next button so that player have a chance to make break.

  • extend info panel of settings so that it may have not static HTML but also dynamic html with translations and interactive elements ( ex: clickable button)

Reload images on window resize

Images are loaded at exact dimensions to keep file transfer size at minimum but image quality at max. If player changes the size of the browser window, images are distort. To avoid, reload same images again at corrected size. Debounce the event before sending network request.

Add attribute "challange"

Currently game starts from given matrix, such as 2x2 and increase that one by one until it reaches 10x10.
Let game users to disable this by adding challenge="off". If set, game should start from given matrix (such as 3x5) then repeats it again at same dimension in case of completion of the game.

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.