项目
在 GitHub 查看
johakr/html5-slot-machine
关于
仅使用原生 JavaScript(Web Animations API)开发的现代赌场老虎机游戏
游戏与模拟器可以做什么
- Fully responsive for great UX on mobile, web & fullscreen mode.
- Autoplay functionality, which keeps running even if the game window is in background.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文HTML5 Slot Machine
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.
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
- Clone repository
- Run
npm install- Development: run
npm startand go tohttp://localhost:8080 - Production: run
npm run buildand serve from/dist
- Development: run
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).
探索相关项目
加载中…