Giter Site home page Giter Site logo

haxeflixel-template's Introduction

haxe-ld-template

A Ludum Dare template using HaxeFlixel. Includes Visual Studio Code settings for default build task.

Updated now for HaxeFlixel 4.4.0 and OpenFL 8!

Installation

If you don’t have haxe, install it manually from haxe.org or with something like homebrew (on the mac)

brew install haxe

If you used Homebrew, add the following to your .bashrc or equivalent file:

export HAXE_STD_PATH="/usr/local/lib/haxe/std"

Once you have haxe installed

haxelib setup

haxelib install flixel
haxelib install flixel-tools

haxelib run lime setup
haxelib run flixel setup

Running the template

Using neko is no longer a good idea now that OpenFL has been updated to version 8. Using the HTML5-build is highly recommended as it has far superior performance compared to neko now.

lime test html5

Developing in server mode

Run the haxe compiler in server mode to speed up compilation:

haxe --wait 6001

Start a second terminal window, and in it BrowserSync to refresh the software on build:

npm install
npm run start

Compile to see changes. I recommend you make a comfortable keyboard shortcut for building the default build (which is now html5), so browsersync will automatically refresh when you build.

lime test html5

If you want to build automatically when saving a source file, then run the autobuild script (it uses inotify and currently works only on Linux):

./autobuild.sh

haxeflixel-template's People

Contributors

hunttis avatar villenuutinen avatar

Watchers

James Cloos 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.