Legacy:GetVersionString
From Spherical
This function produces a string that represents the current version of the Sphere engine that the player is using.
Contents
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
- GetVersion()
- FlipScreen()
- Font.drawString()
- GetKey()
- GetSystemFont()