2d-sfml-game-engine / v8-gamengine-example-main / scripts / create_object.js
create_object.js
Raw
//
// This cript calls gameobjectfactory() to create a new game object, and
// recievs it's handle. 
//
// NOTE: gameobjectfactory is a static function added to the global context in
// the native main() function
//
var new_obj = gameobjectfactory();
print("Received new object: " +  new_obj.guid)