<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Game.sgm</id>
		<title>Game.sgm - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Game.sgm"/>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Game.sgm&amp;action=history"/>
		<updated>2026-05-10T12:44:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Game.sgm&amp;diff=747&amp;oldid=prev</id>
		<title>Apollolux: created</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Game.sgm&amp;diff=747&amp;oldid=prev"/>
				<updated>2013-06-08T02:34:12Z</updated>
		
		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase title}}&lt;br /&gt;
&lt;br /&gt;
[[game.sgm]] is a configuration file placed in the root directory of a Sphere project. This file is required for the Sphere engine to load and run a project, as well as allow the various Sphere editors to process a given directory as one containing a Sphere project.&lt;br /&gt;
&lt;br /&gt;
==Format==&lt;br /&gt;
The file's format is similar to that of an [[Wikipedia:INI_file|INI file]], with each line containing a &amp;lt;code&amp;gt;key=value&amp;lt;/code&amp;gt; statement. The following keys are initialized automatically upon creation of a new project in the default Sphere editor:&lt;br /&gt;
&lt;br /&gt;
;	name&lt;br /&gt;
:	The name of the project&lt;br /&gt;
;	author&lt;br /&gt;
:	The author or authors of the project&lt;br /&gt;
;	script&lt;br /&gt;
:	The first script file to load when searching for the [[game (function)|game function]] to run&lt;br /&gt;
;	description&lt;br /&gt;
:	A short description of the project&lt;br /&gt;
;	screen_width&lt;br /&gt;
;	screen_height&lt;br /&gt;
:	The width and height to set the window to when running the project in the engine; these dimensions are base window dimensions and do not take video driver configuration into account&lt;br /&gt;
&lt;br /&gt;
==Game object==&lt;br /&gt;
The &amp;lt;var&amp;gt;name&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;author&amp;lt;/var&amp;gt;, and &amp;lt;var&amp;gt;description&amp;lt;/var&amp;gt; keys are stored in a [[API:Game|Game object]] which is retrievable using the [[API:GetGameList|GetGameList]] function. The object also contains a property, &amp;lt;var&amp;gt;directory&amp;lt;/var&amp;gt;, which contains the name of the project's root directory. This directory can be passed to the [[API:ExecuteGame|ExecuteGame]] function to load into the engine a project from within an already running project.&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>	</entry>

	</feed>