## 扩展编辑器(Extensions)
扩展包是一些高度封装的功能模块,可以为GML添加额外的功能和常量,或能让游戏资源的分享变得更加方便。如果是添加额外功能的扩展包,这些方法可能让你的游戏更轻松与外部SDK或其它语言的代码对接(比如Android的Java代码),当然也包括GML语言。
![Extensions Properties](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions.png)
通常情况下,第三方扩展都可以从 [YoYo的官方市场](https://marketplace.yoyogames.com/) 订阅和下载,而你订阅的扩展都会在[市场库](https://docs2.yoyogames.com/source/_build/2_interface/2_extras/marketplace.html) 窗口中列出并可以在此下载安装,你也可以在扩展一栏点击鼠标右键![](https://docs2.yoyogames.com/source/_build/images/icon_rmb.png) 选择 *从我的库中添加扩展(Add Existing From My Library)* 来进行操作. 如果你尚未从市场获取扩展包, 你也还是可以点击鼠标右键![](https://docs2.yoyogames.com/source/_build/images/icon_rmb.png) 并选择 *添加已有的(Add Existing)*.
如果你想使用以前老版GameMaker Studio创建的*.GMEZ文件,可以点击鼠标右键 ![](https://docs2.yoyogames.com/source/_build/images/icon_rmb.png) 选择 *导入文件(Import File)* 来进行添加。
**注意**: 传统格式 *.GEX 的扩展将不再支持导入Gamemaker Studio 2.
想了解更多关于使用和创建扩展包的信息请参阅以下部分:
### 使用扩展(Using Extensions)
一旦添加了扩展包,你就可以在项目组使用该扩展,但是你必须确保扩展属性与目标平台相匹配兼容,以下为各平台的扩展兼容说明:
* **全平台All targets**: GML扩展,这些使用GameMaker Language制作的扩展可以兼容所有的目标平台.
* **Windows平台 (PC, UWP及XBoxOne)**: 在该平台上可以使用DLL(动态链接库)文件
* **Mac OS**: 在Mac OS平台上可以使用经典的“Dylib”文件实现扩展.
* **Ubuntu (Linux)**: 在Ubuntu上你必须确保扩展格式为“so”文件.
* **Html5**: 该平台可用JavaScript扩展 .
* **Android**: 本平台要求扩展的实现语言为Java或Android Framework SDK.
* **iOS**: 用Objective C实现的扩展文件,并且必须拥有一个 *.m 文件和一个 *.h 头文件, 或是任何框架的,预编译的 *.a 原生文件
* **PlayStation**: 针对 PlayStation 3/4 你应该使用“.PRX”文件,不同的平台应提供符合对应规格的PRX文件,如果是PSVita则应当是“SUPRX”文件。
要修改某个扩展对应的平台或占位符时,你首先要打开扩展的属性(双击扩展或右键选择打开属性),然后在扩展属性中选择右侧的列表,选择你要对应的平台
![Extension Target Platforms](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_targets.png)
**注意**: 如果你要导出到Mac OS或Ubuntu平台,可以保留“以ZIP包格式解压缩”选项
一旦你安装了扩展,就可以像使用GML语言一样去使用扩展中的函数和常量了,如果你的游戏是跨平台允许的(比如同时在Windows和Android都可安装运行),那么在调用扩展的特定功能之前你应当确保不会出现问题,比如
```javascript
switch(os_type)
{
case os_android:
call_android_extension_function(x, y, z);
break;
case os_windows:
call_windows_extension_function(x, y, z);
break;
}
```
要注意,对于不同的平台而言,你的扩展可以共享函数名称,因此,如果你针对Windows和Android分别具有不同的扩展文件用来弹出提示消息,这两个文件可以使用相同的函数名来,而在实际使用时会仅调用自身平台对应扩展中的方法。
### 创建扩展(Creating Extensions)
要创建扩展,首先要在资源树中扩展玄学上点击右键然后选择创建,这会打开一个主扩展属性窗口(如本页顶部的图片所示),在这里你可以添加所需的文件和函数,并可以在此为扩展设定名称(仅限字母/数字和下划线“_”)。你也可以根据需要来设置扩展的版本号。
要往扩展里添加文件你只需要点击菜单按钮![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_extensionmenu.png) 然后选择“占位符(placeholder)”文件或对应平台所需的实际文件即可
![Add Files To An Extension](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_files.png)
泛型(Generic)占位符可以是指除了特定平台所需的文件(如dll或so文件等)以外任何类型的文件,并且只有当需要被用来作为“链接器”给扩展关联特定的函数或常量时才会被使用(一般只适用于iOS和Android扩展,下文将具体说明)。你也可以添加“GML”和“JS”占位符文件来进行使用。
通常情况下,除了制作iOS或Android游戏,一般不会使用占位符,因此你可以选择“添加文件”选项,然后根据目标平台添加以下任何文件:
* **.gml**: 这是用GML语言实现的可兼容全平台的扩展文件
* **.js**: 这是JavaScript扩展,仅兼容JS模块平台 (HTML5).
* **.dll**: 动态链接库格式的文件仅适用于Windows、UWP和Xbox One平台(不同平台的dll文件各有不同).
* **.dylib**: 仅适用于Mac平台的扩展.
* **.so**: 仅适用于Linux(Ubuntu等)平台.
* **.prx**: 这是PS主机平台的扩展(不同版本的PS各文件也有区别).
你会发现以上并没有**Android**和**iOS**的文件类型,这是因为这两个平台的设置方式稍有不同,后续你会看到具体的设置方式,但现在我们先来看看如何创建一个可以给全平台通用的GML扩展,这个创建过程基本类似。
首先,你需要创建将要使用的文件,对于GML扩展来说其实就是一个文本文件(保存文件时要确保后缀为.gml),具体格式如下
```javascript
#define c_alice_blue
return make_color_rgb(240,248,255);
#define instance_create_colour
var i = instance_create_layer(argument0, argument1, argument2);
with (i)
{
image_blend = argument3;
}
return i;
```
如上所见,我们用#define 来声明各个部分的开头,在上面的例子中我们定义了两个函数。你不需要为函数提供任何的参数字段,因为稍后会单独添加,而只要使用define和函数名称,然后添加GML进行匹配即可。如果你正在编写dll或js格式的扩展,这个过程基本类似,但要确保使用对应格式扩展的编程语言。
当你完成上述步骤以后,你需要将文件添加到扩展中,这将打开一个关联的“文件属性”的新窗口。
![File Property Window](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_fileproperties.png)
在这里你可以选择扩展对应的目标平台(如果是GML扩展则可以选择全部平台),以及重命名扩展或调整一些细节属性,稍后会进行介绍。首先我们通常会添加常量和函数,以便用户可以在项目代码中进行调用。因此你需要点击扩展菜单按钮 ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_extensionmenu.png) 并选择你要添加的属性类型:
![Add functions/Constants To An Extension](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_addfunctions.png)
选择“添加函数(Add Function)后会允许你添加一个函数扩展,然后可以通过以下窗口设置这个函数的相关属性:
![Function Editor](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_functioneditor.png)
在上面的图片展,我们可以子函数编辑器中定义GML扩展脚本“instance_create_colour”的各项详细信息(函数编辑器不仅适用于定义GML函数,对于其他任何格式的扩展都是一样的)。比如函数的名称(即在项目中的调用名称),而且这个名称没必要和函数内的名称一致——你可以随便设置成你方便的名字——然后用“External Name”来进行关联。在这之下还有一段定义“Help”文本的区域,这是用于显示在代码编辑器底部的代码提示。
接下来你可以定义返回类型,它可以是一个“浮点数(double)”或一个“字符串(string)”,如果外部函数没有任何返回,也没有问题,最后则是这个函数需要传入的参数。
在添加参数时,参数同样可以是浮点数或字符串,并且你可以点击![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_addargument.png) 来添加或点击![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_removeargument.png)来删除参数。要注意,如果你正在创建一个Windows的dll扩展文件,并且该方法有四个以上的参数,那所有的参数必须是相同类型。
一旦你完成了以上所有操作,你就可以在项目中调用这个扩展了,并且在调用时会有代码自动补全,同样也会有对应的高亮色。定义的函数可以设置为“初始化方法(Init Function)”或“结算方法(Final Function)”,这意味着他们将在游戏初始化(Init)时或结束时(Final)自动调用
> **重要提示!** 全平台都支持Init函数的调用,但不是所有的平台都支持Final函数调用,因为有些平台在关闭应用时不会给出任何回调和处理机制。主要是以下平台:iOS、Android、HTML 5、Playstation和Xbox one。
你还可以选择创建一个宏(Macro)。一个宏可以是一个常量值或单独的代码片段,比如我们可以从上面的示例个GML扩展中为“c_alice_blue”颜色移除已定义的函数,并将其改为宏:
![Macro Editor](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_macroeditor.png)
这里的编辑器几乎都是
When working with multiple target platforms, it is worth noting that you can create a *single* extension with only one set of functions/macros which will work on *all* platforms. This is achieved by adding only one of the link libraries to your game as an extension and placing the other(s) into the list of **Proxy Files** from the Extension Properties window. For example, say you have a Windows extension with the dll "Haggis.dll". You would simply replicate this dll as a Mac DyLib, naming it "libHaggis.dylib" and making sure that the internal function names match those of the original Windows dll. This DyLib would then be added into the Proxy Files and set to export when the game is run on the Mac target, and *GameMaker Studio 2* will automatically use it when the extension functions are called.
To add a proxy file, simply click the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_addproxy.png) button in the Extension Properties window for the extension and browse to the file location. Once it is added you may need to change the extension target to the appropriate module, and when you next run your game it will be included as a proxy for that platform. You can remove proxy files too by clicking the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_removeproxy.png) button, which will remove the last one in the list each press.
Once you have added your proxy files they will be stored in the YYP of your game, in the Extensions folder (you can find them easily by right-clicking ![](https://docs2.yoyogames.com/source/_build/images/icon_rmb.png) on the extension and selecting *Open in Explorer*), so if you need to edit them, you should edit the *copied* files that are bundled with the game and not the originals, as *GameMaker Studio 2* will be using the ones in the project for compiling your game.
It is very important that your proxy files follow the naming conventions listed below, as *GameMaker Studio 2* will parse these names and assign the target module for the file according to its extension and name and will automatically link the files for you. If you do not follow these conventions your game may not work at runtime, as *GameMaker Studio 2* will not be able to work out which file to use or it will not load the file properly.
The naming conventions for each target platform are given below:
| Platform | Names |
| Windows | **.dll. |
| Linux | **.so, lib**.so,**_linux.so, lib**_linux.so |
| Mac OSX | **.dylib, lib**.dylib |
| HTML5 | **.js |
| PS4 | **.prx, lib**.prx,**_ps4.prx, lib**_ps4.prx |
| Xbox One | **_xboxone.dll |
Using the conventions above, you would swap out the part for the name of the base file that you are adding the proxy files for.
Android
To create an extension for Android you have to do it in two parts. The first part would be to add the extension itself, along with the required files etc... and the second is to create the functions and macros/constants that the extension requires. The functions and constants are added using **placeholder** files to group them together, so you'd add a placeholder and then define the functions and macros as explained in the section above. To add the rest of the files though you need to first tick the *Android*check-box in the **Additional Features** section of the editor:![Android Editor](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_android.png)
Here you give the following details:
* **ClassName**: Your extension can have multiple classes, with each class having its own functions and constants, so you should give it a name that reflects its purpose.
* **Android Permissions**: Here you can add in any extra permissions that your extension requires. What these permissions are will depend entirely on the use that the extension has, and so you should check the [documentation supplied by Google](http://developer.android.com/reference/android/Manifest.permission.html) for the Android platform, or, if you are using a third party SDK, the documentation that comes with the SDK. To add a new permission you need to click the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_addproxy.png) button to add a placeholder permission, and then do a slow ![](https://docs2.yoyogames.com/source/_build/images/icon_lmb.png) click on that to edit it to what is required. You can remove permissions using the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_removeproxy.png) button.
* **Inject To Gradle Dependencies**: Here you can add any extra code that needs to be injected (added) into the Gradle build dependencies.
* **Inject to AndroidManifest.xml Manifest**: Here you set any extra code to be injected (added) to the Android Manifest XML file when your game is built for testing or final release. Make sure to revise this (and your permissions) carefully before submitting any games to the store, as incorrect settings will cause your game to be failed for submission.
* **Inject to AndroidManifest.xml Application**: Here you set any extra code to be injected (added) to the Android Manifest XML file under the Application heading when your game is built for testing or final release. Make sure to revise this (and your permissions) carefully before submitting any games to the store, as incorrect settings will cause your game to be failed for submission.
* **Inject to AndroidManifest.xml RunnerActivity**: Here you set any extra code to be injected (added) to the Android Manifest XML file under the RunnerActivity heading when your game is built for testing or final release. Make sure to revise this (and your permissions) carefully before submitting any games to the store, as incorrect settings will cause your game to be failed for submission.
Once you have set this up correctly, you will need to add the required files for your extension package to work. To do this you need to click on the buttons at the bottom, either *Add SDK* or *Add Source* and then browse to the files you wish to add. Added files will be stored in the *AndroidSource* directory along with your extension. You can open this location at any time by right clicking ![](https://docs2.yoyogames.com/source/_build/images/icon_rmb.png) on the extension and selecting *Open Extension Directory*.
For more information on creating Android extensions, please see the [YoYo Games Knowledge Base](http://help.yoyogames.com/hc/en-us/articles/216755248-Creating-A-Native-Extension-For-Android-GMS-v1-3-).
iOS
To create an extension for iOS you have to do it in two parts. The first part would be to add the extension itself, along with the required files etc... and the second is to create the functions and macros/constants that the extension requires. The functions and constants are added using **placeholder** files to group them together, so you'd add a placeholder and then define the functions and macros as explained in the section above. To add the rest of the files though you need to first tick the *iOS* check-box in the **Additional Features** section of the editor:![iOS Editor](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/editor_extensions_ios.png)
Here you give the following details:
* **Linker Flags** / **Compiler Flags**: Some frameworks and third party SDKs require the addition of extra linker flags and compiler flags to work which can be specified here (see the documentation that accompanies the SDK or framework in question for details).
* **ClassName**: Your extension can have multiple classes, with each class having its own functions and constants, so you should give it a name that reflects its purpose
* **System Frameworks**: Here you can add in any iOS system frameworks to your extension. These are added by clicking the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_addproxy.png) button which will add a placeholder framework, which you can then edit by slow clicking ![](https://docs2.yoyogames.com/source/_build/images/icon_lmb.png) on it. You can find out more about available system frameworks [here](https://developer.apple.com/library/ios/documentation/miscellaneous/conceptual/iphoneostechoverview/iPhoneOSFrameworks/iPhoneOSFrameworks.html). To remove a system framework, simply select it and then click the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_removeproxy.png) button.
* **Inject to Info.plist**: Here you can add any code to be a injected into the info.plist file.
* **3rd Party Frameworks and Bundles**: This section is for adding third party frameworks and SDK bundles. As with system frame works you click the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_addproxy.png) button to add them and then slow click to edit, and selecting them then clicking ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_removeproxy.png) will remove them (see the documentation that came with your chosen SDK for info on the framework name) . If the framework/SDK bundle is on your development Mac then you need to add the path into "*Enter framework path on Mac*" and click the ![](https://docs2.yoyogames.com/source/_build/2_interface/1_editors/images/icon_addproxy.png)button, or if the SDK or source code is on your PC use the *Add Source* button.
If your extension has had any System Frameworks or 3rd Party Frameworks added, these will now be listed in the Extension Properties window, with each one having a check-box beside it. If you mark the check-box, you are enabling *weak* linking, which is useful should you need to "over-ride" any symbol from the included library with your own value, but it should be noted that doing so will slow linking down.
For more information on creating iOS extensions, please see the [YoYo Games Knowledge Base](http://help.yoyogames.com/hc/en-us/articles/216755238-Creating-A-Native-Extension-For-iOS-GMS-v1-3-).
## YoYo Games 3rd Party Extensions
Legacy versions of *GameMaker* had a lot of 3rd party functionality built in, but this was inefficient and difficult to maintain, since if any specific functionality was changed by the third party, then the whole *GameMaker* IDE and runtime would have to be updated. So, current versions have adopted the use of extensions packages to add third party support to your games. This means that you can add only those extra functions that you require and that you can even adapt and edit them to suit your specific needs.
Most of these extensions will be downloaded and installed for you when you select a specific [Game Option](https://docs2.yoyogames.com/source/_build/2_interface/3_settings/game_options/index.html) (like*Facebook* or *Google Ads* for example), but you can find further information about them from the following YoYo Games **Knowledge Base** articles:
1. [3rd Party Extension Support](http://help.yoyogames.com/hc/en-us/articles/216753758-New-Extension-System-For-3rd-Party-Support-Ads-Facebook-Moga-etc-)
You can find the extensions themselves from the following Marketplace page:
1. [YoYo Games Marketplace Assets](https://marketplace.yoyogames.com/publishers/23/yoyo-games)
Note that these extensions come with a demo and a help file that explains how to use them, and as such their functions are not covered in the manual.
- 介绍
- 新手须知
- 版本授权
- 安装
- 更新
- 发布日志
- 所需SDK
- 账号
- 首选项设置
- 拖拽编程
- 扩展编辑器设置
- 基本项设置
- 图片编辑器设置
- 语言设置
- 市场设置
- 对象编辑器设置
- 插件设置
- 资源树设置
- 场景编辑器设置
- 运行库设置
- 样条编辑器设置
- 精灵编辑器设置
- 文本编辑器设置
- 瓷片编辑器设置
- 时间轴设置
- 输入
- 快速上手
- 概览
- 启动页
- 工作区
- 资源树
- 工作流
- 创建精灵
- 创建瓷片集
- 创建音频
- 创建对象
- 创建场景
- 编译
- 调试
- 快捷键
- 菜单
- 文件菜单
- 编辑菜单
- 构建菜单
- 窗口菜单
- 工具菜单
- 市场菜单
- 帮助菜单
- 布局菜单
- 附加信息
- 位运算符和二进制
- 命令行
- 出错信息
- 文件系统
- 导入非位图精灵
- JSDoc使用
- 微型WEB服务端
- 过时函数
- 纹理页
- 使用缓冲区
- 编辑器
- 扩展编辑器
- 字体编辑器
- 图像编辑器
- 内含文件编辑器
- 备注编辑器
- 对象编辑器
- 路径编辑器
- 场景编辑器
- 脚本编辑器
- 着色器编辑器
- 音频编辑器
- 精灵编辑器
- 瓷片集编辑器
- 时间轴编辑器
- 对象可用事件
- 异步事件
- 绘制事件
- 手势事件
- 其它
- 调试管理器
- 设备管理器
- YoYo资源市场
- 输出停靠栏
- 项目图生成器
- 最近使用窗口
- 远程工作
- 混音器
- 版本控制
- 设置项
- 音频组
- 配置项
- 跨平台配置
- 纹理组
- 游戏配置选项
- AmazonFire 配置
- Android配置
- HTML5配置
- iOS配置
- Linux配置
- Mac配置
- Windows配置
- WindowsUWP配置
- 脚本编程
- 拖放编程概览
- 拖放编程功能索引
- GML概览
- 代码
- 数组
- array_create
- array_copy
- array_equals
- array_length_1d
- array_height_2d
- array_length_2d
- 赋值
- 表达式
- 数据存取
- 功能性语法
- 函数
- 脚本
- 注释
- 关键词
- 变量及作用域
- variable_global_exists
- variable_global_get
- variable_global_set
- variable_instance_exists
- variable_instance_get
- variable_instance_get_names
- variable_instance_set
- 寻址变量
- 评估顺序
- 数据类型
- is_array
- is_bool
- is_int32
- is_int64
- is_matrix
- is_ptr
- is_real
- is_string
- is_undefined
- is_vec3
- is_vec4
- 变元计数
- 指针
- 内置变量属性
- async_load
- health
- lives
- score
- GML函数索引
- asset_get_index
- asset_get_type
- Compatibility_Functions
- Asynchronous Functions
- Audio
- Buffers
- Cameras And Display (摄像机和显示)
- Cameras(摄像机)
- camera_apply
- camera_create
- camera_create_view
- camera_destroy
- camera_get_active
- camera_get_begin_script
- camera_get_default
- camera_get_end_script
- camera_get_proj_mat
- camera_get_update_script
- camera_get_view_angle
- camera_get_view_border_x
- camera_get_view_border_y
- camera_get_view_height
- camera_get_view_mat
- camera_get_view_speed_x
- camera_get_view_speed_y
- camera_get_view_target
- camera_get_view_width
- camera_get_view_x
- camera_get_view_y
- camera_set_begin_script
- camera_set_default
- camera_set_end_script
- camera_set_proj_mat
- camera_set_update_script
- camera_set_view_angle
- camera_set_view_border
- camera_set_view_mat
- camera_set_view_pos
- camera_set_view_size
- camera_set_view_speed
- camera_set_view_target
- view_camera
- view_current
- view_enabled
- view_get_camera
- view_get_hport
- view_get_surface_id
- view_get_visible
- view_get_wport
- view_get_xport
- view_get_yport
- view_hport
- view_set_camera
- view_set_hport
- view_set_surface_id
- view_set_visible
- view_set_wport
- view_set_xport
- view_set_yport
- view_surface_id
- view_visible
- view_wport
- view_xport
- view_yport
- The Screen Display
- Controls
- Data_Structures(数据结构)
- ds_exists
- ds_set_precision
- DS Grids
- DS Lists(列表)
- ds_list_create
- ds_list_destroy
- ds_list_clear
- ds_list_empty
- ds_list_size
- ds_list_add
- ds_list_set
- ds_list_delete
- ds_list_find_index
- ds_list_find_value
- ds_list_insert
- ds_list_replace
- ds_list_shuffle
- ds_list_sort
- ds_list_copy
- ds_list_read
- ds_list_write
- ds_list_mark_as_list
- ds_list_mark_as_map
- DS Maps(映射表)
- ds_map_exists
- ds_map_create
- ds_map_add
- ds_map_clear
- ds_map_copy
- ds_map_replace
- ds_map_delete
- ds_map_empty
- ds_map_size
- ds_map_find_first
- ds_map_find_last
- ds_map_find_next
- ds_map_find_previous
- ds_map_find_value
- ds_map_read
- ds_map_write
- ds_map_destroy
- ds_map_secure_save
- ds_map_secure_save_buffer
- ds_map_secure_load
- ds_map_secure_load_buffer
- ds_map_add_list
- ds_map_add_map
- ds_map_replace_list
- ds_map_replace_map
- DS Priority Queues
- DS Queues
- DS Stacks
- Debugging
- Drawing
- draw_enable_drawevent
- draw_flush
- Colour(颜色)
- colour_get_blue
- colour_get_green
- colour_get_hue
- colour_get_red
- colour_get_saturation
- colour_get_value
- draw_clear
- draw_clear_alpha
- draw_get_alpha
- draw_get_colour
- draw_getpixel
- draw_getpixel_ext
- draw_set_alpha
- draw_set_colour
- make_colour_hsv
- make_colour_rgb
- merge_colour
- Forms
- draw_arrow
- draw_button
- draw_circle
- draw_circle_colour
- draw_ellipse
- draw_ellipse_colour
- draw_healthbar
- draw_line
- draw_line_colour
- draw_line_width
- draw_line_width_colour
- draw_path
- draw_point
- draw_point_colour
- draw_rectangle
- draw_rectangle_colour
- draw_roundrect
- draw_roundrect_colour
- draw_roundrect_colour_ext
- draw_roundrect_ext
- draw_set_circle_precision
- draw_triangle
- draw_triangle_colour
- GPU
- gpu_get_alphatestenable
- gpu_get_alphatestref
- gpu_get_blendenable
- gpu_get_blendmode
- gpu_get_blendmode_dest
- gpu_get_blendmode_destalpha
- gpu_get_blendmode_ext
- gpu_get_blendmode_ext_sepalpha
- gpu_get_blendmode_src
- gpu_get_blendmode_srcalpha
- gpu_get_colorwriteenable
- gpu_get_cullmode
- gpu_get_fog
- gpu_get_state
- gpu_get_texfilter
- gpu_get_texfilter_ext
- gpu_get_texrepeat
- gpu_get_texrepeat_ext
- gpu_get_zfunc
- gpu_get_ztestenable
- gpu_get_zwriteenable
- gpu_pop_state
- gpu_push_state
- gpu_set_alphatestenable
- gpu_set_alphatestref
- gpu_set_blendenable
- gpu_set_blendmode
- gpu_set_blendmode_ext
- gpu_set_blendmode_ext_sepalpha
- gpu_set_colorwriteenable
- gpu_set_cullmode
- gpu_set_fog
- gpu_set_state
- gpu_set_texfilter
- gpu_set_texfilter_ext
- gpu_set_texrepeat
- gpu_set_texrepeat_ext
- gpu_set_zfunc
- gpu_set_ztestenable
- gpu_set_zwriteenable
- Lighting
- draw_get_lighting
- draw_light_define_ambient
- draw_light_define_direction
- draw_light_define_point
- draw_light_enable
- draw_light_get
- draw_light_get_ambient
- draw_set_lighting
- Mipmapping
- gpu_get_tex_max_aniso
- gpu_get_tex_max_aniso_ext
- gpu_get_tex_max_mip
- gpu_get_tex_max_mip_ext
- gpu_get_tex_min_mip
- gpu_get_tex_min_mip_ext
- gpu_get_tex_mip_bias
- gpu_get_tex_mip_bias_ext
- gpu_get_tex_mip_enable
- gpu_get_tex_mip_enable_ext
- gpu_get_tex_mip_filter
- gpu_get_tex_mip_filter_ext
- gpu_set_tex_max_aniso
- gpu_set_tex_max_aniso_ext
- gpu_set_tex_max_mip
- gpu_set_tex_max_mip_ext
- gpu_set_tex_min_mip
- gpu_set_tex_min_mip_ext
- gpu_set_tex_mip_bias
- gpu_set_tex_mip_bias_ext
- gpu_set_tex_mip_enable
- gpu_set_tex_mip_enable_ext
- gpu_set_tex_mip_filter
- gpu_set_tex_mip_filter_ext
- Particles
- Particle Emitters
- part_emitter_burst
- part_emitter_clear
- part_emitter_create
- part_emitter_destroy
- part_emitter_destroy_all
- part_emitter_exists
- part_emitter_region
- part_emitter_stream
- Particle Systems
- part_particles_clear
- part_particles_count
- part_particles_create
- part_particles_create_colour
- part_system_automatic_draw
- part_system_automatic_update
- part_system_clear
- part_system_create
- part_system_create_layer
- part_system_depth
- part_system_destroy
- part_system_draw_order
- part_system_drawit
- part_system_exists
- part_system_get_layer
- part_system_layer
- part_system_position
- part_system_update
- Particle Types
- part_type_alpha1
- part_type_alpha2
- part_type_alpha3
- part_type_blend
- part_type_clear
- part_type_colour_hsv
- part_type_colour_mix
- part_type_colour_rgb
- part_type_colour1
- part_type_colour2
- part_type_colour3
- part_type_create
- part_type_death
- part_type_destroy
- part_type_direction
- part_type_exists
- part_type_gravity
- part_type_life
- part_type_orientation
- part_type_scale
- part_type_shape
- part_type_size
- part_type_speed
- part_type_sprite
- part_type_step
- Simple Effects
- ef_cloud
- ef_ellipse
- ef_explosion
- ef_firework
- ef_flare
- ef_rain
- ef_ring
- ef_smoke
- ef_smokeup
- ef_snow
- ef_spark
- ef_star
- effect_clear
- effect_create_above
- effect_create_below
- Primitives(基本几何体)
- draw_primitve_begin
- draw_primitive_begin_texture
- draw_primitive_end
- draw_vertex
- draw_vertex_colour
- draw_vertex_texture
- draw_vertex_texture_colour
- Primitive Building
- vertex_argb
- vertex_begin
- vertex_colour
- vertex_create_buffer
- vertex_create_buffer_ext
- vertex_create_buffer_from_buffer
- vertex_create_buffer_from_buffer_ext
- vertex_delete_buffer
- vertex_end
- vertex_float1
- vertex_float2
- vertex_float3
- vertex_float4
- vertex_freeze
- vertex_get_buffer_size
- vertex_get_number
- vertex_normal
- vertex_position
- vertex_position_3d
- vertex_submit
- vertex_texcoord
- vertex_ubyte4
- Vertex Formats
- vertex_format_add_colour
- vertex_format_add_custom
- vertex_format_add_normal
- vertex_format_add_position
- vertex_format_add_position_3d
- vertex_format_add_textcoord
- vertex_format_begin
- vertex_format_delete
- vertex_format_end
- Sprites_and_Tiles
- draw_enable_swf_aa
- draw_get_swf_aa_level
- draw_self
- draw_set_swf_aa_level
- draw_skeleton
- draw_skeleton_collision
- draw_skeleton_instance
- draw_skeleton_time
- draw_sprite
- draw_sprite_ext
- draw_sprite_general
- draw_sprite_part
- draw_sprite_part_ext
- draw_sprite_pos
- draw_sprite_stretched
- draw_sprite_stretched_ext
- draw_sprite_tiled
- draw_sprite_tiled_ext
- draw_tile
- draw_tilemap
- Surfaces
- application_get_position
- application_surface
- application_surface_draw_enable
- application_surface_enable
- application_surface_is_enabled
- draw_surface
- draw_surface_ext
- draw_surface_general
- draw_surface_part
- draw_surface_part_ext
- draw_surface_stretched
- draw_surface_stretched_ext
- draw_surface_tiled
- draw_surface_tiled_ext
- surface_copy
- surface_copy_part
- surface_create
- surface_create_ext
- surface_exists
- surface_free
- surface_get_height
- surface_get_texture
- surface_get_width
- surface_getpixel
- surface_getpixel_ext
- surface_reset_target
- surface_resize
- surface_save
- surface_save_part
- surface_set_target
- surface_set_target_ext
- The Application Surface
- Text
- draw_highscore
- draw_set_font
- draw_set_halign
- draw_set_valign
- draw_text
- draw_text_colour
- draw_text_ext
- draw_text_ext_colour
- draw_text_ext_transformed
- draw_text_ext_transformed_colour
- draw_text_transformed
- draw_text_transformed_colour
- Textures
- draw_texture_flush
- texture_get_height
- texture_get_texel_height
- texture_get_texel_width
- texture_get_uvs
- texture_get_width
- texture_global_scale
- texture_set_stage
- File Handing
- Fonts
- Game
- In App Purchases
- Instances
- 数学运算(Maths)
- Date and Time
- 数字方法(Number Functions)
- Vector Functions
- Matrices
- Miscellaneous
- Movement and Collisions
- Networking
- Objects
- Paths
- Physics
- 场景(Rooms)
- 常规的场景函数及变量(General Room Functions And Varibales)
- 常规图层函数(General Layer Functions)
- 瓷片函数(TIlemap Tile Functions)
- 背景图层(Backgrounds)
- 精灵图层(Sprites)
- Scirpts
- Shaders
- Sprites
- Steam API
- Strings
- Timelines
- Web
- XBox_Live
- 翻译名词对照表