O'Reilly logo

Collaborative Online Game Creation by Naveena Aswadhati, Nanu Swamy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Experimenting with GameBrix Objects

This section investigates the inner details of GameBrix objects with a couple of examples. Referring to a property directly and assigning it a name can change it. For example, to rotate an object by 45 degrees, you can use the following command:

_rotation = 45;

Objects have tasks they can perform, as seen in Table 8.4. You can embed a set of tasks inside an entity within the object, called a method. You can call object methods directly to perform a set of commands. By default, every GameBrix object has a set of methods for performing high-level tasks. For example, to navigate to a Web page, you can invoke the following method available within every object:

getURL("http://www.gamebrix.com");

Apart from changing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required