![]() ![]() In fact, if you've programmed in a language like Python, you might have seen actual data structures called "dictionaries" which are built on this same idea. You can think of it like a dictionary, where each entry is a word that has a matching definition. JSON format is kind of like a key/value format, in which objects consist of a name or key and a corresponding value. Working with JSON in GM Studio might be a bit confusing at first, but I followed a really helpful tutorial written by Jason Lee Elliott, which you can find here: This is the code I used to write level data to a text file in JSON format. The code I wrote looks like for the JSON encoding in my GM game: I know that GM Studio has built-in functions (json_decode and json_encode) to deal with storing JSON data. The decision to export the game level data from GM Studio in a JSONįormat. This will be a short entry, but there's some good tutorial links to check out if you need more detail (they do a lot better job of explaining the details than I would probably do). So with that in mind, let's look at today's topic, which is how I got game data from GameMaker Studio over to MonoGame. So the development is actually a lot further along than the part I'm going to write about today. I've made a lot of progress on porting the game to MonoGame, but I know I haven't kept up with this devlog.
0 Comments
Leave a Reply. |