*polished yard code.

This commit is contained in:
paladin-t 2016-03-02 13:50:49 +08:00
parent 7d378648dc
commit efec2bde8c
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
**YARD (Yet Another RPG Dungeon)** ## YARD (Yet Another RPG Dungeon)
Copyright (C) 2016 Wang Renxin. All rights reserved. **Copyright (C) 2016 Wang Renxin. All rights reserved.**
Yet Another RPG Dungeon is a text based game. It's aimed to be a comprehensive example and or a tutorial which shows multiple concepts of MY-BASIC. Yet Another RPG Dungeon is a text based game. It's aimed to be a comprehensive example and or a tutorial which shows multiple concepts of MY-BASIC.
@ -18,6 +18,8 @@ Usage
my_basic_bin start.bas my_basic_bin start.bas
**Note:**
It requires an importing directories information if the working directory of your interpreter is `my_basic/output/`: It requires an importing directories information if the working directory of your interpreter is `my_basic/output/`:
my_basic -f ../sample/yard/ ../sample/yard/start.bas my_basic -f ../sample/yard/ ../sample/yard/start.bas

View File

@ -182,7 +182,7 @@ class level
enddef enddef
def update(ipt) def update(ipt)
if ipt = "q" then print "Bye." : end if ipt = "q" then print "Bye."; : end
if status <> game_status.playing then if status <> game_status.playing then
return false return false