Comparing version 0.2.21 to 0.3.0
{ | ||
"name": "ludi", | ||
"version": "0.2.21", | ||
"version": "0.3.0", | ||
"author": "John Susek <ludi@johnsolo.net>", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -5,5 +5,6 @@ # Ludi | ||
**Ludi** is a markup language that generates [Haxe](https://haxe.org) code for the [Heaps.io](https://heaps.io) game engine. It enables the user to author games as a series of single-file components. | ||
**Ludi** is a tool that generates [Haxe](https://haxe.org) code for the [Heaps.io](https://heaps.io) game engine. It uses a custom markup file format similar to Vue single-file components. | ||
The generated code can target many languages including C++, C#, Java, JavaScript for Windows, Mac, Xbox, Playstation, Switch, iOS, Android, and webGL. | ||
Declare your scenes in a declarative language. | ||
Program your logic in a programming language. | ||
@@ -18,2 +19,31 @@ ## Installation | ||
See the [tests](tests/) folder for example components. | ||
## Example.hue | ||
This component: | ||
```vue | ||
<template> | ||
<App> | ||
<Text id="txt" :font="hxd.res.DefaultFont.get()" text="Foo" /> | ||
</App> | ||
</template> | ||
``` | ||
produces this code: | ||
```haxe | ||
class Example extends hxd.App { | ||
override function init() { | ||
super.init(); | ||
var txt = new h2d.Text(hxd.res.DefaultFont.get()); | ||
txt.text = "Foo"; | ||
} | ||
static function main() { | ||
new Example(); | ||
} | ||
} | ||
``` | ||
See the [tests](tests/) folder for many more examples. | ||
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5700423
48
4184