Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Track codes.

With the new copy/paste feature, tracks should be shorter than ever. If a track part is copy/pasted it should just say the part data once , then list where it is and its orientation. How i would save track codes:

[Origin point, [[copied part 1 data, [list of locations of every instance]], [copied part 2 data, [list of locations of every instance]]], [[used part 1 data, [list of locations of every instance]], [used part 2 data, [list of locations of every instance]]].JSONstringify()

You could further use a string compressor to make it even shorter 
Every track part’s position is saved relative to the origin point, this reduces track codes size for maps really far from spawn