ludi

0.3.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i ludi

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

5.7 MB

Total Files

7

Last publish

Collaborators

  • johnsusek