JavaScript Emoji Slot Machine

About 25 years ago, I remember creating a slot machine game in Flash. I thought it might be fun to try and create another one using HTML, CSS & JavaScript. This demo is the result.

The game itself is fairly basic, but I thought it might be fun to add a bit of jeopardy in the form of poops πŸ’©. If the player spins 2 poops, 20 coins are deducted. If the player spins 3 poops, 100 coins are deducted. The player starts with 100 coins, so a triple poop could mean instant game over.

Sound effects are handled by the howler.js audio library.

NOTE: It was to play around with this, but it should be noted that you'd never really want to write any real-world gambling style game using client-side code, at least not where any real money is involved. That said, it could be used for more trivial purposes, such as gamification of online shopping discount codes etc.

audio games javascript

Comments

New Comment

If you have a comment you'd like to share, feel free to leave it below. I moderate all comments before they are published. Markdown is enabled. See syntax for help.


I'll never share your email with anyone else.

Web Demos

My web demos exist as a playground for creating experiments written in HTML, CSS and JavaScript.

I have previously used CodePen for experimenting with HTML/CSS/JavaScript, but in the spirit of IndieWeb POSSE, I decided to start hosting my demos myself.

Folksonomy

I like tag all content on my site. See below for all tags used within my web demos.

Subscribe

Click the link below to subscribe to my Demo feed in your favourite news reader client:

RSS feed

Philip Newborough and a donkey enjoying a beer.

About

My name is and I’m a full stack web developer living and working in Lincoln, England. This website (philipnewborough.co.uk) serves as my personal homepage. When I’m not working with tech, I love to ride bicycles with my wife and friends.

← An IndieWeb Webring πŸ•ΈπŸ’ β†’