Allegro.cc - Online Community

Allegro.cc Forums » The Depot » [KrampusHack 2020] Repercussion 2

This thread is locked; no one can reply to it. rss feed Print
[KrampusHack 2020] Repercussion 2
SiegeLord
Member #7,827
October 2006
avatar

A gift for DoctorCop. This is also a sequel to an old Ludum Dare entry.

The underground caverns contain many secrets. One fateful day, a group of farmers have discovered a colony of gigantic mushrooms that, when consumed, granted them ability to create life without the aid of the corporations. The corporations did not like that, and successfully lobbied the government to outlaw the mycelial miracle. The farmers, feeling disenfranchised, started protesting the new law causing the police to move in, and try to pacify the farmers.

In this game, you control the farmers. You need to construct buildings, collect resources and repel the police aggression.

Controls

  • Left click - Select unit/build structure

  • Right click - Issue move command

  • Mouse wheel - Zoom in/out

  • Shift - While held, left/right clicks queue orders

  • Escape - Quit

  • Backspace - Exit structure building mode

Links

Source Code
Windows Binary
Competition Logs

Screenshots

{"name":"612794","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/e\/7eddeb27d6d8fcab9b6f1446d4c65889.jpg","w":1224,"h":827,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/e\/7eddeb27d6d8fcab9b6f1446d4c65889"}612794
{"name":"612795","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/9\/49420e0f3b3742fdf2a7c9652a017f0a.jpg","w":1920,"h":1024,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/9\/49420e0f3b3742fdf2a7c9652a017f0a"}612795

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

GullRaDriel
Member #3,861
September 2003
avatar

Very nice and polished. I was not able to beat it.
The police is coming quickly and I can't do anything.
I'll try more later, good job man :-) 8-)

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Elias
Member #358
May 2000

Very nicely done real-time strategy game. Also hard, it took me many restarts before I figured out an order of how to do things to be able to build an army. But then my army just got obliterated when I moved to attack, heh.

I feel there is some bugs like some of my units getting stuck instead of walking around obstacles, and enemy tanks could shoot through walls. I also could not figure out what the green clouds are for.

Still, it was a lot of fun just building my farm with a small army but I don't see how I could possibly win.

--
"Either help out or stop whining" - Evert

SiegeLord
Member #7,827
October 2006
avatar

This experience made me appreciate how hard it is to make an RTS, and I didn't even implement half of the "standard" modern RTS features. Pathfinding in particular is frequently derided in such games, and indeed, I can confirm that it's hard to get right (although I didn't try that hard): A* really only works well with a single moving unit in a static environment, it falls on its face if there's moving obstructions. I could have spent a little more time on it, but I consciously decided to leave a lot of the bugs in... for crappy early 90's RTS "charm".

That said, this game can be won! It takes a bit of RNG luck, and just being relentless at attacking the AI before it overwhelms you.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Dizzy Egg
Member #10,824
March 2009
avatar

Very, very cool! Feels really polished, love the graphic style. Find it quite hard though, I only tend to get a couple of buidlings up before I'm completely overrun! Will definitely be trying again.

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

Doctor Cop
Member #16,833
April 2018
avatar

SiegeLord, you made this game for me, I can't express the surge of emotions I'm having right now. I feel like I don't deserve this, but will take it anyway because I want to. I can't control my tears, I am grateful for this gift and ashamed for not completing my game on time.

The only words I can say right now is, thanks for this wonderful gift and these farmers are really tiny. Thanks again.

[Edit]:
Oh, I found out that I can zoom, really nice game. Love it.

amarillion
Member #940
January 2001
avatar

This an awesome achievement! It's a cool RTS that evokes memories of good old Warcraft II or Red Alert.

  • The game is tough! You really have to bring your A game to hold off the relentless attackers. I like that you tried an asymmetric design though, but it brings an extra challenge to balance it out. Anyway, it's totally awesome that you managed to program a AI for an RTS, that is an achievement in itself. In the end, I never beat them because...


  • Unfortunately there are crash bugs, this happened more than once.

{"name":"612819","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/e\/1e3adadabd51a6f9765502adb8b5cc42.png","w":905,"h":791,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/e\/1e3adadabd51a6f9765502adb8b5cc42"}612819

  • As you already say, pathfinding can be a problem, especially in narrow passages. Once one unit moves in, the passage is blocked and the rest starts looking for another way. Then the passage frees up and they start moving in again, going back and forth in a little dance. Moving units shouldn't count as blocking a passage.


  • Can you pause the game? I tried pressing Esc, but that just immediately stops the game and brings you back to the title screen.

--
Martijn van Iersel | My Blog | Sin & Cos | Food Chain Farm | Support TINS

SiegeLord
Member #7,827
October 2006
avatar

Thanks for that backtrace, not sure what causes that (glad I enabled the backtraces in the release builds).

Can you pause the game?

Nope.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

amarillion
Member #940
January 2001
avatar

It's just that somebody came to ask me a question while I was in the middle of an epic battle... So I pressed Esc... game over :'(

--
Martijn van Iersel | My Blog | Sin & Cos | Food Chain Farm | Support TINS

Go to: