Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Real Time Strategy Game

Author
Message
sumamadira
User Offline
Joined: 11th Oct 2023
Location:
Posted: 11th Oct 2023 23:07
I am planning to make a Real Time Strategy game. It will be a 2D RTS, and fairly light weight and completely free. It is just for my hobby.

I have come across the following site

Jose's RTS Sprites

Do you think, AppGameKit Classic can be utilized to build something like that using the sprites in the link?


Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 12th Oct 2023 02:48 Edited at: 12th Oct 2023 02:49
i haven't seen an RTS in AppGameKit but i'm sure it can be done.

the only snag that i can think of is pathfinding. i haven't seen much on the forums about it beside a number of A* functions (which do work but i haven't seen handling of a number of sprites under it) and i have no personal experience with pathfinding, otherwise.

i do recall someone posting a "fake" group/multiple unit pathfinding example (in 3d i think but it was a 2d design. something about spiders?) but for a decent RTS, there's gotta be a better way.

meanwhile, those sprites are nice. good find. now put 'em to use
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Nov 2023 14:54
Yes it's possible. A* pathfinding is fast enough you shouldn't have any issues with multiple characters. You don't need to calculate a path constantly, only when a unit reaches another square. I did an RTS (unfinished) in DBP and units had formations as well. I did write a pretty lengthy tutorial, but I can't find it on my server at the moment. There are several things you can do to optimize the pathfinding. When in formation, find the path for the formation as if its a single unit. Then each unit just needs to calc a path to stay in that formation (much smaller path, very quick). I had no issues handling dozens of units 15 years ago, never tried hundreds. Kinda depends on what your RTS is like. Warcraft didn't have very many units to handle when you compare it to something like age of empires or command & conquer where you can have hundreds. And A* can work in a variety of maps. Isometric takes no modication, and a hexagon style would take minor changes to take into consideration the additional heuristic directions.

IanM wrote a good A* library in DBP, I ported it to AGK. It was a long time ago, it might need updated. https://forum.thegamecreators.com/thread/206280

This might help you get started. It's for DBP but the thread is several pages and might contain info you can use. I'll try to find my tutorial and get it back online.
https://forum.thegamecreators.com/thread/44248
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-04-27 20:17:16
Your offset time is: 2024-04-27 20:17:16