Giter Club home page Giter Club logo

iseseisev-projekt's Introduction

Iseseisev projekt
Teema: SLIDER PUZZLE
Autor: Sofia Geroiskaja

Funktsionaalsus:
Minu mänguleht koosneb pealkirjast, sõnumist mis muutub mängu jooksul, puzzlest, start/restart ja moves nuppudest.
Kasutasin ka sellist library nagu TweenMax (TweenMax võimaldab animeerida mis tahes objekti, mida JavaScript saab puudutada). Vaatasin ka paar videot et aru saada kuidas projekti teha: https://www.youtube.com/watch?v=2eFcrXqrYPk ja https://www.youtube.com/watch?v=s-nPR9-ham8.
Ma kirjutasin funktsioonid nagu start(),init(),shuffle(),move(),setEmptyPiecePos(),checkIfWon(),congratulations(),checkAvailableMoves(),chooseRandomMove(),shuffleMove(),getRandomInt() ja blink(). Alguses mängija näeb sõnumit "Press start to begin!" ja kui ta vajutab nuppu siis nuppu tekst on "Restart" ja sõnum on "Click on pieces to move them. Good luck! Try hard! I believe in you!" ja kui ta võidab siis "You won! Congratulations! You made it in ... moves". TweenMax kasutasin selleks et empty_piece animeerida. Kui mäng algab siis empty_piece kaob ära ja kui mängija võidab siis see tuleb tagasi. Kõiki teisi funktsioone kasutasin selleks et leida vaba koht kuhu puzzle_pice saab liikuda ja selleks et seda liigutada. Mängu jooksul iga kord kui puzzle_piece liigub muutub moves number mida näeb mängija

puzzlegame1

puzzlegame

puzzlegame3

iseseisev-projekt's People

Contributors

sofiageroiskaja avatar taurikirsipuu avatar

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.