Open main menu

Difference between revisions of "AGIWiki/new.room"

4 bytes removed ,  20:57, 11 May 2016
→‎Examples: Fix syntax highlighting
m
(→‎Examples: Fix syntax highlighting)
Line 45: Line 45:
The following code goes to room 25 if [[AGIWiki/Ego|ego]] is touching the left edge of the screen:
The following code goes to room 25 if [[AGIWiki/Ego|ego]] is touching the left edge of the screen:


<syntax type = "C++">
<source lang="cpp">
  #define ego_edge_code v2
  #define ego_edge_code v2
  #define left_edge      4
  #define left_edge      4
Line 53: Line 53:
     new.room(25);
     new.room(25);
  }
  }
</syntax>
</source>


The next example accomplishes the same task with <code>new.room.v</code><nowiki>: </nowiki>
The next example accomplishes the same task with <code>new.room.v</code><nowiki>: </nowiki>


<syntax type = "C++">
<source lang="cpp">
  #define ego_edge_code v2
  #define ego_edge_code v2
  #define left_edge      4
  #define left_edge      4
Line 66: Line 66:
     new.room.v(v202);
     new.room.v(v202);
  }
  }
</syntax>
</source>


== Technical Information ==
== Technical Information ==
TrustedUser
2,147

edits