Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ludi

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ludi

<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

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc