DailyJS

Meincraft, Virtual Joystick, Filer.js

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

libraries html5 webgl filesystem

Meincraft, Virtual Joystick, Filer.js

Posted by Alex R. Young on .
Featured

libraries html5 webgl filesystem

Meincraft, Virtual Joystick, Filer.js

Posted by Alex R. Young on .

Meincraft

Meincraft screenshot

Meincraft (GitHub: mitsuhiko / webgl-meincraft, License: BSD) by Armin Ronacher a WebGL demo that generates terrain and allows navigation with its own camera implementation.

It's currently a simple personal project rather than a fully-fledged web-based Minecraft engine, similar to the three.js Minecraft demo, but it's an interesting start and different to the other WebGL Minecraft clones that I've found so far.

Virtual Joystick

Let's Make a 3D Game: Virtual Joystick by Jerome Etienne is a tutorial on his virtualjoystick.js project which provides a joystick suitable for use with touchscreens. It works a lot like the joysticks seen in many iOS and Android games.

The tutorial post includes a demo, and it even works with a mouse. The basic API is simply var joystick = new VirtualJoystick().

Filer.js

Filer.js (GitHub: ebidel / filer.js, License: Apache 2.0) by Eric Bidelman is a friendly API for the HTML5 FileSystem API based around Unix commands. Most commands are asynchronous and expect a callback:

var filer = new Filer();  
filer.init({size: 1024 * 1024}, onInit.bind(filer), onError);

function onInit(fs) {  
  filer.ls('/', function(entries) {
    // entries is an Array of file/directories in the root folder.
  }, onError);
}

function onError(e) { ... }  

That example lists a directory. Other familiar commands include cd, create, mkdir, rm, cp, mv, open, and write. Each API method is documented in the project's README file in the repository.