GithubHelp home page GithubHelp logo

allen307 / html5-slot-machine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johakr/html5-slot-machine

0.0 0.0 0.0 3.97 MB

Modern casino slot machine game using only plain JavaScript (Web Animations API)

Home Page: https://johakr.github.io/html5-slot-machine/

License: MIT License

Shell 0.76% JavaScript 69.57% CSS 14.84% HTML 11.07% Dockerfile 3.76%

html5-slot-machine's Introduction

HTML5 Slot Machine

Build and Deploy Status code style: prettier

This is a modern proof of concept casino slot machine game, built using only vanilla HTML, CSS and JavaScript. No Flash or Frameworks required. Allowing for an amazing low bundle size and blazing fast performance.

Built using the Web Animations API.

Live Demo

Features

  • Fully responsive for great UX on mobile, web & fullscreen mode.
  • Autoplay functionality, which keeps running even if the game window is in background.

Installation, Build & Deployment

  1. Clone repository
  2. Run npm install
    • Development: run npm start and go to http://localhost:8080
    • Production: run npm run build and serve from /dist

Configuration

For configuration options see config object in index.js

Property Description Default
inverted Controls visual spinning direction of reels. If false, reels will spin from bottom to top. If true, reels will spin from top to bottom false
onSpinStart Callback function invoked when spin starts with symbols pattern array (symbols) => void. undefined
onSpinEnd Callback function invoked when spin ends with symbols pattern array (symbols) => void. undefined

Credits

Icons are created by KPD Media and can be used for private and commercial purposes with no attribution required (check license here).

html5-slot-machine's People

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.