Hey there folks! I’m working on a really ambitious project and I need some help with something that has me stumped.
What do I want to achieve?
What I want to achieve is a system where the player can raid other player’s bases through a map or menu even if the player they’re raiding is offline. Think about it like a system similar to Clash of Clans or more similarly, Rise of Kingdoms.
In the game Rise of Kingdoms, cities are placed on a map and players can decide to send troops to that city to raid it, even if the player who owns the city is offline.
How do I go about achieving this system?
tl;dr: Where to begin creating a map that displays the bases of every player (offline or not) and allowing other players to load that player’s base (through scouting or raiding) and then eventually attack the enemy base, even if the player that owns it is offline?
I’ve thought of a possible solution and that is to:
A. Save base data in a seperate location (Such as a JSON File in dedicated websites/servers that the game accesses and requests random bases using indexes such as unique IDs for each player/base)
B. When loading base data, simply request the data from the JSON File.
Of course, I don’t know where to start with this though…
Any help is much appreciated!
Quick concept art of what I want to achieve.
