Planet Wars - interactive control

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

Planet Wars - interactive control

Postby pilesofspam » Tue Aug 24, 2010 1:00 pm

For my son's 5th birthday party I created a game. It's a 2 player cooperative fps space shooter played in our own solar system. It was targeted for Linux but with a little work it could be ported to any OS that Irrlicht supports.

To make it a bit more unique, I built a physical spaceship with a pilot's seat and a turret mounted cannon, for the two players. The pilot controls the spaceship with a mounted joystick (the trigger controls guided missiles), and the gunner shoots directly at the projection screen.

Shots on screen are picked up by a regular NTSC CCD camera and evaluated by a circuit that I built which looks for a laser dot on screen. The laser is very low power (eye safe) IR, and there's an IR interference filter on the camera so it works just fine under flourescent lights (I've got CFLs in the basement where this is set up). My circuit reports pixels on screen above a threshold set by a pot on the circuit. Turns out this works pretty well.

The party was a big success- the kids had a great time playing it. I plan to release build plans and sourcecode for everything (provided somebody is interested) but I've got a few bugs to fix first.

Anyway- here's a video of my boys in the spaceship:

http://www.youtube.com/watch?v=MzDrX_fjIk8

And here's one of the game (just a video of the screen)

http://www.youtube.com/watch?v=IsbFwmEBieM

I set up a blog while I was developing, but did a poor job of maintaining it. My upload rate is abysmal, so have some patience if you check it out:
http://dbarrett.no-ip.com/wordpress/

Finally, I'd like to thank all the folks here who helped me during the main development.
pilesofspam
 
Posts: 58
Joined: Mon May 11, 2009 4:31 am

Postby CuteAlien » Tue Aug 24, 2010 1:26 pm

Just wow :-)
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5396
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Postby pc0de » Tue Aug 24, 2010 1:35 pm

"My dad wrote me a video game for my birthday" - it doesn't get any cooler than that. Oh wait, it does - "he also built me a spaceship with a cannon" - unbelievable.

Well done pilesofspam.
pc0de
 
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Postby slavik262 » Tue Aug 24, 2010 1:41 pm

Coolest parent ever.
User avatar
slavik262
 
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Postby DeM0nFiRe » Tue Aug 24, 2010 4:16 pm

Ahaha, man that is so awesome. My parents have never made me a video game. Not even ONE ship with lasers either :(
DeM0nFiRe
 
Posts: 117
Joined: Thu Oct 16, 2008 11:59 pm

Postby Lonesome Ducky » Tue Aug 24, 2010 5:05 pm

Irrlicht: Bringing families together!
But really, nice work :D
User avatar
Lonesome Ducky
Competition winner
 
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Postby cobra » Tue Aug 24, 2010 5:10 pm

Wow. Great job, and that's awesome what you did for your son(s).

Very cool.
Josiah Hartzell
Image
cobra
 
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States

Postby stefbuet » Tue Aug 24, 2010 5:19 pm

So cool :D
Good job!
User avatar
stefbuet
Competition winner
 
Posts: 494
Joined: Sun Dec 09, 2007 4:13 pm
Location: france

Postby pilesofspam » Wed Aug 25, 2010 12:23 pm

Rather than bugfix first, I thought I'd get the source out and at least have some version control from this point on. So here's the initial release available from sourceforge cvs:

http://alienplanetwars.svn.sourceforge. ... lanetwars/

From any linux command line (assuming you have SVN)
Code: Select all
svn co https://alienplanetwars.svn.sourceforge.net/svnroot/alienplanetwars alienplanetwars

There's a .cbp in there since I used codeblocks in development. The .cbp is set up so that if you have already got irrlicht 1.7.1 unzipped, it make a subdirectory (called 'alienlanetwars') so run the above svn command from your irrlicht 1.7.1 root. Under alienplanetwars, you'll get a 'game' which has the compiled file (under Ubuntu 9.04- still has debug info enabled) and a 'space' which contains the source. It's using irrKlang for sound, so you should unzip irrKlang into the irrlicht 1.7.1 directory for all linking to work automatically. You might need to put the irrlicht and irrKlang .so files in the 'game' directory for the binary to run out of the box. Don't use the Makefile in there! I left it in by accident, since I started with the irrlicht 'helloworld' project. I'll bump it out or update it for the next release.

Warning! The code is a mess. I barely got it working in time for the party, so it needs some cleanup, fixes and some features added (right now I'm hardcoding calibration values for the hit detect). In addition, this was really my introduction to C++.

I've already got the schematic for the laser hit detect up on the blog, but I'll add the sourcecode under a new sourceforge project in the next few days.

Finally, many thanks to James Hastings-Trew, who gave me permission to use his planet textures. You can reach James, or check out his work here:
http://planetpixelemporium.com/planets.html
pilesofspam
 
Posts: 58
Joined: Mon May 11, 2009 4:31 am

Postby kazymjir » Wed Aug 25, 2010 1:18 pm

slavik262 wrote:Coolest parent ever.

Exactly!

Very creative and original, good job!
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
User avatar
kazymjir
 
Posts: 678
Joined: Sat Feb 20, 2010 4:05 pm

Postby Bear_130278 » Wed Aug 25, 2010 2:57 pm

Great 8))
Do you like VODKA???
Image
Image
User avatar
Bear_130278
 
Posts: 237
Joined: Mon Jan 16, 2006 1:18 pm
Location: Odessa,Russian Federation

Postby XXChester » Mon Aug 30, 2010 10:34 pm

Wow that is awesome, congrats to you. I only hope to one day make a game my 5 year old would like to play.
XXChester
 
Posts: 95
Joined: Thu Oct 04, 2007 5:41 pm
Location: Ontario, Canada

Re: Planet Wars - interactive control

Postby docWild » Thu Dec 15, 2011 6:00 pm

Will you adopt me?... I'm 30.
docWild
 
Posts: 38
Joined: Wed Nov 30, 2011 4:29 pm


Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 0 guests