ludi
v0.3.0
Published
<a href="#"><img src="https://github.com/johnsusek/Ludi/blob/main/media/ludi.png?raw=true" width="240" align="left" title="Ludi (Latin plural) were public games held for the benefit and entertainment of the Roman people (populus Romanus). Pictured: Ancien
Downloads
17
Readme
Ludi
Ludi is a tool that generates Haxe code for the Heaps.io game engine. It uses a custom markup file format similar to Vue single-file components.
Declare your scenes in a declarative language. Program your logic in a programming language.
Installation
npm install -g ludi
Usage
ludi <component.hue>
Example.hue
This component:
<template>
<App>
<Text id="txt" :font="hxd.res.DefaultFont.get()" text="Foo" />
</App>
</template>
produces this code:
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 folder for many more examples.