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!
4 Replies
(Monogame is like XNA but still alive)
Also I know there are open source tools for parsing c# but I like to find alternate methods before I jump to libraries
I never heard of Monogame, just looked it up, seems beginner friendly, by resources if ur talking about assets you can google something like 'top sites for 3d models/sprites', guides you can look up tutorials on youtube
and also I would recommend newtonsoft json for storing data instead of xml, makes things less painful
also some beginner tutorials for Monogame:
Aardaerimus D'Aritonyss
YouTube
MonoGame Tutorial [VB.NET & C#] - Getting Started
A quick tutorial on how to get started setting up your MonoGame game development environment in Visual Basic .NET and C#.
Join the MonoGame Community on Discord:
https://discord.gg/3juhkT7K
Additional project information:
Program.vb fix (source code):
https://drive.google.com/file/d/1olq8oDKHgcFrbazf5mtbhDhELGrKCkrC/view?usp=drive_link
Visua...
it comes in parts
gd lk