Object-Game

From Spheriki

Jump to: navigation, search

Holds data about a single game in the sphere/games/ directory.


Contents

Initializers


Methods

None.


Members

  • directory String. The game's directory name inside the sphere/games/ directory. Corresponds to 'Project Name' field in the Sphere IDE when creating a new project.
  • name String. The name of the game itself. Corresponds to 'Game Title' in the Sphere IDE both when creating a new project, and in the Game Settings dialog.
  • author String. The author of the game. Corresponds to the 'Author' field in the Sphere IDE, in the Game Settings dialog.
  • description String. A short description of the game. Corresponds to the 'Description' field in the Sphere IDE, in the Game Settings dialog.


Examples

See examples for ExecuteGame() and GetGameList().


Notes

  • Currently, the only way to obtain a Game object is by using GetGameList(), which returns an array of them.
  • The Game object is unrelated to the function game(), which is the first function looked for by Sphere.


See also

Personal tools