stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

Scratchy

  • 2 Devlogs
  • 13 Total hours

Try and get 3 of the same icons in a row to win!

Ship #1 Pending review

I made a scratch off ticket just like the one in real life except no real money is involved and it is purely for fun. I faced many challenges throughout this experience especially trying to implement audio features to my webpage without using external sources or files. I am super proud of being able to incorporate knowledge from previous projects to help me effectively create important parts of my program.

  • 2 devlogs
  • 13h
Try project → See source code →
Open comments for this post

5h 0m 12s logged

In this latest update, the project took a massive jump as I pushed the boundaries of and unassisted HTML file can actually handle. With the core mechanics stabilized, I brought the game to life with visual feedback and audio feedback. I also aded a little confetti system using dynamically animated elements to give each win a feeling of reward. I also added sound using the web audio AIP to to do it. The hardest part was figuring out how to add sound using the built in web audio API as it is something new to me.

0
0
1
Open comments for this post

7h 52m 15s logged

I just finished building all of the core functions in HTML! The point of this is to show me the limits of html and so far I haven’t used anything else. The whole program was made in html. I spent a lot of time testing out grid sizes and different patterns but the most confusing problem was figuring out how to detect when the player had scratched off enough of the grey to trigger the reveal and win checking functions without crashing the whole webpage. One method I used to fix this was to add a percentage threshold. Once the percentage of transparent pixels crosses 50% it clears the rest and runs the win evaluation.

0
0
15

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…