Skip to content

A work in progress creation of a 3d engine in flixel, pull requests encouraged

License

Notifications You must be signed in to change notification settings

CodenameCrew/flixel3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flixel3D

A 3D engine for flixel, using OpenGL.

Caution

This library is still in development, and is not yet ready for use.

Installation

Installing via Git:

haxelib git flixel3d https://github.com/FNF-CNE-Devs/flixel3d

Add the following to your Project.xml:

<haxelib name="flixel3d" />

Usage

Model loading:

import flixel3d.FlxModel;

var sprite:FlxSprite = new FlxSprite();
sprite.loadGraphic("assets/sprite.png");
add(sprite);

var model:FlxModel = new FlxModel();
model.loadFbxModel("assets/model.fbx");
model.angularVelocity3D.z = 30; // rotate the model
add(model);

var crown:FlxSprite = new FlxSprite();
crown.loadGraphic("assets/crown.png");
add(crown);

Scene rendering:

import flixel3d.FlxScene;

var scene:FlxScene = new FlxScene();
for (i in 0...2) {
	var model:FlxModel = new FlxModel();
	model.loadFbxModel("assets/model.fbx");
	model.x = i * 100;
	scene.add(model);
}
add(scene);

Surface rendering:

import flixel3d.FlxSurface;

var surface:FlxSurface = new FlxSurface();

var sprite = new FlxSprite(0, 0);
sprite.loadGraphic("assets/sprite.png");
surface.add(sprite);

sprite = new FlxSprite(100, 0);
sprite.loadGraphic("assets/sprite.png");
surface.add(sprite);

add(surface);

License

MIT

About

A work in progress creation of a 3d engine in flixel, pull requests encouraged

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages