Skip to content
forked from fenomas/noa

Experimental voxel game engine.

License

Notifications You must be signed in to change notification settings

Offroaders123/noa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noa-engine

An experimental voxel game engine.

Live demo of testbed here!

For content examples see the hello-world app or testbed app.


API reference:

noa

Main engine object.
Emits: tick, beforeRender, afterRender

var noaEngine = require('noa-engine')
var noa = noaEngine(opts)
  • playerEntity - Entity id for the player entity

  • cameraTarget - entity to track camera target position

  • setPaused(paused) - Pausing the engine will also stop render/tick events, etc.

  • getBlock(x,y,z)

  • setBlock(x,y,z)

  • addBlock(id,x,y,z)

  • getTargetBlock()

  • getTargetBlockAdjacent()

  • getPlayerPosition()

  • getPlayerMesh()

  • getPlayerEyePosition()

  • getCameraVector()


noa.world

Module for managing the world, and its chunks

  • getBlockID(x,y,z)

  • getBlockSolidity(x,y,z)

  • getBlockOpacity(x,y,z)

  • getBlockTransparency(x,y,z)

  • getBlockFluidity(x,y,z)

  • getBlockProperties(x,y,z)

  • setBlockID(x,y,z)

  • setChunkData(id, array) - client should call this after creating a chunk's worth of data (as an ndarray)


About

Experimental voxel game engine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%