Giter Club home page Giter Club logo

pathfun-editor's Introduction

pathfun editor

A navigation area editor for the pathfun Lua library.

Uses LÖVE as the engine, Dear ImGui for the interface, clipper for polygon operations, and polypartition to partition into convex polygons.

Works on Linux, Windows, and macos.

Features

  • Visual editing the navigation area by adding or subtracting polygons in an intuitive way.
  • Testing mode to test pathfinding on the navigation area using pathfun.
  • Help window with instructions on how to use the editor.
  • Exports a .lua file that returns the navigation data expected from pathfun when required from Lua.

The following animation provides a quick overview of the main features of the editor:

Animation showing the editor in use.

How to use

The git repository only contains the LÖVE source code (mostly written in MoonScript). To use the editor you can grab a pre-built release (recommended) or compile code and/or libraries yourself.

Pre-built binaries

Pre-built binaries can be found in the releases page for the following systems/architectures:

  • Linux x64
  • Windows x86, x64
  • macos x64

Compilation

LÖVE archive

  1. First you'll need to compile the .moon files in the src directory with MoonScript (see instructions here).
  2. Put all the .lua files from the src directory and the ones compiled with MoonScript in a zip file, preserving the directory structure (main.lua should be in the root of the zip file).
  3. Rename the zip file to pathfun-editor.love.

The pathfun-editor.love obtained here cannot be run with LÖVE yet, since it requires compilation of the shared libraries.

Shared libraries

The editor needs shared libraries from the following projects:

You can either grab the pre-compiled libraries from the project releases or compile them yourself.

Running the LÖVE file

  1. Place the compiled shared libraries in the same folder as the pathfun-editor.love file.
  2. Download the LÖVE binaries from https://love2d.org/
  3. Run pathfun-editor.love using LÖVE.

pathfun-editor's People

Contributors

apicici 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.