GithubHelp home page GithubHelp logo

money-wheel's Introduction

Money-wheel

🕹 Play game

Deploy to GitHub Pages

Prerequisites

  • Create a Money Wheel game
  • Use Typescript and PixiJS 4
  • Game canvas size should be 800x600

Game has to have:

  • Splash screen with button and input field where user enters starting balance in coins

  • 3 bet areas where user can click to select one bet

  • Spinning wheel that has to include bet multipliers where spinner can stop

  • Spin button that can be clicked only when bet is placed and not while wheel is spinning

  • Current Balance

  • Winning status – after every spin show if player has won and how much, otherwise clear the message

  • Game over popup – if balance drops to zero, show blocking Game over popup

Gameplay

When game is loaded, show Splash screen scene, where user enters amount of coins into the input field and clicks button to proceed to main game

After main game is loaded show Wheel, spin button, bet areas and current balance

Chip is worth 1 coin and can be placed by clicking on one of bets areas before spin

Player has to click on one of bet areas to be able to spin the wheel

After placing a bet and spinning the wheel, which takes some time to stop, update user balance and show message if user won

In case balance dropped to zero, Game Over popup is displayed

Run the project

Copy all this and drop it to the command prompt (you can run them one by one, just remove all "&&")

git clone https://github.com/CyberDex/money-wheel.git && 
cd money-wheel && 
git submodule update --init --recursive && 
npm i && 
npm run dev

After that just open the game on https://localhost:8080

Local build

npm start

Run on https://localhost:8080

Production build

npm run build

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.