Bug Splat!
Posted: Wed Feb 11, 2009 12:54 am
So, I'm taking a video game design class... It's offered every semester, but each time they have a different topic. In the past they've done wii-mote games, stereoscopic games (think polarized glasses and 3D), etc... This semester it's multi-touch games. SEE: multi-touch youtube video
Our first assignment was to write a game in Processing. The minimum requirements:
- 10 bugs moving around on the table randomly.
- You can squish them with your fingers.
- The game has to be able to detect multiple fingers so you can potentially squish multiple bugs at the same time.
- When all 10 bugs have been squished the game ends with some text that congratulates you.
- Every time you squish a bug there’s gotta be some kind of visual as well as audio feedback.
We had two to three weeks to do it, but I procrastinated and ended up writing most of it in the last two days (or rather, sleepless nights). I think it turned out pretty nice considering it's the only game I've ever written (sleep deprived at that). I usually get around 50-60 FPS on my 4 year old laptop, so hopefully if anyone wants to try it they'll get the same or better. All it really requires is Java 1.4+ (I think) and OpenGL support. There's a bug (no pun intended) in the sound library I used - if you hit bugs too fast, it'll keep replaying the hit sound unnecessarily a few seconds later. It can be kinda annoying.
It was made for the tabletop multi-touch display which obviously influenced a lot of design choices, but this version is mouse only.
It has 10 levels (that can be changed with one line of code). You have 60 seconds to complete each. Each time you kill a bug, its health gets transfered to the remaining bugs. By the time you get to the last bug on a level, it'll have a lot more health than the first one you killed. Each level adds a bug or two, they have more health, and they're faster.
Head shots do less damage but slow the bugs down. Body shots don't affect speed but do more damage. I might go back later and tweak the health/damage/speed - when using my laptop touch pad, the clock doesn't come close to running out on me until level 8, 9, or 10. I guess I'd like to add some kind scoring mechanism at some point too.
It's pretty simple, but I had fun testing it.
F11 toggles a cheat button to skip levels.
F12 toggles a framerate display.
Esc should exit out immediately.
I think that about covers it. Feedback is welcome, but not necessary. Enjoy!
Our first assignment was to write a game in Processing. The minimum requirements:
- 10 bugs moving around on the table randomly.
- You can squish them with your fingers.
- The game has to be able to detect multiple fingers so you can potentially squish multiple bugs at the same time.
- When all 10 bugs have been squished the game ends with some text that congratulates you.
- Every time you squish a bug there’s gotta be some kind of visual as well as audio feedback.
We had two to three weeks to do it, but I procrastinated and ended up writing most of it in the last two days (or rather, sleepless nights). I think it turned out pretty nice considering it's the only game I've ever written (sleep deprived at that). I usually get around 50-60 FPS on my 4 year old laptop, so hopefully if anyone wants to try it they'll get the same or better. All it really requires is Java 1.4+ (I think) and OpenGL support. There's a bug (no pun intended) in the sound library I used - if you hit bugs too fast, it'll keep replaying the hit sound unnecessarily a few seconds later. It can be kinda annoying.
It was made for the tabletop multi-touch display which obviously influenced a lot of design choices, but this version is mouse only.
It has 10 levels (that can be changed with one line of code). You have 60 seconds to complete each. Each time you kill a bug, its health gets transfered to the remaining bugs. By the time you get to the last bug on a level, it'll have a lot more health than the first one you killed. Each level adds a bug or two, they have more health, and they're faster.
Head shots do less damage but slow the bugs down. Body shots don't affect speed but do more damage. I might go back later and tweak the health/damage/speed - when using my laptop touch pad, the clock doesn't come close to running out on me until level 8, 9, or 10. I guess I'd like to add some kind scoring mechanism at some point too.
It's pretty simple, but I had fun testing it.
F11 toggles a cheat button to skip levels.
F12 toggles a framerate display.
Esc should exit out immediately.
I think that about covers it. Feedback is welcome, but not necessary. Enjoy!