This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
crpl:overview [2020/06/14 10:50] – Added reference to Redcrafter's crpl transpiler Redcrafter | crpl:overview [2020/06/26 08:36] – [Syntax Highlighting in the Wiki] code highlighting example Karsten75 | ||
---|---|---|---|
Line 210: | Line 210: | ||
* All files with the *.crpl extension should now use this package. | * All files with the *.crpl extension should now use this package. | ||
- | =====Translation Front-end ===== | + | =====Translation Front-ends ===== |
- | Forum user [[https:// | + | * Forum user [[https:// |
- | There is a [[https:// | + | |
- | Discord user Redcrafter# | + | * Discord user Redcrafter# |
- | The source code and examples are on [[https:// | + | |
Time permitting, this deserves a more complete treatment and probably a section of it's own. | Time permitting, this deserves a more complete treatment and probably a section of it's own. | ||
Line 222: | Line 220: | ||
\\ | \\ | ||
\\ | \\ | ||
- | FIXME / DELETEME | + | |
=====Syntax Highlighting in the Wiki ===== | =====Syntax Highlighting in the Wiki ===== | ||
Dokuwiki uses [[http:// | Dokuwiki uses [[http:// | ||
+ | |||
+ | Code examples can be highlighted using the `4rpl` code tag eg: | ||
+ | |||
+ | <code 4rpl> | ||
+ | # --Volcano-- 5/13/2020 12:58:29 PM | ||
+ | |||
+ | $$POSX:154 | ||
+ | $$POSZ:98 | ||
+ | $$AMT:100 | ||
+ | |||
+ | if (GetGameUpdateCount 3600 % eq0) | ||
+ | true -> | ||
+ | endif | ||
+ | |||
+ | if (< | ||
+ | @Erupt | ||
+ | endif | ||
+ | |||
+ | if (< | ||
+ | 240 -> | ||
+ | true -> | ||
+ | endif | ||
+ | |||
+ | if (< | ||
+ | @OrbsErupt | ||
+ | endif | ||
+ | |||
+ | :Erupt | ||
+ | if (< | ||
+ | do(2 -1) | ||
+ | do(2 -1) | ||
+ | AddCreeper(< | ||
+ | loop | ||
+ | loop | ||
+ | endif | ||
+ | < | ||
+ | if (< | ||
+ | false -> | ||
+ | 0 -> | ||
+ | endif | ||
+ | |||
+ | :OrbsErupt | ||
+ | V3(RandFloat 0.5 - 1 * 2 RandFloat 0.5 - 1 *) -> | ||
+ | CreateOrb(V3(154 randint(-1 2) + 15 98 randint(-1 2) +) < | ||
+ | < | ||
+ | |||
+ | :once | ||
+ | Table( " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ |