Example Code Library

nwbanneran.gif (21412 bytes)

Home Page

Coherent Visual

 

 

Example Code Library

The Example Code Library contains code snippet of a number of useful routines. This code provides a sample of some of the things you can do within a NewWorld through programming. Most of the code examples are written in Visual Basic or VBA, so if you're using a different development system, they will have to be converted.

If you have samples you would like to add to the Code Library, please email them to us. Include the code as well as whether you want your name listed with the code, what name you want listed, and if you have an email or web address that should also be included. Also, if you have a GIF or JPEG photo of yourself (< 8K in size), we'll include that on the page too!

Init Simple 2 line code that shows how to initialize a NewWorld3D world.
Movement All the code necessary to initialize a world and let the user move around the world using the W (forward), A (turn left), S (backward), and D (turn right) keys.
Disco Example which creatures 20 creatures in a world and has them randomly walk around. Random movement makes them look kinda like they're dancing.
ShowMap Displays the overhead map for the current world.

 

vbxtras.gif (5181 bytes)

The NewWorld3D Construction Kit can be purchased from VBXtras. Click here to jump directly to the product.

 

Coherent Visual, 4141 Jutland Dr., Suite 303, San Diego, CA 92117
619-581-0344