885
edits
(Created page with "{{AGIWiki}} A '''room''' in an AGI game is, roughly, a division between areas in the game. A room might also be called a "screen." In a loose sense, you know tha...") |
m |
||
Line 3: | Line 3: | ||
A '''room''' in an [[AGIWiki/AGI|AGI]] game is, roughly, a division between areas in the game. A room might also be called a "screen." In a loose sense, you know that [[AGIWiki/Ego|ego]] has gone to a new room when the background [[AGIWiki/Picture|picture]] changes. | A '''room''' in an [[AGIWiki/AGI|AGI]] game is, roughly, a division between areas in the game. A room might also be called a "screen." In a loose sense, you know that [[AGIWiki/Ego|ego]] has gone to a new room when the background [[AGIWiki/Picture|picture]] changes. | ||
In a technically accurate sense, to be "in a room" means that the current value of <code>v0</code> is the number of the room that you are in. Normally, the [[AGIWiki/Logic|logic resource] with the same number as the current room number will be called on each [[AGIWiki/Interpreter cycle|interpreter cycle]] (this does not happen automatically, however; the [[AGIWiki/AGI Studio Template Game|AGI Studio Template Game]] has already included the appropriate code to do this in [[AGIWiki/Logic 0|logic 0]]). This gives each room its own behavior. When the game switches to a new room, the [[AGIWiki/Flag|flag]] <code>f5</code> is set to indicate that this is the first interpreter cycle in the new room. | In a technically accurate sense, to be "in a room" means that the current value of <code>v0</code> is the number of the room that you are in. Normally, the [[AGIWiki/Logic|logic resource]] with the same number as the current room number will be called on each [[AGIWiki/Interpreter cycle|interpreter cycle]] (this does not happen automatically, however; the [[AGIWiki/AGI Studio Template Game|AGI Studio Template Game]] has already included the appropriate code to do this in [[AGIWiki/Logic 0|logic 0]]). This gives each room its own behavior. When the game switches to a new room, the [[AGIWiki/Flag|flag]] <code>f5</code> is set to indicate that this is the first interpreter cycle in the new room. | ||
There is a limit of 255 rooms in an AGI game. Logic 0 is special, so a room number of 0 is not valid, but logics 1-255 are available. It should be noted, however, that the AGI Studio Template Game uses logics 90-99 for additional game functions and logic 1 for the game's introduction. | There is a limit of 255 rooms in an AGI game. Logic 0 is special, so a room number of 0 is not valid, but logics 1-255 are available. It should be noted, however, that the AGI Studio Template Game uses logics 90-99 for additional game functions and logic 1 for the game's introduction. |
edits