Quantcast
Community Discussion: Blog by Shadowstew | Weekend Project: Drop Ball and Petit ComputerDestructoid
Weekend Project: Drop Ball and Petit Computer - Destructoid

DestructoidJapanatorTomopopFlixist





click to hide banner header
About
VIDEO GAMES!

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
Portal
De La Jet Set Radio
WWF No Mercy
Megaman X

PATIENTLY WAITING TO PLAY
Borderlands 2
Lollipop Chainsaw
The Last of Us
Bioshock Infinite
Guild Wars 2

CURRENTLY PLAYING
Persona 3 Portable
GTA IV
NBA 2K12
Super Mario 3D Land
Pushmo
Mutant Mudds
VVVVVV (3DS)
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
Journey
Mass Effect 2
WarioWare, Inc.: Mega Microgames! (Third Time!)
L.A. Noire
Portal 2

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

Player Profile
Follow me:
Shadowstew's sites
Badges
Following  





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.



Overview

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
-GIMP
-PTCUtilities

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



Graphics




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




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.


Photo Photo Photo



Is this blog awesome? Vote it up!




Those who have come:



Comments not appearing? Anti-virus apps like Avast or some browser extensions can cause this.
Easy fix: Add   [*].disqus.com   to your software's white list. Tada! Happy comments time again.

Did you know? You can now get daily or weekly email notifications when humans reply to your comments.


Back to Top




All content is yours to recycle through our Creative Commons License permitting non-commercial sharing requiring attribution. Our communities are obsessed with videoGames, movies, anime, and toys.

Living the dream since March 16, 2006

Advertising on destructoid is available: Please contact them to learn more