GithubHelp home page GithubHelp logo

anthrax3 / cryptoslots Goto Github PK

View Code? Open in Web Editor NEW

This project forked from galaxyshub/cryptoslots

0.0 0.0 0.0 9.72 MB

HTML5 Slotmachine (5 Reel 3 Tile)

JavaScript 84.43% HTML 10.98% CSS 4.59%

cryptoslots's Introduction

CryptoSlots

See deployed app here: https://cryptoslots.herokuapp.com/slot.html

HTML5 Slotmachine (5 Reel 3 Tile)

Written in pure Vanilla Javascript with no third-party libraries.

This was the first game I made in Javascript in the minimial working condition that I felt comfortable presenting. It contains some outdated syntax because I was in the process of learning ES6 and needs to be cleaned up a bit.

Feel free to use this game for personal uses but do not use it for real money.

cryptoslots

Game Description

Match the number of tiles from left to right for a series of lines. At least 3 tiles must match in this game for a win.

Game Features

Shapeshift symbol is wild.

Ability to change the line bet (up to 100) and the number of lines (up to 50).

Autoplay multiple games.

Max bet calculator

The tile images for each reel are not fixed like a physical slot machines. Instead each image has a different probabilty of showing up and is randomly selected.

The bonus game feature has not been implemented but it was supposed to be achieved by aligning the Bitcoin Cash tiles. Free games using tile images of all the Bitcoin forks were to be awarded.

Game Custimization

Images

Change the tile images in the Pictures/MainTiles folder. The pictures must be PNG and have the same naming convention.

Change the background images in the Pictures/backgrounds folder.

Game Properties

The following properties can be customized in the initconditions.js file

The number of reels (max 5) - Number of elements in the slotWidths array

Reel size - Value of an element in the slotWidths array

Example:

const slotWidths = [Math.floor(cWidth/5),Math.floor(cWidth/5),Math.floor(cWidth/5)]

creates a 3 reel slot machine of equal length reels

Number of tiles per reel (max 6): nTilesPerCol variable

Note: A different array of paylines has to be used for more than 3 tiles per column

Tile frequency per reel: tileProb array.

Payout struture: payouts array.

Third Party Contributions

Fonts

https://www.fontsquirrel.com/

Images

Buttons created with https://dabuttonfactory.com/

All other images found with Google Images

Sounds

https://freesound.org/

cryptoslots's People

Contributors

foobar2016 avatar galaxyshub 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.