Jump to content

Oni (folder)/GameDataFolder/IGMD/global: Difference between revisions

Line 14: Line 14:
  func void main(void) {
  func void main(void) {
     dmsg "Thank you for playing Oni!"
     dmsg "Thank you for playing Oni!"
  #  REST OF THE MAIN FUNCTION'S BODY, UNCHANGED
  #  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? Load the whole level again and replace "Thank you for playing Oni!" with "[r.Thank you for playing ][b.Oni][r.!]"? 14 times?
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>==
Anonymous user