GithubHelp home page GithubHelp logo

jobf / ldtk-haxe-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deepnight/ldtk-haxe-api

0.0 0.0 0.0 1.31 MB

LDtk level editor Haxe API (available on HaxeLib)

License: MIT License

Haxe 99.78% Batchfile 0.22%

ldtk-haxe-api's Introduction

About

What is this?

This is the Haxe API to load LDtk Project JSON files.

LDtk is a modern and open-source 2D level editor.

Issue tracker (shared) | API documentation | LDtk official page

Unit tests

Features

  • Compatible with all Haxe based frameworks and engines.
  • Dedicated API for the following frameworks:
  • Completely typed at compilation: if you rename any element in your project (ie. level, layer, entity, etc.), the corresponding references in your code will break accordingly, avoiding typical errors or mistypings.
  • Full completion in VScode: if you have vs-haxe installed, you will get full completion while exploring your project file, based on its actual content, right from VScode.

Usage

Install

haxelib install ldtk-haxe-api

Documentation

Please check the full documentation and tutorials here:

https://deepnight.net/docs/ldtk/haxe-api/

Samples

You can check some examples in samples folder.

Samples are built to WebGL (Javascript) and Hashlink targets, but you can try them on other compatible platforms too.

Requirements

You need a standard Haxe install, and both heaps and deepnightLibs libraries installed:

haxelib git heaps https://github.com/HeapsIO/heaps.git

haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git

Building samples

Open a folder in the samples folder (eg. samples\Generic - Generic - Read project) and run:

haxe build.hxml

You can also build all samples in one go. Go in samples folder and run:

haxe buildAll.hxml

Rebuild samples HXMLs

If you modify the API, you might need to rebuild samples HXMLs files themselves. In the root of the repo, run:

haxe genSamples.hxml

Unit tests

You can build and run unit tests manually using the following commands from the repository root.

JS/WebGL target

You will need Node interpreter to run the tests.

haxe tests\js.hxml

Neko target

You will need Neko VM interpreter to run the tests.

haxe tests\neko.hxml

ldtk-haxe-api's People

Contributors

deepnight avatar naxecode avatar nyalloc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.