From efec2bde8cfba1778eefb6ae47224622e6e7e368 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Wed, 2 Mar 2016 13:50:49 +0800 Subject: [PATCH] *polished yard code. --- sample/yard/README.md | 6 ++++-- sample/yard/level.bas | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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