If entities can spawn new entities, then the terrain could be infinite and procedurally generated. Right now it's fixed, but it should be turned into a sort of special-case entity. Also, entities should be able to spawn new entities at a location. Entities should be able to specify a collision mesh (either as a triangle mesh or using a set of primitives). Also, message passing should (potentially) exist with a finite speed of light - that is, it takes time for the messages to travel. We should be able to target messages to specific entities, which implies that entities should have some sort of ID system (this ID can be a number that's returned when spawnEntity() is called). On a related note, message passing should be improved.In other words, asking questions like "am I running into anyone?" or "who is within 20 meters of me?" Entities should have some way of querying the environment around them.This is to scope out everything that needs to be done in terms of the API. Hit the appropriate URL (that you set above, when you were pointing your web server at the demo folder), and that will bring up the demo UI. This will start a websockets server on port 8888. Run worldbox in the root directory (the same directory as stdlib.js).
You will need to point a webserver at the example's web folder to access the GUI - I pointed an instance of Apache at examples/karts/web.Ĭompile the worldbox as shown above. That'll build an a.out executable for you. You may need to edit src/Makefile to match your setup. To get the latest either use Vervet or compile from source. Protobuf can be installed through apt-get on ubuntu, but that gives you an old version. Rapidjson is fairly straight forward, it can be obtained from
V8 is harder to install - I followed the instructions at and On Ubuntu, you can install bullet through apt-get. Right now we don't really have any of that, but that's the goal. Then WorldBox runs these entities, and you talk to WorldBox over the network to get the status of the entities - position, controls, things like that. What does that mean? It means that you define entities and how they interact, and WorldBox does the heavy lifting for you - physics, game loop, interaction with the outside world. WorldBox is an entity-centric game engine that uses JavaScript.