Jump to content

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

Line 38: Line 38:
Because everything in <tt>func main</tt> is level-specific settings and/or logic, so if you want something to happen exactly the same way every time you load a level, the only place to add that something is at the very start of <tt>func main</tt>, that is, ''before'' all the level-specific content. Which is why it's called "pre".
Because everything in <tt>func main</tt> is level-specific settings and/or logic, so if you want something to happen exactly the same way every time you load a level, the only place to add that something is at the very start of <tt>func main</tt>, that is, ''before'' all the level-specific content. Which is why it's called "pre".


Should still work if you name it anything else though. <tt>pre</tt> just makes athe most sense.
Should still work if you name it anything else though. <tt>pre</tt> just makes the most sense.


===Why make it inline? (WARNING : EXPERT STUFF)===
===Why make it inline? (WARNING : EXPERT STUFF)===
85

edits