3D terrain demo using OpenFL, Away3D, and Haxe.

Keyboard shortcuts:

  • Mouse down — move camera
  • f — Launch Full Screen
  • w or Arrow Up — forward
  • s or Arrow Down — backward
  • a or Arrow Left — left
  • d or Arrow Right — right

Getting started

This is a Haxe project, demonstrating a basic 3D terrain with water and skybox, built with OpenFL and Away3D.

Install Haxe

If you don’t already have Haxe installed, start by installing either Mac, Linux, or Windows packages.

Library Dependencies

If this is your first time running haxelib, setup by executing the following command:

$ haxelib setup

Install Lime

$ haxelib install lime
$ haxelib run lime setup

Install OpenFL

$ haxelib install openfl
$ haxelib run openfl setup

Install Away3D

$ haxelib install away3d

Building and running

To run, call openfl test with a target, such as:

$ cd openfl-away3d-terrain-demo/
$ openfl test html5

And you end up with:

screen-capture