Stone Kingdoms 0.1 (RTS)

Show off your games, demos and other (playable) creations.
KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Stone Kingdoms 0.1 (RTS)

An RTS game made with LÖVE based on Firefly Studios' Stronghold. Assets are property of Firefly Studios.

The game is optimized to run on low end PC's and laptops.
It uses ~500 MB of memory. The default resolution is 1024x768 (windowed).
It's got no GUI as of 0.1, it is however planned for 0.3.
Gitlab repo

To spawn units:
• Right click to spawn 4 woodcutters
• Middle mouse click to spawn a stonemason (needs a quarry)
• Hold 'm' and right click to spawn an iron miner (needs an iron mine)
To build buildings (left click):
• Q - Main town building, no functionality.
50 Wood
• W - Stockpile, needs to be placed next to a stockpile (if there is one).
4 Stone
• E - Granary, no functionality
10 Wood
• T - Stone quarry, needs 3 stonemasons to operate
24 Wood
• Y - Iron mine, needs 1 iron miner to operate
24 Wood 10 Stone
Controls:
• Zoom in/out with mouse scroll wheel
• Move around with arrow keys
• Press R to print resources in console
• Press F to toggle fullscreen
• Press Escape to exit the game
Known bugs and issues:
• Sometimes woodcutter will continue woodcutting forever
• Units will sometimes not free up the last place they've been at causing a pathfinding issue
• Units will go through buildings if they are placed after their path has been found
• The game doesn't take into account dt, which is why it's locked at 60 fps
• Woodcutters will only chop wood at the adjacent chunks of the stockpile. If there are no trees there, they will clump near the stockpile.
Screenshots:

Attachments
Stone Kingdoms 0.1.zip
Standalone
StoneKingdoms.love
For version 0.10.2
Last edited by KayleMaster on Tue May 29, 2018 9:58 am, edited 2 times in total.

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Stone Kingdoms 0.1 (RTS)

I posted this topic earlier than I wanted, but there's a reason for it.
It's the end of the semester and I need to start job hunting, and I want to put this project on my CV, so that's one of the major reasons.

That being said because it's the end of the semester, the finals are starting and I need to focus on studying instead of developing the game.
So pretty much for the next month, you won't see much progress being made.
After that, it depends if I get a job or not. I'm not sure how much time I'll be able to put if I do, but I'll post an update here.

So if I do get the time, what would I be working on?
Well, I'm working on extracting Stronghold's art and fitting it in a single 8k texture page. This is pretty much done.
Every sprite needs to be named so later they can be mapped as animations easier. This is currently being worked on:

There are about 18000 sprites so it takes some time.
Military units will need to be color masked which takes a little bit of time.
After that the animations will need to be made from the sprites' frames, this is easy but slightly tedious.

Oh, and you can find the source code here: https://gitlab.com/evgenit28/stone-kingdoms
Last edited by KayleMaster on Tue May 29, 2018 9:57 am, edited 3 times in total.

Tricky
Citizen
Posts: 71
Joined: Thu Dec 18, 2014 4:07 pm
Location: Breda, the Netherlands
Contact:

Re: Stone Kingdoms 0.1 (RTS)

I'm afraid I never liked RTS games (I must be honest), but I cannot deny, this definitely looks promising to me, and if I did like RTS games I would definitely try this. Keep up the good work

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Stone Kingdoms 0.1 (RTS)

Thanks, gameplay elements are not yet implemented but there will be a focus on Grand Strategy as well.

Pebsie
Party member
Posts: 136
Joined: Mon Nov 11, 2013 12:35 am
Location: Lincoln, United Kingdom
Contact:

Re: Stone Kingdoms 0.1 (RTS)

Really happy to see that you're still working on this! It's looking real good.
Website: http://peb.si
Steam: pebsie

Nelvin
Citizen
Posts: 51
Joined: Mon Sep 12, 2016 7:52 am
Location: Germany

Re: Stone Kingdoms 0.1 (RTS)

Please don't tell me you do anything at a scale of 18000 files in an even remotely manual way?
Write small tools/scripts/batchfiles to convert/pack/generate textures, uvs, create animtables and save them as lua files you can directly require and use in your game etc. etc.

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Stone Kingdoms 0.1 (RTS)

Definitely.
I use TexturePacker to pack the files in an atlas, it seems the only one capable of packing them and not crash whilst doing it.
I used mogrify to batch crop every sprite and eventually to generate the color masks. And for the naming I just use windows' batch rename, works wonders once you get used to the hotkeys. The process itself would take less than a day, but because lack of time lately, I've been chipping away at 30 mins a day whenever I feel like it, which usually isn't often.
The files are more like 9000 because the extracting tool generates copies of each sprite, but I remove those with bash as well.
After that I'd need to write a tool to map the animations, that would be pretty straight forward.

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Stone Kingdoms 0.1 (RTS)

UPDATE: 4.7.2018
So I've hit a few roadblocks with the assets, one of them being some assets' frames are missing color or have improper one, mostly military units. To fix this I have to extract the assets via a very tedious method. So far I've extracted 1/12.
Another problem was figuring out how to color the sprites. Since they're in a spritebatch I can't color them with a shader (well, apparently I can, but I don't know how), so here's what I went with:
1. Use imagemagick to extract the colorized area

Code: Select all

convert *.png -fuzz 20% +opaque "#003399" -transparent white *.png
• Use imagemagick again to extract the grayscale of said mask (one could probably chain these)

Code: Select all

convert -intensity Rec601Luma *.png -grayscale Brightness *.png
• Crop with imagemagick only right and bottom side, so the offsets will be the same as original sprite, but still save up on some atlas space
• Draw on top of sprite and set the color using SpriteBatch:setColor
The result:
result.PNG (2.43 KiB) Viewed 812 times
Last edited by KayleMaster on Wed Jul 04, 2018 6:02 am, edited 1 time in total.

Paz
Prole
Posts: 11
Joined: Sat Jun 09, 2018 12:13 pm

Re: Stone Kingdoms 0.1 (RTS)

I absolutely love the aesthetics. That may sound like sarcasm but really they remind me of a lot of strategy games from my childhood.

Who is online

Users browsing this forum: No registered users and 2 guests