I have two monitors so I can see both at the same time. Because I use Vim as my external editor, and because I run a GPU passthrough setup, I put my GM project folders on a shared drive (my Ubuntu host sees this as a regular internal NTFS disk, and my Windows VM sees it as a VFIO network drive) and have GMS2 open in my Windows VM while I edit code files using Vim on my host. My workflow has a couple of added complications. This setting makes file checking quite regular, so you can actually watch GMS reload your objects’ event code right before your eyes. To prevent GMS from getting out of sync with the edits you’re making externally, you just have to check Automatically reload changed files in the General Preferences dialogue. gml files in that editor and edit them (remember to save!). All you have to do to use your favourite editor with GMS2 is open its. You can probably see where I’m going with this. Scripts are simpler still: each script has a name.yy file and a name.gml file, the latter of which contains the script code. ![]() gml files contain only the code for that event with no preamble or other weird boilerplate. Now, instead of each object being an XML file as in GMS 1.x, each object is subdirectory of objects/ containing a few text files: obj_name.yy, a JSON structure with general object metadata and a file for each event, named something like Create_0.gml or Step_0.gml. GameMaker Studio 2 has taken the human readability of its project files even further – at least if you choose to work with a GML project rather than a Drag ’n’ Drop project. As I wrote a few years ago, this allowed projects to be managed with traditional source control tools such as git. With GameMaker Studio 1.x, projects got separated out into directories with subdirectories containing (relatively) human-readable XML files describing rooms and objects and everything else. But, thanks to GMS2’s new project format, there is a workaround that will let you keep using your favourite editor.īack when the software was just called Game Maker, projects were stored as single opaque files containing all game logic and resources. ![]() Using an external text editor in GameMaker Studio 2 9 April 2019Īlthough GameMaker Studio 2 is a massive improvement over GameMaker: Studio 1.x in every just about single way, including the capabilities of its built-in code editor, programmers who are strongly attached to a particular external editor, be it vim, emacs, VS Code or another, may lament the removal of the feature that let you set an external editor for code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |