RCRPG/uBasic-4tH: Difference between revisions
Content added Content deleted
m (Bug fix) |
m (Fixed syntax highlighting.) |
||
Line 33: | Line 33: | ||
The entire program is about 450 lines. It could have been factored a bit better, agreed, but it feels more readable now. |
The entire program is about 450 lines. It could have been factored a bit better, agreed, but it feels more readable now. |
||
== |
===The code=== |
||
<lang>Dim @r(216) ' these are our rooms |
<syntaxhighlight lang="basic">Dim @r(216) ' these are our rooms |
||
i = Rnd(36) ' now place the person in a room, floor 0 |
i = Rnd(36) ' now place the person in a room, floor 0 |
||
Line 509: | Line 509: | ||
Print "Equip the sledge first. If you got one..\n" |
Print "Equip the sledge first. If you got one..\n" |
||
EndIf |
EndIf |
||
Return</ |
Return</syntaxhighlight> |