Skip to content

viima-xyz/tetris-haxeflixel

Repository files navigation

tetris-haxeflixel

A tetris demo project using Haxeflixel.

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

About

Classic tetris demo using Haxeflixel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages