LoginLogin
Might make SBS readonly: thread

Basic text adventure framework

Root / Submissions / [.]

ArkzenCreated:
As the title implies, here I will be going over a few basic text adventure frameworks. Before we go over these frameworks, I expect you to have a little bit of knowledge in SmileBASIC programming
How much?At least enough to know how to properly use variables and string like:
STRING$="Example"
, as well as keyboard input
, so if you don't then I recommend checking out a few tutorial's here on SBS or YouTube. Some tutorials that I recommend you check out are Randomous' tutorials and Petit Professer 3D's tutorials

Classic "choose your direction" style

If you just want the classic "choose your direction" framework, then I recommend something like this:
DIM DIRECTION$
PRINT "Which direction do you want to go?"
LOCATE 15,3:?"(N)orth"
LOCATE 15,7:?"(S)outh"
LOCATE 10,5:?"(W)est"
LOCATE 19,5:?"(E)ast"
INPUT DIRECTION$
IF DIRECTION=="N" THEN GOTO @ExampleN
IF DIRECTION=="S" THEN GOTO @ExampleS
IF DIRECTION=="W" THEN GOTO @ExampleW
IF DIRECTION=="E" THEN GOTO @ExampleE
This is the framework that I personally use the most, and it is also the framework I use for my game "Escape Prison".

Choose your own adventure style

For a good ole' Choose your own adventure style use this:
PRINT "Press A for (example)"
PRINT "Press B for (example2)"

@L
WAIT 1
IF BUTTON () AND #A THEN GOTO @Example
IF BUTTON () AND #B THEN GOTO @ExampleB
GOTO @L
Those were the two very basic text adventure frameworks I use, so what framework is your favorite? And if you have any feedback, suggestions, or criticisms then don't shy away from telling me them!

No posts yet (will you be the first?)