Legacy:GetVersionString

From Spherical
Revision as of 22:17, 1 June 2013 by Apollolux (talk | contribs) (created from http://web.archive.org/web/20120504060028/http://www.spheredev.org/wiki/GetVersionString)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function produces a string that represents the current version of the Sphere engine that the player is using.

Usage

string GetVersionString();



Examples

// Display "v1.5"

var font = GetSystemFont();
font.drawText(0, 0, "\"" + GetVersionString() + "\"");
FlipScreen();
GetKey();

Notes

This function is more useful for display purposes, rather than checking and comparing versions of the Sphere engine. If you wish to compare the numeric version of Sphere, consider GetVersion().

GetVersionString() exists because future releases of Sphere may introduce non-numeric characters into the version. Note the addition of the leading 'v' character to the version number above.

See also