Congratulations, you have built a fully functioning Cupcake Smash game! And thatâs something to be really proud of!
How did it feel see your game come to life?
If youâre feeling extra proud, why not share your game with the world?
Our tags are:
But your coding journey doesnât have to stop here - JavaScript is an immensely powerful coding language and there are dozens of ways you could customise or improve your game.
Try out some of our suggestions below or add your own coding flair.
If you already understand a little HTML & CSS, you can add some of your own styling, or even a tagline with your name to your game so that everyone who sees it knows who the creator was! You could also add some additional animation to the âsmashâ (clicking on the cupcake) with some kind of explosion or graphic.
Why stop at 10 seconds? You could create multiple levels with variations each time. For example, you might increase the speed each round so that it becomes harder and harder. You could set a âminimum scoreâ that the user needs to beat to pass the level!
You might have noticed that there are different cupcakes that display - you could randomise which cupcake shows each time, and give the different cupcakes a different number of points each. You could also introduce decoys - maybe you lose points if you accidentally click a different gem instead of a cupcake!
The possibilities are endless. Whether you add new features or simply polish the look and feel of your game, every tweak is a chance to learn something new.
Check out some of our alumni and their versions! Play Jessâs game Kitty Pat
Play Christinâs version and avoid getting smashed
Or try Ginaâs from DDD
If youâve enjoyed learning with She Codes and youâre hungry for more tutorials, check out our growing list of free tutorials here .
Good luck, coder!
Keep exploring, keep coding, and most importantly, have fun smashing those cupcakes!