Open main menu

Difference between revisions of "AGIWiki/new.room"

18 bytes added ,  15:01, 25 October 2018
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
(→‎Examples: Fix syntax highlighting)
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
Tags: Mobile edit Mobile web edit
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:


<source lang="cpp">
<syntaxhighlight lang="cpp">
  #define ego_edge_code v2
  #define ego_edge_code v2
  #define left_edge      4
  #define left_edge      4
Line 57: Line 57:
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>


<source lang="cpp">
<syntaxhighlight lang="cpp">
  #define ego_edge_code v2
  #define ego_edge_code v2
  #define left_edge      4
  #define left_edge      4
TrustedUser
2,147

edits