Difference between revisions of "3D Space Example.as"
From Organic Design wiki
m |
(Add textfield for debugging) |
||
Line 13: | Line 13: | ||
for ( var i = 0; i < allSpaces.length; i++ ) | for ( var i = 0; i < allSpaces.length; i++ ) | ||
if ( allSpaces[i].active ) allSpaces[i].frame(); | if ( allSpaces[i].active ) allSpaces[i].frame(); | ||
+ | } | ||
+ | |||
+ | createTextField( 'debug', 1, 0, 0, width, height ); | ||
+ | with ( debug) { | ||
+ | border = false; | ||
+ | multiline = true; | ||
+ | wordWrap = true; | ||
+ | html = true; | ||
} | } | ||
// Test object | // Test object | ||
test.create( [ 0, 0, '', 'torus', 5, 200, 1000 ] ); | test.create( [ 0, 0, '', 'torus', 5, 200, 1000 ] ); |
Revision as of 20:14, 19 March 2006
- include "Space.as"
// Instantiate a new 3D-space createEmptyMovieClip( 'test', 1 ); initialiseSpace( test ); test._x = width/2; test._y = height/2;
// Per frame function reduce() { now = new Date(); time = now.getTime(); for ( var i = 0; i < allSpaces.length; i++ ) if ( allSpaces[i].active ) allSpaces[i].frame(); }
createTextField( 'debug', 1, 0, 0, width, height ); with ( debug) { border = false; multiline = true; wordWrap = true; html = true; }
// Test object test.create( [ 0, 0, , 'torus', 5, 200, 1000 ] );