-removed sample file link from project; +added sample readme.
This commit is contained in:
parent
2226d66fc5
commit
33fa5bfab8
144
my_basic.vcproj
144
my_basic.vcproj
@ -206,150 +206,6 @@
|
|||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
|
||||||
Name="sample"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample01.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample02.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample03.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample04.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample05.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample06.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\sample\sample07.bas"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="debug|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="release|Win32"
|
|
||||||
ExcludedFromBuild="true"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
<Filter
|
||||||
Name="res"
|
Name="res"
|
||||||
>
|
>
|
||||||
|
40
sample/README.md
Normal file
40
sample/README.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
## Samples of MY-BASIC
|
||||||
|
|
||||||
|
**Copyright (C) 2011 - 2016 Wang Renxin. All rights reserved.**
|
||||||
|
|
||||||
|
This folder contains severial sample code of MY-BASIC.
|
||||||
|
|
||||||
|
### Contents
|
||||||
|
|
||||||
|
**Fundamental**
|
||||||
|
|
||||||
|
Including loop, condition, and other fundamental statements.
|
||||||
|
|
||||||
|
sample01.bas
|
||||||
|
sample02.bas
|
||||||
|
sample03.bas
|
||||||
|
sample04.bas
|
||||||
|
|
||||||
|
**Sub routine**
|
||||||
|
|
||||||
|
sample05.bas
|
||||||
|
|
||||||
|
**Prototype based class**
|
||||||
|
|
||||||
|
sample06.bas
|
||||||
|
|
||||||
|
**A Brainfuck interpreter in MY-BASIC**
|
||||||
|
|
||||||
|
sample07.bas
|
||||||
|
|
||||||
|
**YARD (Yet Another RPG Dungeon)**
|
||||||
|
|
||||||
|
yard/entity.bas
|
||||||
|
yard/goal.bas
|
||||||
|
yard/level.bas
|
||||||
|
yard/map.bas
|
||||||
|
yard/monster.bas
|
||||||
|
yard/npc.bas
|
||||||
|
yard/player.bas
|
||||||
|
yard/start.bas
|
||||||
|
yard/utils.bas
|
@ -4,21 +4,21 @@
|
|||||||
|
|
||||||
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.
|
||||||
|
|
||||||
Usage
|
### Usage
|
||||||
|
|
||||||
**Windows:**
|
**Windows**
|
||||||
|
|
||||||
my_basic start.bas
|
my_basic start.bas
|
||||||
|
|
||||||
**OS X:**
|
**OS X**
|
||||||
|
|
||||||
my_basic_mac start.bas
|
my_basic_mac start.bas
|
||||||
|
|
||||||
**Others:**
|
**Others**
|
||||||
|
|
||||||
my_basic_bin start.bas
|
my_basic_bin start.bas
|
||||||
|
|
||||||
**Note:**
|
**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/`:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user