Skip to content

Classic and responsive 15 tile puzzle game entirely with HTML, CSS and JAVASCRIPT. Make your own puzzle with the built-in editor.

License

Notifications You must be signed in to change notification settings

krishealty/puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple implementation of the classic mini-game Fifteen Sliding Puzzle, using HTML DOM document elements and without using Canvas or third party libraries.

When mixing a picture, random replacement of slots is not used, only natural mixing by moving a free slot, thanks to this, an error is excluded, due to which the puzzle may not be assembled.

By solving the puzzle, you can move several blocks in a column and a row in one move. You can set controls for the GamePad and keyboard.

The engine code is very flexible for modifications, has many settings and can be integrated into any web page or web app.

Thanks krystal carpintieri for all the gifs.

Editor: https://krishealty.github.io/puzzle/

Demo: https://krishealty.github.io/puzzle/example.html


Editor and Demo

You can upload your image, set parameters and generate an html file with the game and your image. You can use the resulting file on your website or directly on your device, or you can modify it yourself, change the parameters, or write your own script that will run after the game is finished.

Try online editor: Puzzle

Try demo: Demo

Editor features

  • Automatic style adaptation based on image dimensions
  • Proportional division of an image into blocks
  • Building / exporting HTML file with the game
  • Moving multiple blocks in one move
  • Drag and Drop upload image

Simple 15 puzzle game maker for HTML