Nexus is a GPU accelerated 2D game engine using Stage3D. The rendering process is contained inside a world instance, which is created with a sprite sheet texture map and a JSON file. It is possible to manipulate specific sprites using its id.
Its is also possible to supply a normal map that will be used in a 3 render passes process. When the normal map is used, a light source can beÂ positioned.
var world:SimpleWorld = new SimpleWorld(stage, spriteSheet, spritesPosition, normalMap); DebugSpriteSheet.saveAsPnG(spriteSheet, spritesPosition, 2048, 2048); var object:Box = world.addSprite(spriteId, Box); // Inside a enterFrame Event listener: world.render(new Point(lightPositionX, lightPositionY));
Flash On Focus liked this on Facebook.