GithubHelp home page GithubHelp logo

uduse / sublime-gamemaker-studio-language-bundle Goto Github PK

View Code? Open in Web Editor NEW
32.0 3.0 3.0 3.13 MB

A sublime bundle for GameMaker Language (GML)

License: Apache License 2.0

Game Maker Language 0.81% Python 99.19%
sublime gamemaker-language gamemaker gml syntax-highlighting snippets autocompletion

sublime-gamemaker-studio-language-bundle's Introduction

GameMaker Language (GML) Bundle for Sublime

Features

  • Syntax Highlighting
  • Keywords/Built-In Variables Autocompletion
  • User-created Resources Autocompletion
  • Function/Control Snippets
  • Auto Indentation
  • Create new script through Sublime (Beta)

Installation

Using Sublime Package Control:

Command Palette (⌘⇧P)  ➤  Package Control: Install package  ➤  GameMaker Language (GML) Bundle

Restart your Sublime and you're ready to rock!

Usage

GameMaker: Studio 2

  • Checkout my tutorial on setting up your GameMaker Studio: 2 for Sublime!
  • Name your source file with extension gml. For example, example.gml. Syntax highlighting will be applied automatically.
  • Partially type keywords, built-in variables, and names of user-created resources to trigger autocompletion. To enable user-created resources completions, make sure your project root directory is opened in Sublime.
  • Partially type function names to trigger function snippets. If multiple parameters are avaliable, TAB (↹) to go to next one. Most of the built-in functions are avaliable as snippets.
  • Other custom snippets are: for, if, else, repeat, switch, while, with, and print that writes show_debug_message.
  • To indent your gml file, use: Command Palette (⌘⇧P) ➤ Indentation: Reindent Lines.
  • To create a new script, use: Command Palette (⌘⇧P) ➤ GameMaker: New Script

GameMaker: Studio 1.4 or earlier:

  • You need to copy & paste manually between Sublime and GameMaker: Studio.
  • Name your source file with extension gmll, the extra 'l' stands for legacy. For example, example.gmll.
  • User-created resources autocompletion is not supported.
  • Everything else is pretty much the same as GameMaker: Studio 2.

sublime-gamemaker-studio-language-bundle's People

Contributors

uduse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sublime-gamemaker-studio-language-bundle's Issues

Missing functions

There are a bunch of missing functions in the bundle. Gamepad functions are completely missing. Audio functions miss snippets.

The reason is that I couldn't find a reliable source of a list of all functions with their signature. I tried to parse the manual both locally and via the web version, but all failed.

Solutions:

  • wait for an official release of documentation in other forms (see my request on official forum here)
  • someone help me to parse the manual
  • someone transfer those functions manually (just function names and signature is enough, see gml-functions.txt, and my Python script will do the rest)

Preferences and menu for plugin

I started a preference menu branch in my fork so I could disable dynamic completion, which seemed to be causing noticeable lag every time I started typing a new word.

I'll open another issue for the lag from dynamic completion as soon as I have a way to demonstrate the problem. Most likely I just have some other preference set wrong, maybe I'm supposed to be ignoring some file type or directory to stop the dynamic completion from scanning the wrong files.

Anyway it seemed like it might be useful to someone if there was a menu to enable or disable parts of this plugin, and I've never worked on a sublime plugin before so I tried it out. I've started a branch here:
drama-ostrich/Sublime-GameMaker-Studio-Language-Bundle@0bc31fc

It isn't functional yet but it would look something like this. Let me know if you think this is useful and I'll put more work into it so it can be merged.

New script not working on Windows

Path joining in my code is most likely wrong. Instead of manually join them I should use os, sys methods. Let me know if someone need this feature at all ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.