RiverInvaders

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
gordon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Mon May 04, 2009 2:38 pm

RiverInvaders

Post by gordon »

I'm just posting to show my first 'finished' game, I say finished loosely as its only finished in the sense that it has a purpose, it still has many flaws which I will never go back and fix. I won't be making any further changes to this as when I was creating it I got quite lazy and my code is an uncommented, unmaintainable mess.

I've only compiled it for linux right now so you can try it if you are a linux user if not I'm afraid you'll have to wait until 1. I find a windows machine or 2. learn how to cross compile.

You will require all the usual SDL runtime libraries installed (SDL, SDL_image,SDL_ttf,SDL_mixer).

The game I think is similar to space invaders or at least that is the closest thing I can compare it to. It is by no means perfect for example enemies ignore each other and will happily shoot through eachother/move over and beneath one another and this is partly laziness and partly because I wanted to keep their movement and positions as random as possible.

Image

You're welcome to criticise it but please bare in mind it was hastily cobbled together in one night. Oh and you'll notice there is a level counter, I was going to implement levels but decided not to and forgot to remove that.

Controls
-------------
W - Move up
A - Move left
S - Move down
D - Move right
SPACE - Fire weapon

http://www.mediafire.com/?sharekey=5ad5 ... f6e8ebb871 - Extract the archive and run the executable "RiverInvaders"
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: RiverInvaders

Post by thejahooli »

I'm a windows user so can't try it but from the screenshot it looks impressive and is great for a first finished game.
I'll make your software hardware.
gordon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Mon May 04, 2009 2:38 pm

Re: RiverInvaders

Post by gordon »

thejahooli wrote:I'm a windows user so can't try it but from the screenshot it looks impressive and is great for a first finished game.
Thanks very much but looks can be deceiving :P . I'll try and get a version for windows compiled at some point.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: RiverInvaders

Post by Ginto8 »

gordon wrote:
thejahooli wrote:I'm a windows user so can't try it but from the screenshot it looks impressive and is great for a first finished game.
Thanks very much but looks can be deceiving :P . I'll try and get a version for windows compiled at some point.

Code: Select all

sudo apt-get install mingw32
^ On Debian, that'll get you a windows cross-compiler for linux :mrgreen:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
kilgariff
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 17
Joined: Wed May 07, 2008 8:45 pm
Current Project: ArkEngine, Regalia
Favorite Gaming Platforms: PC (Linux, Windows)
Programming Language of Choice: C++ and Assembly
Location: Scotland
Contact:

Re: RiverInvaders

Post by kilgariff »

Hi gordon,

Looks good, but you haven't capped the framerate.
It's way too fast :)

Using SDL_GetTicks() gives you the amount of time that has passed since initialization in milliseconds (providing the SDL_INIT_TIMER flag was sent to SDL_Init(), or just SDL_INIT_EVERYTHING). You can leverage that to make sure the game updates are based on time instead of the speed of the user's graphics accelerator.
Carmack: "The most important thing is to try and learn things deeply. Don't try for a superficial knowledge of a lot of things. I've gotten where I am from knowing everything deeply, down to the lowest level."
gordon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Mon May 04, 2009 2:38 pm

Re: RiverInvaders

Post by gordon »

kilgariff wrote:Hi gordon,

Looks good, but you haven't capped the framerate.
It's way too fast :)

Using SDL_GetTicks() gives you the amount of time that has passed since initialization in milliseconds (providing the SDL_INIT_TIMER flag was sent to SDL_Init(), or just SDL_INIT_EVERYTHING). You can leverage that to make sure the game updates are based on time instead of the speed of the user's graphics accelerator.
I have noticed varying speed issues but I'm sure I messily shoved framerate capping in , maybe I accidentally compiled the wrong version.....I'll look into it. thanks.
User avatar
derbon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 54
Joined: Tue Jun 09, 2009 7:25 pm
Current Project: Big Nasty Enemies
Favorite Gaming Platforms: NES SMS snes PC N64 PS2 Vectrex The Arcade Machine
Programming Language of Choice: C++, Perl
Location: why shud i tell u u mite steal my tv
Contact:

Re: RiverInvaders

Post by derbon »

BLIMEY

looks like those controls are for a left-handed person. RULEFTHANDED???
i think the best paint program would be microsoft paint + paint.NET+graphics gale + Paint shop Pro 7 + photoshop CS3, it would be called Paint Gale Pro Shop.NET,

http://youtube.com/gonduda
gordon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Mon May 04, 2009 2:38 pm

Re: RiverInvaders

Post by gordon »

Yes I am indeed left handed. :)
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: RiverInvaders

Post by LeonBlade »

I love how the whole game is just about River Invaders lol that's just awesome...
Image

That is a pink river dolphin... put it in your game.
There's no place like ~/
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: RiverInvaders

Post by MarauderIIC »

derbon wrote:BLIMEY

looks like those controls are for a left-handed person. RULEFTHANDED???
Say what? WASD are right-handed controls, because if you're playing, say, a first-person shooter, the mouse goes in your right hand. Left-handed controls are generally the numpad, because the mouse goes in your left hand. In short, handedness of controls is determined by what hand is free to use the mouse.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply