RCRPG/Julia: Difference between revisions
m
Fixed syntax highlighting.
m (→Commands) |
m (Fixed syntax highlighting.) |
||
(One intermediate revision by one other user not shown) | |||
Line 1:
This [[Julia]] version of [[RCRPG]] contains two versions of the game code: one version with a text interface and a second one with a GUI interface.
===Language Idioms===
This program illustrates some of the interesting aspects of Julia:
Line 14:
* The use of @async to allow co-routine based multitasking with Channels to communicate between co-routines
==
The objective of the game is to find your way to the treasure room, which is located in the upper left of level 5
(against the dungeon level 5 corner at (1, 1, 5)), and then to exit the game by ascending above level 1.
===Commands===
Direction commands:<pre>north, south, east, west, up, down</pre>Type the first letter of these commands
Line 46:
Current room in(f)ormation: Letter f.
Aliasing: Letter l.
Help: Letter h.
===Code===
<
struct Point
Line 572:
rungame()
</syntaxhighlight>
==GUI Code==
<
#============== GUI CODE ===================#
Line 1,213:
end
rungame()</syntaxhighlight>
|