Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
PaulCunningham
Baaaaa!
Baaaaa!
Posts: 1218
Joined: Sun Jan 18, 2004 11:47 pm 0
Location: Walsall, England
Contact:

Post by PaulCunningham »

fog wrote:Looking nice Paul. Can't wait to see how the things we discussed take shape :)
Ta - as I've only got 3 weeks or so left it will be a simplified version of what we discussed for phase 1 (Dream Build Play). For phase 2 I'll probably bang it on the 360 and then look to add power ups, game styles and some sort of multi player modes after that. Hopefully a Mac version too but that depends on how Mono progresses.

I'm pretty pleased with how much I've actually got done in the time though. Managed to blag a fair bit from previous projects but C#'s value / reference type shenanigans means it's not simply a case of blindly cut 'n' pasting.

I've really enjoyed coding with XNA though and it has definitely helped having a static (ish) 'spec' from day 1. Shaders are a big departure from my naive GL rendering and I'm looking forward to doing some funky effects when the competition is over.
Cheers,
Paul Cunningham
Pumpkin Games
User avatar
l1n3n01z
Baaaaa!
Baaaaa!
Posts: 1777
Joined: Tue Nov 19, 2002 12:14 pm 0
Location: Iceland
Contact:

Post by l1n3n01z »

NNNNNGGGGGGGGG why did no one send me the memo about this stupid competition!

There should have been a sticky topic in programming forum, I tell you.

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
</Darth Vader>
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8447
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Post by KlaxonCow »

l1n3n01z wrote:There should have been a sticky topic in programming forum, I tell you.
Yeah. Even though personally I'd have had little direct interest - what with not owning no 360 or nowt - it does seem remiss that it passed unmentioned.

Ah, maybe everyone who knew about it was thinking that someone else would post it and was waiting for someone else to do it. The old "Mexican stand-off" posting situation.

Or maybe they were just too busy with their heads down, pressed against the grinding wheel, working on their own games?

Actually, maybe that's more likely and plausible.
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
Muttley
Sheepie Whore
Sheepie Whore
Posts: 13169
Joined: Thu Apr 25, 2002 12:30 pm 0
XBL Gamertag: Mu77ley
Location: In a maze of twisty passages, all alike.
Contact:

Post by Muttley »

Updated my little Crazy Comets spinny starfield background to BlitzMax.

Hit Escape to exit.

Muttley
Attachments
CCStarfield.zip
(53.04 KiB) Downloaded 130 times
Muttley's Blog: Rarely updated, occasionally interesting… maybe
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Post by Kamineko »

Or maybe they were just too busy with their heads down, pressed against the grinding wheel, working on their own games?
That what it feels like to me listening to the Lemmings music now.
User avatar
PaulCunningham
Baaaaa!
Baaaaa!
Posts: 1218
Joined: Sun Jan 18, 2004 11:47 pm 0
Location: Walsall, England
Contact:

Post by PaulCunningham »

Here's a demo of the game so far (ggrrrrr - bloody wavs make it 30 meg - sorry)

Requirements? XNA (so I think you'll need .Net2.0, XNA and DirectX9C). Oh yeah and a 360 pad too.

So that narrows down the potential audience to about three people then :)

If you haven't got a pad you can still run it and see a demo level playing for a bit.

Unoptimised, a few bugs, unfinished, blah, blah, blah.
Cheers,
Paul Cunningham
Pumpkin Games
User avatar
the2bears
Baaaaaa!
Baaaaaa!
Posts: 3686
Joined: Wed Oct 27, 2004 9:30 pm 0
Location: The City by the Bay
Contact:

Post by the2bears »

PaulCunningham wrote:Oh yeah and a 360 pad too.
:D Mine just arrived in the mail today!

Bill
the2bears - the indie shmup blog
User avatar
PaulCunningham
Baaaaa!
Baaaaa!
Posts: 1218
Joined: Sun Jan 18, 2004 11:47 pm 0
Location: Walsall, England
Contact:

Post by PaulCunningham »

Excellent - they really are nice pads. I'm thinking of getting the wireless adapter so I can use the 'spare' one too (or maybe just another pad would make more sense).

Just found out there is a dll for PS2 pad support so I'll add that and keyboard support in soon(ish).
Cheers,
Paul Cunningham
Pumpkin Games
User avatar
Mark
Baaaaaa!
Baaaaaa!
Posts: 3611
Joined: Mon Apr 22, 2002 7:53 pm 0
Location: England

Post by Mark »

PaulCunningham wrote:Here's a demo of the game so far (ggrrrrr - bloody wavs make it 30 meg - sorry)

Requirements? XNA (so I think you'll need .Net2.0, XNA and DirectX9C). Oh yeah and a 360 pad too.

So that narrows down the potential audience to about three people then :)

If you haven't got a pad you can still run it and see a demo level playing for a bit.

Unoptimised, a few bugs, unfinished, blah, blah, blah.
Nice.

For those who haven't got XNA setup here's a utility that checks for the necessary .Net, DirectX and XNA components and installs/updates them if needed.

http://xnamatrix.com/download/XNAReq.exe

Then all you need is the 360 pad, which I also heartily recommend for PC gaming. I bought a wired one, which makes a useful backup for when I've forgotten to keep a set of batteries charged for my 360 (or for using when I'm shamelessly leaving a game running just to extract stupid time-based achievements :oops: ).

As to the demo - I've only had a quick play, but that's shaping up really nicely. It's a bit tricky with just the one life, but I managed to see about 3 seconds of level 3 before getting hit by a swarm of swirly things.

My main piece of feedback is something that you're probably well aware of, and that's that a radar would be very handy, or at least an indicator arrow showing which side and which direction an alarm is coming from.

Another thought - have you considered having the Y movement of the ships mirrored, rather than maintaining a fixed distance? I like the idea of this, and it would also allow both ships to crash into the ground in unison when one dies which might be nice.

Good stuff so far though. :)
User avatar
PaulCunningham
Baaaaa!
Baaaaa!
Posts: 1218
Joined: Sun Jan 18, 2004 11:47 pm 0
Location: Walsall, England
Contact:

Post by PaulCunningham »

Mark wrote: As to the demo - I've only had a quick play, but that's shaping up really nicely. It's a bit tricky with just the one life, but I managed to see about 3 seconds of level 3 before getting hit by a swarm of swirly things.
The player currently has 3 lives but due to a little bug they all get zapped in quick succession when you hit something :oops:

I've not fixed it yet because I don't know whether if sticking an energy bar in there and having a single life might be a better idea. Not sure what to do (in a multi life scenario) when the player dies - clear the aliens and restart the level? Spawn the player again with 2 seconds of invincibility, etc.

Aliens spawn a little too aggressively now - gonna tone it down. I usually manually hand craft levels using scripts (which has got to be the most boring part of the whole dev process). Using an algorithm has been a bit of a revelation.
Mark wrote: My main piece of feedback is something that you're probably well aware of, and that's that a radar would be very handy, or at least an indicator arrow showing which side and which direction an alarm is coming from.
First thoughts were to favour little Dropzone arrows. There's quite a bit to concentrate on currently and I think a radar would just be asking a lot of the poor player :)
Mark wrote: Another thought - have you considered having the Y movement of the ships mirrored, rather than maintaining a fixed distance? I like the idea of this, and it would also allow both ships to crash into the ground in unison when one dies which might be nice.
I've had it working like that in a previous build and I've also had the worlds scroll in opposite directions too. The current setup seems to be the easiest to actually play (even though it's probably the least interesting to look at). Both of the other ideas really screw with your head when switching worlds and they are quite jarring.
Cheers,
Paul Cunningham
Pumpkin Games
User avatar
Mark
Baaaaaa!
Baaaaaa!
Posts: 3611
Joined: Mon Apr 22, 2002 7:53 pm 0
Location: England

Post by Mark »

PaulCunningham wrote:The player currently has 3 lives but due to a little bug they all get zapped in quick succession when you hit something :oops:

I've not fixed it yet because I don't know whether if sticking an energy bar in there and having a single life might be a better idea. Not sure what to do (in a multi life scenario) when the player dies - clear the aliens and restart the level? Spawn the player again with 2 seconds of invincibility, etc.
This is just personal opinion, but I much prefer lives to health bars. Health bars feel a little woolly to me, whereas with one-shot-kill lives you know exactly where you stand, and every bullet packs a real punch. This is probably one of those issues that will split gamers 50/50 though. No right answer. Good luck. ;)
PaulCunningham wrote:
Mark wrote: My main piece of feedback is something that you're probably well aware of, and that's that a radar would be very handy, or at least an indicator arrow showing which side and which direction an alarm is coming from.
First thoughts were to favour little Dropzone arrows. There's quite a bit to concentrate on currently and I think a radar would just be asking a lot of the poor player :)
Fair enough. I know what you mean about the radar. It also means with some games you end up playing via the radar rather than the screen which is a little bit silly.
PaulCunningham wrote:
Mark wrote: Another thought - have you considered having the Y movement of the ships mirrored, rather than maintaining a fixed distance? I like the idea of this, and it would also allow both ships to crash into the ground in unison when one dies which might be nice.
I've had it working like that in a previous build and I've also had the worlds scroll in opposite directions too. The current setup seems to be the easiest to actually play (even though it's probably the least interesting to look at). Both of the other ideas really screw with your head when switching worlds and they are quite jarring.
I wondered if that may be the case. I personally love games that play with my head, but again, I know plenty of people who don't. What you have currently is definitely nice and easy to get to grips with (and a nice simple control method means you can be that bit more savage with the enemies if you want :twisted: )
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8447
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Post by KlaxonCow »

I prefer health bars. :D

It's a "player psychology" thing, you see. Health bars are more tolerant of the player's odd stupid mistakes. You know, their hands are a bit sweaty from long play and slip off a joypad button by accident or in comes the kid / brother / girlfriend to ask a dumb question at just that crucial moment in the game, distracting them, wiping out their last remaining life or whatever.

"Lives" are completely binary. They demand absolute player perfection at all times with no mess ups at all...or you're dead.

Health bars can be a bit more inviting to the beginner player too.

Have you ever played a game with a particularly steep learning curve where the instant you fire it up, you're only managing to move about two inches across the screen before - boom! - you're dead and then, when you reappear, you move those two inches again and - boom! - you're dead once more. This happens a few times in quick succession, your game lasts all of about 12 seconds and then you're greeted with "GAME OVER"?

While an ubergamer may "love the challenge", the beginner player who has yet to have a clue how to play the game - because they haven't had the chance to master anything of it - just feels totally "locked out" of the game, thinks "fuck that" and then vows "on principle" never to play that game ever again. This is VERY BAD.

Ultimately, as I was saying, it's actually psychological and though, mathematically speaking, there's not really much of an actual difference between having a health bar where you can take three hits before you're dead and the player has three lives, or simply just giving the player nine lives - because, either way, the player gets nine "tries" - the player's psychology is eased into a game better with the health bar system.

You know, the player walks along (it's a platformer) and sees a new type of object - a bush - sitting on one of the platforms. The first time this has appeared in the game, so they don't yet know if it's a goodie or a meanie (e.g. are they supposed to walk over the bush to gain a "pick up" or is it a poisonous bush - a la manic minor - that kills them?).

They walk into it and - boom! - they're dead: "Oh, okay, so it's a meanie". But this is a bit of a harsh way for players to work out what's what. Working out what's what is somewhat crucial to the gameplay and it isn't really something that the player should be too harshly attacked for doing.

I mean, it's the wrong kind of "Pavlovian response" to find yourself dead when all you're trying to do is work out how to play the bloody game in the first place.

But if they walk into it and it's just "ouch!" - a chunk of their health bar is zapped - then they are correctly getting "a slap on the wrist" (a correct Pavlovian response for doing something wrong) but not having their life taken away and made to do it all over again.

Also, more obviously, health bars open up scope for add additional gameplay elements. "Stimpacks" pick ups for recovering health or special "healing locations" where the player has to weave and dodge their way back - on a single point of health remaining - to get to the "healing spring".

There's something satisfying for the player to have their health decimated and be clinging on desperately to their life then struggle against the odds to keep death at bay, in order to collect up enough "health packs" to get back to normal strength again.

It adds a natural tension that has them on the edge of their seat.

Then, of course, health bars permit a little extra variety in your enemies too. Simply, the "standard" meanie only causes 10 point of damage, the more dastardly "elite" meanie causes 33 points of damage. While you can take some hits from the "standard" meanies, the "elite" meanie has basically got you killed in one or two shots.

The health bar permits there to be a tangible difference between the enemies that you can invoke a touch of dread and fear in the player when the "uber-elite" meanie - kills with one shot - appears.

If all enemies kill with one shot then this makes them somewhat the same, except for their graphic and their attack patterns.

Mind you, I can totally see why some are not great fans of the health bar. Because too many games are perhaps slightly "too nice" to the player and allow them to be blown up a million times, with health packs strewn everywhere, that unless they do something particularly stupid, they're akin to being invulnerable.

I wouldn't recommend that. Rather I'm thinking that something like Paradroid pitched it about right. Droids do have health but it's pretty harsh and discrete, in that one or two hits from a meanie will have you dead. There are health regenerators but as they take time to do their work - and zap away at your high score - then you can't use them in the heat of battle and you don't really want to use them too often as your score is dwindling towards nothing.

Note that Paradroid also demonstrates how having "health" allows there to be a genuine tangible difference that the player can feel between the enemies (if the 999 shoots you when you're a 001 then he kills you first shot. But as an 883 being fired at by a 476, he's not denting you too much). It also demonstrates beautifully the "sheer panic" effect, when your droid is near "burnt out" and you're desperately trying to find another droid to transfer to. And the game perfectly captures the "somehow recovering from the brink of death against all the odds", as your 001 is flashing on the brink of death but you just manage to save your arse in the nick of time.

In fact, I'd say Paradroid - which I think might have been one of the first games to ever use "health" in such a way - is the poster child for how to do the game concept just right. Braybrook balanced it just perfectly, which is why it's one of the best games of all-time.

If you use health and balance it towards the harsher end of the spectrum as Paradroid did (rather than the "so permissive it's stupid and the player's effectively invulnerable" that some more modern games do, which does, I confess, bring a poor reputation to the trusty "health bar" as completely zapping all challenge out of a game) then you can gain all those moments of "sheer panic" and "tension" as well.

So, use a health bar but, yes, a hit from a meanie does end up zapping a large chunk out of it that you can only take one or two hits before exploding to smithereens. Permissive enough that the odd mistake isn't punished too harshly but harsh enough that it's still a challenge to play.

Also, if you are concerned about getting enough "impact" into being hit to make it seem properly nasty to the player, then there are alternative ways to give it enough "impact" to challenge the more skilled players.

For example, a simple "bonus multiplier" system. As you kill meanies, your multiplier goes up but if you're hit then it drops back down to "x1" again. Therefore, skilled players who want a high score are going to try to play without getting hit even once, in order to truly send their score into the stratosphere. But this doesn't come at the price of locking out the less skilled players, who simply don't get as high a score and benefit from the "health", not feeling "locked out" of the game because it's too difficult.

If you have "power ups" then you could also simply have it that getting hit knocks the "power up" off the ship. Hence, you want to play without getting hit in order to keep your super-duper weaponry (or, going in the direction of Super Mario Bros or Sonic, you could have your hard-won coins or rings being knocked out of you and scattering all over the screen).

And, even more simply, when the player gets hit, make the visuals / audio have some serious "impact" to them. The player#'s ship can actually be given some almighty momentum from the blast which sends it flying. Accompanied with a massive pixel shatter of debris bouncing off the hull and a suitably loud "boom!" noise.

Most games don't do that and thus lack enough of a "Pavlovian response" to taking damage (just in case it's not clear, what I mean by "Pavlovian response" is based on those famous scientific experiments that Pavlov guy did with dogs to train them. He trained the dogs to do tricks when they heard a bell being rung and his training method was to reward them when they did it right and then punish them when they did it wrong. You know, if the player does right, give them a "scooby snack" - nice pretty colours splashing over the screen, happy sounds, etc. - but if they do wrong, then give them a slap on the wrist - controls go haywire temporarily, "bad" noises that sound like that Family Fortunes buzzer when they got a wrong answer, etc. - so that, you know, it becomes instinctive to react to the sights and sounds, in a "Pavlovian" kind of way).

I do agree, though, that it should be balanced and even possibly geared towards the "harsh" side of the spectrum.

You could even utilise Paradroid's very sneaky methodology of not actually showing you how much health you've got in too obvious a way because then you'll tend to be more cautious about avoiding being hit, simply because you're not entirely sure if you really do have enough health left to take that hit.

So don't use a "health bar" but use some other means to give a rough indication of how much health is remaining but which is deliberately "fuzzy". Say, you could have four or five different graphics for the player's ship, with dents, missing bits, scorch marks or something. Thus, you can roughly tell that you're on full health or somewhere near half health but you don't know the exact number.

That'll tend to force a player to play more conservatively - more the way they'd play with a "lives" system - because, you know, their sense of paranoia that they're about to be dead any second will take over. It's just "survival instinct" that'll drive them to assume the worst, even when it isn't true.

I've always been surprised that, as far as I'm aware, only Paradroid ever thought in those terms of using "fuzzy displays". There are many games - especially things like RPGs - where a "fuzzy" display would, I think, bring a lot more to the gameplay. I guess RPGs, though, were always descendants of D&D, where the player themselves looked after their own stats, so always knew exactly what they were.

Well, okay, I've droned on long enough about health bars to give you more than enough stuff to think about.

In the end, of course, it will always come down to how your game works, so you can't be told that such-and-such is always "the right answer", as there just isn't a global right answer (there are only locally right answers). :D
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
Mark
Baaaaaa!
Baaaaaa!
Posts: 3611
Joined: Mon Apr 22, 2002 7:53 pm 0
Location: England

Post by Mark »

You're right on the money with Paradroid - that is a corking example of health bars done right (and one of the best games ever written to boot).

I think the big thing for me is impact - you've got to fear the enemies and their weapons, and that gets lost with too large a health bar. In Paradroid though you do get the panic of being a fragile 001, the brief god-like status of being a 999, and a range of others in-between. I love the smug feeling of being a 420 or 821 on a deck full of 711s and 742s. "Flash all you want you bastards - I'm immune. :D"

Actually since this is in "Show us your projects" here are a few shots of an old abandoned project of mine. (These are from quite an old version by the looks of it, since I'd fixed the texture problem that caused the ugly lines on the walls, and also got nice smooth shading working eliminating the faceted look on curves.)

Image
Image
Image
I'm seriously tempted to get back to this one when I have time, but I would end up starting from scratch from a code point of view, and redoing it in XNA (the original was written in an ancient and dodgy copy of Visual Studio that I have no intention of ever re-installing). I still have all the models and deck layouts though, and most of the code I'd written should be pretty quick to rewrite...

Back on topic, I agree with your final comment - no global right answer, just local ones. In shoot-em-ups, I generally prefer the one-shot kill approach, but then I'm very old-school (or possibly just very old). In so many other genres though I'll take the health bar every time.
User avatar
Orangy Tang
Baaaaa!
Baaaaa!
Posts: 1794
Joined: Sun Apr 25, 2004 5:25 pm 0
Location: My secret lab
Contact:

Post by Orangy Tang »

After finishing Rescue Squad (see other thread) I'm temporarily without a project. 8O

Current ideas for the next project include a 2d NiGHTS remake, a networked scrolling shooter, or a comic-book styled adventure/platformer...
[ Triangular Pixels.net - play Snowman Village, Rescue Squad, NiGHTS 4k and more ] [ Development Journal ]
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Post by GoatFoam »

Orangy Tang wrote:After finishing Rescue Squad (see other thread) I'm temporarily without a project. 8O

Current ideas for the next project include a 2d NiGHTS remake, a networked scrolling shooter, or a comic-book styled adventure/platformer...
Networked minesweeper! '-)
Post Reply