Oni (folder)/GameDataFolder/IGMD/global: Difference between revisions
Oni (folder)/GameDataFolder/IGMD/global (view source)
Revision as of 00:17, 8 December 2005
, 8 December 2005→How do I use it?
Line 14: | Line 14: | ||
func void main(void) { | func void main(void) { | ||
dmsg "Thank you for playing Oni!" | dmsg "Thank you for playing Oni!" | ||
# | # WHATEVER ELSE THERE IS | ||
} | } | ||
OK. You've done that for all 14 levels. But now, let's say you've learned about how to add colors to debug messages, and you want the whole message to be red, except for the word Oni which shall be blue. | OK. You've done that for all 14 levels. But now, let's say you've learned about how to add colors to debug messages, and you want the whole message to be red, except for the word Oni which shall be blue. | ||
What then? | What then? Open every level's "main file" again and replace "Thank you for playing Oni!" with "[r.Thank you for playing ][b.Oni][r.!]"? 14 times? | ||
No. You use the global folder | No. You use the global folder | ||
==<tt>func pre</tt>== | ==<tt>func pre</tt>== |