You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Christoph Heine edited this page Mar 22, 2018
·
2 revisions
Files
Files are one of the primitive types supported by nyan. A file holds a file descriptor with a path to any file as a value. Paths are always relative to the location of the nyan object which contains the file member.
Syntax
sample_file : file = "./folder1/sample.png"
The file data typpe uses the same syntax as the text type. The path is surrounded by quotation marks ("") and uses the UNIX-like notation of a forward slash (/) for path separators.
The file hud_icon has a value of archer_icon.png. Because paths are relative, we also know that archer_icon.png should be located in the same folder as the nyan object declaration.