section Resources API section
Description
Classes
-
Font
99% of games use some sort of text in the game. Whether to display a score or dialog from a character, rendering text on the game screen begins with an
Font
instance, to specify which font will be used with the text. -
Script
The
Script
class is responsible for loading additional JavaScript source files into your SGF game's JavaScript environment. -
Spriteset
The
Spriteset
class is responsible for loading and keeping a reference to the in-memory Image data for a Spriteset. The actual type of Image resource supported depends on the SGF engine in use. However,.jpg
.png
,.gif
are highly recommended to be implemented in every engine.