readonly static bool Game.UseNativeCoordinates
Returns whether the game is using native co-ordinates. If native co-ordinates are in use,
then all X, Y, Top, Bottom, Width and Height variables in the game will be expected to
reflect the resolution of the game.
If this is false, then the game is operating in backwards-compatible mode where
all co-ordinates are low-res.
If the game resolution is 320x200 or 320x240, this setting has no effect.
This property is read-only; it is not possible to change this setting at run-time.
Example:
if (Game.UseNativeCoordinates)
{
Display("The player is at %d, %d -- REALLY!", player.x, player.y);
}
else
{
Display("The player is at %d, %d in the old-school system", player.x, player.y);
}
Compatibility: Supported by AGS 3.1.0 and later versions.
|