Shadowstew blog header photo
Shadowstew's c-blog
Posts 0Blogs 13Following 0Followers 0



Weekend Project: Drop Ball and Petit Computer


For those of you who are unfamiliar with Drop Ball, Drop Ball is an “extremely addictive, high intensity game designed for people everywhere.” Needless to say, there's not that many Drop Ball video games. So when I was trying out Petit Computer, a DsiWare application where one can write programs in BASIC, I started to think what video game I should make. Maybe I'll adapt Drop Ball into a video game.


While this isn't an in-depth guide on how to use Petit Computer or how to create an amazing video game, anyone can try following along on how to made a Drop Ball video game.

What I used:
-Petit Computer

My Drop Ball rules:
1. While in squatting position, grab the ball using your butt.
2. Stand upright without releasing the ball.
3. Only when full upright standing position, drop the ball to score a point.
4. Repeat without breaking your streak.

My basic outline:
1. Graphics
2. Programming
3. Sound
4. Testing


The graphics were very simple. I only drew nine sprites:
-Player standing
-Player crouching
-Player squatting
-Player victory stand
-Player crouching left
-Player crouching right
-Alternate Player squatting
-Alternate Player victory stand

Each player sprite was 64x64 pixels and the ball sprite was 16x16. Using GIMP, Petit Computer's built-in sprite editor, and copy-paste, I drew each sprite. I imported it into Petit Computer using PTCUtilities.

Programming Preparation

Before I started programming, I designed an outline what had to be done.

1. When a button is pressed, the corresponding action and animation must be drawn on screen.
The game controls:
L Trigger: Drops left leg (Player crouch left)
R Trigger: Drops right leg (Player crouch right)
L+R: Crouch (Player crouching)
Touch Screen: Butt Grab
L+R+Touch: Ball Grab (Player squatting)
2. A player scores a point on each successful ball drop (following Drop Ball rules).
3. A player loses the game with a failed ball drop (dropping the ball too soon).

What I programmed

BASICally, I wrote an main loop that checks if a button is pressed during a frame (1/60th of a second). If the button is pressed, the display is refreshed to update the player score, player sprite, and ball sprite. Once the ball is grabbed, an additional check is added when the player drops the ball. When the player drops the ball standing, the score is incremented. When the player drops the ball in the wrong position, the loop stops running (game ends).


Sound design is very easy to do in Petit Computer by using the built-in sound effect and music library. The BGMPLAY command allows multi-track music, and the BEEP command can change the pitch of a sound effect. I decided to add sound effects for each butt grab and ball drop. Additionally, I played around to create a “ONE POINT!” sound, imitating voice. To top it off, I added BG music during the game play.

Testing (And adding some finesse to it)

Test, test, test. The majority of my work is testing the game and fixing its errors. This is where I add some finesse to the game. For example, what makes a video game “a video game”? A title screen. A how-to demo. A game over screen. This is also the time to try to make the game even more enjoyable. I added some jokes during the demo video. I decided that secret achievements made the game much more re-playable, and I added the ability to save the high score and unlocked achievements.

My result

DROP BALL. Yeah, well it is a game. What I learned is video games are a lot of work. Even for simple ones. Below are the QR codes to play and test DROP BALL. Hit this link for a larger resolution.

Login to vote this up!


smurfee mcgee   1
PhilKenSebben   1
HandsomeBeast   1



Please login (or) make a quick account (free)
to view and post comments.

 Login with Twitter

 Login with Dtoid

Three day old threads are only visible to verified humans - this helps our small community management team stay on top of spam

Sorry for the extra step!


About Shadowstewone of us since 3:25 PM on 12.26.2006


Let's make it simple, I like games. You probably like games too. Then, we're good. I been playing game since I don't even remember when. So let's say Year 0.

Hi. I'm Shadowstew, a currently unemployed engineer. I recently graduated at the University of Maryland, College Park, with some BS in Computer Engineering. Soon to be out in the real world workplace. Somewhere... One of these days...

A Potpourri of my favorite games:
Gitaroo Man
Metal Gear Solid 3: Snake Eater
Super Mario World
Legend of Zelda: Windwaker
Persona 3
No More Heroes 2: Desperate Struggle
De La Jet Set Radio
WWF No Mercy
Megaman X

Borderlands 2
Lollipop Chainsaw
The Last of Us
Bioshock Infinite
Guild Wars 2

Persona 3 Portable
NBA 2K12
Super Mario 3D Land
Mutant Mudds
Alan Wake

Incomplete First Playthroughs Backlog
Fallout New Vegas
Deus Ex: Human Revolution
Ico HD
Shadow of the Colossus HD
Skate 3
Rhythm Heaven Fever
Mass Effect 3

Completed Games 2012
Mass Effect 2
WarioWare, Inc.: Mega Microgames! (Third Time!)
L.A. Noire
Portal 2

Completed Games 2011
Ghost Trick
The Last Window
Photo Dojo
Fallout 3
Stanley Parable
Uncharted 3
WWE 12
Saints Row 3

PSN ID:shadowstew
Steam ID:shadowstew
Mii code:ask for it


Around the Community