SFML community forums

General => SFML projects => Topic started by: kpulv on November 13, 2013, 01:20:17 am

Title: All the King's Men
Post by: kpulv on November 13, 2013, 01:20:17 am
Hey!  I've been using SFML dotnet for a few months now building a little framework thing (http://otter2d.com) and this past weekend I did a game jam to test it out, and it turned out pretty well!

All the King's Men
Download for Windows: http://kpulv.com/downloads/KingsMenWindows.zip
My blog post where you can find more info: http://kpulv.com/210/All_the_King_s_Men/

The idea of the game is that you're trying to protect the King using the guards that are stationed on the path.  I recommend using an xbox360 controller or a similar PC controller, but keyboard works too.

The guards can also go out and find treasure boxes full of amazing loot and bring it back to the King, and if the King does make it to the end of his journey then you'll be scored based off how much treasure the King ended up with.

Here's some screenshots:

(http://kpulv.com/upload/files/kingsmenblog01.jpg)

(http://kpulv.com/upload/files/kingsmenblog02.jpg)

(http://kpulv.com/upload/files/kingsmenblog03.jpg)

Thanks for checking it out! ;D
Title: Re: All the King's Men
Post by: BaneTrapper on November 13, 2013, 12:39:18 pm
It is fun!
But somehow i fail each time because i want the tresure and the king is left unguarded :P.
Somehow making the tresures boost you and be worth sometimes sacrificing a hit to the king would inprove the tactic part of it.
Simple and good.
Title: Re: All the King's Men
Post by: kpulv on November 13, 2013, 04:32:09 pm
Haha the treasure is indeed tempting ;D  I could add maybe hearts in some treasure chests that could heal the King by 1 HP.

Thanks for the feedback!
Title: Re: All the King's Men
Post by: fallahn on November 13, 2013, 04:58:01 pm
Not had a chance to play yet (I'm at work) - but the graphics look really nice. I also like the artwork on your site, is it all your own?
Title: Re: All the King's Men
Post by: AlexAUT on November 13, 2013, 06:05:22 pm
Really fun game!
 
Nicely done, love all those "small" effects. e.g. Music effects, text effects...

The tresures are too juicy, can't resist the bait  ;D


AlexAUT
Title: Re: All the King's Men
Post by: kpulv on November 13, 2013, 11:01:53 pm
Not had a chance to play yet (I'm at work) - but the graphics look really nice. I also like the artwork on your site, is it all your own?

Hey thanks! Yeah, that's all my doing.

Really fun game!
 
Nicely done, love all those "small" effects. e.g. Music effects, text effects...

The tresures are too juicy, can't resist the bait  ;D


AlexAUT

Thanks!

<3
Title: Re: All the King's Men
Post by: Grimshaw on November 13, 2013, 11:32:35 pm
For me, it crashes and I don't get to play. After I choose peasant as the difficulty the screen stays black :D
Title: Re: All the King's Men
Post by: kpulv on November 13, 2013, 11:38:10 pm
Well that stinks, what are your system specs?  Sounds likes crashing during the level generation for some reason.

You could try this:
At the title screen hit ~ to open the console and type graphicdetail 0 and push enter.  Hit ~ again to close the console, then try to play the game and see if it still crashes.
Title: Re: All the King's Men
Post by: Grimshaw on November 13, 2013, 11:55:53 pm
It just worked without doing anything now, better :D needed a fresh restart i guess ^^
Title: Re: All the King's Men
Post by: etixpp on November 14, 2013, 12:10:46 am
I had the same experience, it allways hangs after dificulty select, you just have to wait ~2  minutes and can go on :D You should probably check this out, cause i got a high end system, i am not sure if it would even work with lower requirements D:
Title: Re: All the King's Men
Post by: kpulv on November 14, 2013, 12:42:19 am
Hm, interesting!  For some reason it's chugging on the level generation for you then.  What're the specs on the computer you're running it on?
Title: Re: All the King's Men
Post by: Grimshaw on November 14, 2013, 02:22:16 am
My computer is mid-high end. Quad core amd 2.6ghz with 3 gigs RAM on a 9800GTX+ GPU :)
Title: Re: All the King's Men
Post by: eigenbom on November 14, 2013, 03:04:51 am
Works fine for me, mid-end laptop. Great concept and it definitely feels kpulvery to me! :)

The end says "RIP in peace" btw. Not sure if that was intentional. ;)
Title: Re: All the King's Men
Post by: kpulv on November 15, 2013, 05:11:38 am
Thanks!  RIP in peace is intentional, haha ;D

I posted the time lapse of the 48 hour jam if you want to check out 48 hours of work compressed into 4 minutes: http://www.youtube.com/watch?v=c2DYrvXaX5Y
Title: Re: All the King's Men
Post by: Grimshaw on November 15, 2013, 01:45:08 pm
Pretty impressive work rate!! When did you sleep? O.o
Title: Re: All the King's Men
Post by: kpulv on November 15, 2013, 09:45:20 pm
I slept on the first night from 4am to 11am, there's a big jump in time in the time lapse around then.  I didn't sleep for the rest of the time.
Title: Re: All the King's Men
Post by: Nexus on November 16, 2013, 01:01:50 pm
Very funny game! I also like the graphics style. It's not always easy to decide between protection and loot... And the bombs, you always have to sacrifice some poor guys :D

Sometimes it is a bit confusing if guards leave the view, and the view isn't zoomed out. And is it somehow possible to skip the intro? I know it's not that long, but still :)
Title: Re: All the King's Men
Post by: kpulv on November 18, 2013, 08:50:07 pm
Hey thanks for the feedback!  I'm going to make some slight adjustments to the camera and try to put in a way to skip the intro for version 1.1 this week :)
Title: Re: All the King's Men
Post by: Cpl.Bator on January 31, 2014, 05:56:08 pm
Very fun !
How do you make the map ?
Title: Re: All the King's Men
Post by: kpulv on February 02, 2014, 06:17:51 am
Thanks!

The map is generated using a list of 2d points.  I start by choosing a random point on the left side of the scene, and then start placing points outward from there.  I basically just keep track of an angle at which the road should be drawn in, and every time I place a point I adjust that angle by a random amount.  I have some safety checks in there, like the road can never go backwards, and the road is too far up or too far down it forces the angle back on track.  When I get a certain distance from the start I stop generating points, and that's the end of the level.

For the decorations and stuff, I just populate the entire map with trees and then remove trees that are a certain distance from each node on the path.  Enemies are then placed randomly in trees near the road, and soldiers are placed along the road every couple of nodes or so.

Does that make sense?
Title: Re: All the King's Men
Post by: Cpl.Bator on February 02, 2014, 10:34:03 am
the path generation is easy, yes, but , i've a last a couple of question :D
How dow you generate noise color on the path and the dark grass color along the path border ?
Title: Re: All the King's Men
Post by: kpulv on February 08, 2014, 06:56:43 am
Ah, yeah I use a tile sheet full of images that are used to "paint" the ground along the path.  Making the background goes through passes like this:

1. Draw grass tiles randomly all over the entire map.
2. Draw dark green grass tiles along the path with a very wide spread.  Draw enough to completely cover the path.
3. Draw dark brown dirt tiles along the path with a slightly lower spread.  Draw enough to completely cover the path, but leave a little bit of dark green on the outside.
4. Draw the light brown dirt tiles along the path with a narrow spread.
Title: Re: All the King's Men
Post by: CJ_COIMBRA on February 11, 2014, 08:24:04 pm
Nice visuals and it´s also very fun! Congrats
Title: Re: All the King's Men
Post by: Cadisol87 on February 14, 2014, 06:07:32 pm
Hmm nice work!

I especially like the artwork of the game  :)