篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown OpenFL + Haxe + visual Studio Code相关的知识,希望对你有一定的参考价值。
1. Download latest Haxe distribute on [Haxe donload](https://haxe.org/download/ "Haxe's web page")
2. Download and install [Visual Studio Code](https://code.visualstudio.com/ "Visual Studio Code web page") editor.
3. Download Vs Code Plugins Pack
1. codedox
2. Flash Debugger
3. HashLink Debugger
4. Haxe
5. Haxe Extension Pack
6. HXCPP Debugger (optional for macOS application export)
7. Lime
4. Open Terminal;
- ```$ haxelib setup```
- ```$ haxelib install lime```
- ```$ haxelib install openfl```
- ```$ haxelib run openfl setup```
- ```$ haxelib install openfl-samples```
5. Run OpenFl command and see option;
- ```$ openfl```
6. Run example OpenFl samples;
- ```$ openfl create DisplayingABitmap```
7. This creates a copy in the current directory, but you can also specify an output directory if you prefer:
- ```$ openfl create DisplayingABitmap BitmapTest```
8. Export Project For html5
- ```$ cd DisplayingABitmap```
- ```$ openfl test html5```
9. Create lime project template
- ```$ lime create openfl:project TestApp````
10. Open Project in Visual Studio Code and run;
- ```$ lime test html5```
1. THERE IS ANOTHER WAY !!! Project Template Generator for OpenFl. First, install Yeoman and generator-openfl using npm ( assumed that you have pre-installed node.js).
- ```$ npm install -g yo```
- ```$ npm install -g generator-openfl```
2. To generate new project with yo generator;
- ```$ yo openfl```
以上是关于markdown OpenFL + Haxe + visual Studio Code的主要内容,如果未能解决你的问题,请参考以下文章