diff --git a/.gitignore b/.gitignore index 339e351..b27f170 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ test/gdscript/out -test/project.godot \ No newline at end of file +test/project.godot +Submit.bat +gdscript.zip \ No newline at end of file diff --git a/README.md b/README.md index cc802fd..d000084 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,13 @@ # Haxe: GDScript Target Compile Haxe to GDScript 2.0 like any other Haxe target. Made using [Reflaxe](https://github.com/RobertBorghese/reflaxe). -This project is incomplete and experimental. No guarantee it will be completed. - How to install: ```hxml # In your compile.hxml file... # Enable the library -# This will not work currently as this lib hasn't been added to haxelib --lib gdscript-target +-lib gdscript # Set output folder to "./output" -D gdscript-output=output @@ -18,23 +15,27 @@ How to install: ## How it outputs -* As GDScript outputs one file per class, each class, regardless of module, receives its own file. +- [x] As GDScript outputs one file per class, each class, regardless of module, receives its own file. + +- [x] A custom version of the Haxe standard library is made for GDScript (check out `std/gdscript/_std`) -* A custom version of the Haxe standard library is made for GDScript (check out `std/gdscript/_std`) +- [ ] Bindings to the Godot classes/functions (check out `std/godot`) -* If GDScript is being generated, conditional compilation can be used with the `gdscript` define. +- [x] If GDScript is being generated, conditional compilation can be used with the `gdscript` define. ```haxe #if gdscript doSomethingOnlyForGDScript(); #end ``` -* GDScript can be injected directly using: +- [x] GDScript can be injected directly using: ```haxe untyped __gdscript__("print(123)"); ``` -* GDScript meta can be defined using `@:meta`, though there should be defined metadata for each existing attribute in GDScript. +- [ ] GDScript meta can be defined using `@:meta`, though there should be defined metadata for each existing attribute in GDScript. ```haxe @:meta(onready) var someVal = get_node("myNode") ``` + +- [ ] (Unfinished) Haxe enum support diff --git a/haxelib.json b/haxelib.json index eff22b2..70f5b64 100644 --- a/haxelib.json +++ b/haxelib.json @@ -1,8 +1,8 @@ { - "name": "gdscript-compiler", - "version": "1.0.0", + "name": "gdscript", + "version": "0.1.0", "description": "Compile Haxe to GDScript 2.0 as easily as you'd output to any other target.", - "url": "https://github.com/RobertBorghese/Haxe-CompileToGDScript", + "url": "https://github.com/RobertBorghese/Haxe-to-GDScript", "license": "MIT", "tags": [ "godot", @@ -17,6 +17,6 @@ "extension" ], "classPath": "src/", - "releasenote": "Initial release.", + "releasenote": "Initial release. Most syntax and Std, Math, String, Array, haxe.Log works.", "contributors": ["RobertBorghese"] } \ No newline at end of file