C#C
C#3mo ago
Staral

VSCode Level Editor Extension

I'm working in Monogame and I thought that it would be useful to use a VSCode extension as a level editor. That way I wouldn't have to include the level editor in the project (which means hotreloading) or make a seperate one just for level editing functionality. There'd likely be one cs file per class and classes with a certain attribute can be placed down in the level. Then, when the game starts, it plays the level for real (I'd probably store it in an xml file or something.)

Since I want to be able to access the properties and maybe even run construction-based functionality in the level editor, I'd obviously have to have a C# parser or something since extensions are written in Javascript.

Would also be cool if I could be sent some resources. I've already read the beginner documentation.

(The backup plan, in case this isn't possible, is a ton of regexes. Lmk if you have a better idea.)

Thanks so much!
Was this page helpful?