Skip to content
A scratch game to wish an happy birthday
JavaScript CSS HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
lib
quenda
.gitignore
Dockerfile
README.md
configuration.js
index.html
script.js
styles.css

README.md

Happy Birthday Scratch Game

Wish your friend, cousin, lover or whoever you want an happy birthday like a pro!

See http://happy-birthday.pro for a demo.

How to customize

Edit the configuration.js file to add as many games as you want. You need at least:

  • imagePath : the picture to scratch
  • backgroundImagePath : the background behind the message when the image is scratch
  • message : the message (either it's a win or a loss)
games: [
        {
            imagePath: "images/my-sctrach-image.png",
            backgroundImagePath: "images/orange-opacity.png",
            message: "Ca alors,<br> ninja-sushis a mangé une boîte!<br>Il n'en manquait pourtant <br>qu'une seule pour gagner..."
        },
        ...
    ]

That's pretty much it right now!

How to run

docker run -p 8888:80 ovski/happy-birthday-scratch-game:latest

browse http://localhost:8888/

You can’t perform that action at this time.