cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
891 stars 114 forks source link

[Suggestion] second mission format #214

Closed ghost closed 10 years ago

ghost commented 10 years ago

Since it seems you want to add a lot of possible features, I wonder if it's plausible to add a second (probably json based) level format to prevent bugs getting into older levels. EDIT: And by level, I mean mission. Silly me.

cxong commented 10 years ago

Yes this is being done; please take a look here to see an example: https://github.com/cxong/cdogs-sdl/blob/master/missions/techdemo/static.cpn

It's taking a while because I've had to update the editor at the same time (I've decided against going to Tiled for now), but soon I'll make a pre-release so we can try out the new editor.

ghost commented 10 years ago

Cool, so judging form the sample, characters are now separated from the levels?

Also: Would you like to tell why you decided against Tiled? Not that I think, that's a bad idea, since I'm not so fond with the Tiled user interface.

cxong commented 10 years ago

Characters are still tied to the campaigns, although now that it's available in JSON it'll be easier to separate them.

The decision against Tiled was because it would have been riskier; C-Dogs maps are procedurally-generated, plus there's a character editor. Both would have to be written from scratch in Tiled. There are pros and cons to both approaches, so I may revisit the Tiled option later, once the game is more "ready" for Tiled, e.g. moving to a tileset map format, separating map editor from character editor.