Are Tower Defense Games Hard To Update?

I hope I’m not in the wrong topic, but if I am please Tell me and I will take the post down.

Currently making a Tower Defense Game. Had a thought if Tower defense games are hard to update. A tower defense game has many different maps(Usually called “Worlds” or “Acts”). If a player tries to place down a unit, the game will of course need the unit model. Does that mean every single one of the games places needs a “Units Folder” with every single unit in the game? Wouldn’t that make a tower defense game such as “ALL STARS TOWER DEFENSE” with over a hundred different places annoying to update? You’d need to add more units into the folder.

Is there an easier way to get the units model that the players have into the game? (Sorry for bad english and bad explanation)

1 Like

I understand what you mean. The way they could get around that is using packages. I’m not too sure on how they work, but once you update a package, any places that are using it will also update. They also update across experiences which is pretty cool. I was using the TopBar module and the creator made it a package that updates for anyone using it. So it updated for me and the update broke the whole module which is how I found out about packages :sweat_smile:.

1 Like

Been doing some research on packages but I still don’t get how packages can change for a certain player only? Would we need like a package for every player and when a reserved server starts(Player gets teleported into the Tower defense game) we will get the values of the player package and change the packages for that server to the players package? Thanks.

Also will packages also work for scripts? for example if I change a module script that’s inside a package in place A, will the script also change for place B?

yes the module script will change, but im sure there are some other steps you would have to take.

You don’t necessarily need to have hundreds of places for each map (or in this case, ‘world’ or ‘act’). You only really require a singular ‘game’ place to host all maps, units, enemies and such, as when reserving a server, data can be sent through which will be processed into determining which map to replicate into the workspace. Not much is needed to be taken from there, everything else that is needed is already present within that place; such as units and enemies. I’m not too familiar with how ‘All Stars Tower Defense’ works, but chances are, this is the approach they are taking, as like every other mainstream tower defence game on the platform.

1 Like

You should create variable in data store called CurrentMap, every time player joins the game, check if the majority have same map, if yes then load them