SFML community forums
General => SFML projects => Topic started 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
-
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.
-
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!
-
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?
-
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
-
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
-
For me, it crashes and I don't get to play. After I choose peasant as the difficulty the screen stays black :D
-
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.
-
It just worked without doing anything now, better :D needed a fresh restart i guess ^^
-
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:
-
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?
-
My computer is mid-high end. Quad core amd 2.6ghz with 3 gigs RAM on a 9800GTX+ GPU :)
-
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. ;)
-
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
-
Pretty impressive work rate!! When did you sleep? O.o
-
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.
-
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 :)
-
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 :)
-
Very fun !
How do you make the map ?
-
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?
-
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 ?
-
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.
-
Nice visuals and it´s also very fun! Congrats
-
Hmm nice work!
I especially like the artwork of the game :)