diff --git a/sample/yard/README.md b/sample/yard/README.md index 0e64f7f..8bbfa9b 100644 --- a/sample/yard/README.md +++ b/sample/yard/README.md @@ -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. @@ -18,6 +18,8 @@ Usage my_basic_bin start.bas +**Note:** + 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 diff --git a/sample/yard/level.bas b/sample/yard/level.bas index 68ba276..e294a14 100644 --- a/sample/yard/level.bas +++ b/sample/yard/level.bas @@ -182,7 +182,7 @@ class level enddef def update(ipt) - if ipt = "q" then print "Bye." : end + if ipt = "q" then print "Bye."; : end if status <> game_status.playing then return false