GithubHelp home page GithubHelp logo

lemmoor / jigsaw-svelte Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 8.0 347 KB

A web app where you can solve a jigsaw puzzle with a random image or your own.

Home Page: https://lemmoor.github.io/jigsaw-svelte/

License: MIT License

HTML 1.67% Svelte 57.26% CSS 7.52% JavaScript 33.55%
jigsaw-puzzle puzzle-game svelte game javascript

jigsaw-svelte's Introduction

Jigsaw puzzle game

A web app where you can solve a jigsaw puzzle with a random image or your own.
Star the repo if you like it! โญ
Live Demo

Table of Contents

Getting started

To run the application on your local machine, follow the steps given below:

  1. Download and install Node.js

  2. Clone the repository.

   git clone https://github.com/lemmoor/jigsaw-svelte.git
  1. Enter the local directory
cd jigsaw-svelte
  1. Install the required npm packages
npm install
  1. Run the application
npm run dev

Contributing

You are welcome to contribute and improve this project, I made it a while ago to learn svelte. Feel free to open an issue/PR :)

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

jigsaw-svelte's People

Contributors

abstrac7ion avatar cimlah avatar guiszk avatar leec94 avatar lemmoor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jigsaw-svelte's Issues

Improve CSS

Improve overall look of the website, you can remove picocss link from index.html if you want.

Add sounds

Would be nice to have some kind of sound played when a puzzle piece is put in the correct place.

Add a reset button

  • Add a reset button that resets all the pecies in some random place
  • Also one thing I noticed that once the puzzle is solved, peices remain in that state on generation of a new puzzle. So reset should be called everytime on generation of new puzzle

Add difficulty modes

Before start, add dificulty modes (easy, medium, hard) which change the amount of puzzle pieces. The default one shoud be easy.

Add Congratulatory message

  • Add Congratulatory message after solving the jigsaw puzzle
  • also show the time it took to solve the puzzle and give some score based on that

Fix mobile touch events

The touch events to move puzzle pieces (touchstart, touchmove, touchend) are there but they don't work properly.

Add github link

Add a link to this github repo somewhere on the page.
You can make a navbar and put it there or just add a github icon somewhere on the side.

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.