Game Development Community

Roses or game?

by Clint Herron · 02/14/2007 (11:46 am) · 19 comments

Some guys give roses, some guys give poems.
Some guys give dinners, or perhaps a trip to Rome.
But for my special valentine, I didn't do the same.
Because I gave my valentine, her very own small game.


I wanted to give it to her for Christmas, but I didn't get it done in time. However, I was able to sneak enough time away from the rest of my projects without her knowing too much about it, and I showed her a playable version of it last week. I'm so glad, because she *really* liked it -- it's not every day you have a wife that you can give them a video game and it makes them get all teary-eyed. :)

My wife and I both have fairly fluttery memories, and so this was a game that I wrote to help us remember some of the fun times we've had since we've known each other. The game is done in a stick-figure hand-drawn style, very similar to SketchFighter. The game is chock-full of things that are special to us, even down to the art style. We draw little stick-figure caricatures of ourselves from time to time in the corners of church sermon notes or on cards that we write to each other, so I happily ran with that concept and did the whole game in that art style. I drew up a sprite sheet with an ink pen on a piece of paper, took a picture of it with our digital camera, and then cleaned it up in Gimp before bringing it into Torque Game Builder. With heavy reliance on the TGB Mini Platformer example, I tweaked it and added some things that I think make it pretty fun. The boogs (bugs) in the game are this particular kind of beetle that hang around our house in the summertime and are the bane of my wife's existence when they're in full season -- they eat her garden plants and generally just crawl around on the ground so much that it looks like it's moving. It's really gross. So it seemed very fitting to have them be the things that one has to dodge in the game.
www.rickherron.com/clint/JenGame/JenGame3.png
So basically, you run around and collect treasure chests, which contain memories that I've written down. Your goal is to collect all of the treasures on a level, then the gate opens up and you can proceed to the next one, and at the end, her little avatar is reunited with mine, and we go walking off into the sunset holding hands (this end cutscene has the artwork done, but it's not put into the game yet).
www.rickherron.com/clint/JenGame/JenGame2.png
It loads all of the memories from a text file, and removes them one-by-one so that a memory is never repeated during the same game.

The biggest thing I changed in the TGB mini platformer was making a variable-height jump, by making my jump function look like the following:
function Jen::Jump( %this, %pressed )
{
	if (%pressed)
	{
		if ( MemoryWindow.visible == true )
		{
			HideMemoryWindow();
		}
		else if (!%this.airborne)
		{
			%this.setLinearVelocityY($JUMP_SPEED);
		}
	}
	else
	{
		if ((%this.getLinearVelocityY() < 0) && (%this.airborne))
		{
			%this.setLinearVelocityY( %this.getLinearVelocityY() / 2 );
		}
	}
}

So that if they let go of the spacebar while jumping, then it cuts their vertical velocity in half. It actually makes for a very good jumping feel, and it's quite a bit of fun to run around in the level just jumping around on the platforms. My wife has hair that reaches almost to her waist, so I couldn't resist making the jumping-down sprite have her hair flying up in the air. :)
www.rickherron.com/clint/JenGame/JenGame1.png
So in this festive (albeit overly-commercialized) Valentines holiday, I hope you all give your loved ones a big hug and kiss (if appropriate), and in some small way endeavor to love them with a heartfelt and selfless love.

Cheers!

--clint

About the author

Recent Blogs


#1
02/14/2007 (11:56 am)
Nice! I love it!
#2
02/14/2007 (11:59 am)
Very nice.
#3
02/14/2007 (12:16 pm)
You may have unknowingly found a niche market. Cool stuff!
#4
02/14/2007 (12:51 pm)
Thats great, well done!
#5
02/14/2007 (12:56 pm)
I gave my girlfriend a game once for Valentine's Day. Did I mention I am single now?
#6
02/14/2007 (1:33 pm)
@Ray Noolness Gebhardt
Can you post a screen shot?
#7
02/14/2007 (1:35 pm)
That's awesome original..
#8
02/14/2007 (2:25 pm)
nicely
#9
02/14/2007 (2:53 pm)
Awwww........ =-)
#10
02/14/2007 (3:26 pm)
@Clint: That's the coolest V-day gift ever! (Normally I am opposed to V-day, this is a noteworthy exception)

@Ray: I'm also interested in a screenshot of the game that made you single. I think I can help some of my friends with some holiday gift-giving advice if you let me in on your secret.
#11
02/14/2007 (3:55 pm)
wow, that definitely beats a text message!
#12
02/14/2007 (4:40 pm)
That is pretty cool man. :)
#13
02/14/2007 (4:55 pm)
Very cool -- very cool indeed.

Do you have any intention of updating the platformer tutorial to account for some of the things you may have added?
#14
02/14/2007 (10:56 pm)
Hey all!

Thanks so much for all of the kind encouragement. :)

@Ray: Did you make her her own game, or buy her a game as a gift?

@Jesse: Yeah, normally I'm fairly opposed to V-day as a rule as well (Hallmark rubs me the wrong way), but we sortof made an exception this year. :) Plus it's nice for us, because Feb 14th is our half-anniversary (just hit 2.5 years).

@David Higgins: Y'know, that's not a bad idea. I didn't make huge improvements to the game -- seriously the biggest improvement I made was adding in the variable jump height, and that would perhaps be worth it to add to the tutorial. Thanks for the suggestion! :) Maybe we should start another page on TGB for "expansion packs" to the mini platformer, that adds things like enemies, sloped tiles, attacks (I have a version of this that I've been working on casually that adds Kingdom Hearts style air-combo attacks to the game), and things like my little variable jump improvement. We still want the mini platformer example to be as absolutely dirt simple as possible for newcomers to the game engine, but having expansion resources for it might be worthwhile. I dunno', maybe this one is small enough to go in the root though. *shrug*

Anyways, thanks again for the feedback, all! :)
#15
02/15/2007 (12:19 am)
Nice work. Nice blog.

I should try to make a Starcraft clone for my wife... 8-/
#16
02/15/2007 (3:20 am)
Nice! Original and meaningful.
#17
02/15/2007 (3:26 am)
Awwww.... =)
#18
02/15/2007 (10:55 am)
I had a fantastic Valentine's day until I took a bite of a piece of cheesecake at the resteraunt my wife and I went to dinner at and I joked that she should try a bite because it was better than sex... she tried it, said 'well, it's really good, but not better than sex' to which I made the worst wrong turn joke in all of history and said 'well, maybe not for you'. I was making an absurd joke about how women in movies always joke that dessert is better than sex and I was saying it like it would be funny to actually hear a guy say that. Yeah. I wasn't funny. My poor wife just looked at me and I could tell she was about to cry. And I was just sitting there in the middle of a resteraunt with my eyes and mouth wide open thinking "WHAT THE HELL IS WRONG WITH YOU ANTON YOU IDIOT!!!!". She knows me and knew I was being absurd, which is why I wasn't wearing the cheesecake after saying it. But that has gotta be the stupiest thing I've ever done in my whole entire life. Even just from a selfish perspective. You don't say anything is better than sex on Valentine's Day?!!? For the love of sex!! You don't do that!! But good old speaks before he thinks Anton does!! It was all fine in a few minutes as I stuttered and she said it's better to just say nothing. Funny... apparently the only way to really get over saying dessert is better than sex is to prove it... so... somehow someway I still wound out the winner because later that night... wait... I'm not telling you this part, ya perverts!
#19
02/16/2007 (1:40 am)
@clint that is a wonderful gift to give! Any gift given by someone named clint is pretty good in my book, but this is a particularly good one, much better than just spending some money!

-clint