Here, I've broken down one of my favorite Bitsbox apps, Super Plumber Jumper. First, we build the environment of the app. Then, we add movement and obstacles. And, finally, we add an objective and a bad guy!
(Hate waiting? Play the finished app here!)
Let's start with Part 1 of the code: Platforms and a Plumber!
Code from Part 1
This code sets the scene—rolling hills with seemingly harmless platforms—and introduces our fearless hero. Now, wherever your mouse (or finger, if you're on mobile) goes, the plumber follows!
Part 2: Gravity and Infinite Platforms!
Code from Part 2
Mr. Plumber isn't so invincible after all! Now he's working against a few things: namely, gravity and endless platforms.
Now, for the fun part…
Part 3: Coins (good) and Poop (bad)!
Code from Part 3
Collect the coins to give the plumber a big boost!
Part 4: Music and Untimely Death!
Code from Part 4
Alas, every plumber's kryptonite: poop. Keep track of the coins you've collected and dodge the deadly dung!
Customize your game!
Every Bitsbox app is entirely customizable. We have thousands of assets available in the Bitsbox Library. Want to collect hamsters instead of coins? Or change the face of your hero? It's easy to tailor every aspect of this game!
Want to build even more apps? Subscribe today and get your own collection of crazyfun app projects delivered to your door every month!