Code Monkey home page Code Monkey logo

reels-of-fortune's Introduction

REELS OF FORTUNE slot machine game

A web-based slot machine game built in JavaScript using the P5.js library.

Can you win the Jackpot?

Player starts with 100 credits. Each spin costs 1 credit.
Score information can be shown by clicking the pay table in right-bottom corner.

Under the game window, checking the Debug Menu button will reveal controls for debugging the game. The game originally runs randomly, but by using this menu the player can fix what symbol lands on which line per reel. It is also possible to make the values random by choosing 'Random Symbol' or 'Random Line' for each reel.

Another use for the Debug Menu is to add credits. Note that the minimum value is 1 credit, and the maximum is 5,000 credits.

Current Issues / Missing Key Features:

  • The reels are supposed to stop in the following order: left reel after 2 seconds, center reel follows by 0.5 seconds, lastly the right reel after another 0.5 seconds. Making the entire round last about 3 seconds. This is currently not happening the way it is intended to, as to how I made the reels loop. High scroll speeds make it quite difficult for the engine to catch the smaller distance changes between a reel and its planned stop point, and it almost always passes it between one frame and the next. A possible solution is to not make it so the engine reads the distance to stop a reel, but actually redraw the symbols/reel where they're supposed to land after the spinning time has elapsed. I'd like to try this solution later on and see if it impacts the visual perceptions of the player.

  • The game is planned to have an 'Add Balance' below the balance indicator. Hence, the little empty space below it.

  • Would be good to include some sound effects as well.

reels-of-fortune's People

Contributors

ashenawy avatar

Watchers

James Cloos avatar  avatar  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.