Weekly Qbasic and Qb64 Lesson Topics
October 12, 2024, 06:06:39 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

Text adventure , games

Pages: [1]
  Print  
Author Topic: Text adventure , games  (Read 2038 times)
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« on: March 22, 2012, 02:40:48 pm »

 In writeing a text adventure, there dose not seem to be much on this, for qb64, however,
the code language , is not really that important, if you look at this you will see there is a lot involved n writeing a text adventure,  I think to start with this is the best place to start,.
TEXT ADVENTURE   .
 As in any program or game, the first thing needed is a written outline or description, the general idea, what the goals are, etc,.. guess in a text adventure , the story needs to be written first, then the code and images, or animations, accordingly , to flow , in a order as the story progresses.
 For now that is all I have.
Report Spam   Logged

Share on Facebook Share on Twitter

Axlyon
official TAD aficionado
Newbie
*
Posts: 6


Machiner of the e!


« Reply #1 on: March 22, 2012, 04:12:52 pm »

I guess in a text adventure , the story needs to be written first, then the code and images, or animations, accordingly , to flow , in a order as the story progresses.
 For now that is all I have.

text adventures (TADs or IF) are usually just a console window with an input, and a description of the area, weapon, person, etc. no graphics (unless TAD GUI format is used) are typically included
Report Spam   Logged

"Do or do not, there is no try"
Yoda in: Star Wars V The Empire Strikes Back
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #2 on: March 23, 2012, 02:33:25 am »

Ok, thanks on explaining that, I saw on qb64.net, there is some input in the thread you started, unfortunately there still is not much on tutorials, specific  for qb64, and doing this with qb64.  But it can be done,..I am sure. I am sorry I can't help much with code,
   And right now it is really late,..just wanted to let you know I read your reply,..I am not sure what more to say at the moment. In the next few days, I will see if I can come up with anything that may help. Or hopefuly maybe some one will add some "demos" to this.
from garry
Report Spam   Logged

Axlyon
official TAD aficionado
Newbie
*
Posts: 6


Machiner of the e!


« Reply #3 on: March 23, 2012, 10:42:08 am »

thanks for that. i'll keep looking, maybe i can find something
Report Spam   Logged

"Do or do not, there is no try"
Yoda in: Star Wars V The Empire Strikes Back
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #4 on: March 23, 2012, 01:25:17 pm »

A little off topic, but sort of relevent, What Os (operating system) are you using ?
 From what I saw when I did a google search, on TADS or IF  there seems to be a lot, but written for windows, I use Linux, there also are many for Linux, but none, so far that I saw, are done with qb64, -- Galeon is your best source for advice, and he is usually eager to see new stuff developed with qb64, but often he is real busy, but it is kind of looking like you may need to learn how to create the TAD, for qb64 and with qb64, however with your thread also at qb64.net, some one may come up with something, too, there have been a few working on game engines, Unseen s GDK, but most of that is some pretty advanced stuff,  The other option, if you find any using c++, and the source is available, someone on qb64.net, may know how to change it over to qb64, qbasic,..there are a few up to date on c++,..
 Have you done any programs with qb64, even just some kind of simple, "hello world" demo, ?   Most of the qbasic tutorials can be applied to qb64,  Creating a console window, with input, is pretty advanced , but there are many examples, more toward, book keeping, or filling out some kind of form, that sort of thing, but some could probably be modified , for a text adventure I have to run now, yea but thats what it takes, lots of searching,..
from Garry
Report Spam   Logged

GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #5 on: March 23, 2012, 05:54:50 pm »

 This will be the start of a text adventure demo/tutorial,
 a very simple story,  You are a rancher, and your cows are in the barn, you need to go into the barn and , move them out, into the field. Once this is accomplished and the cows are in the field, if there is still interest, we can go on to the next "chapter",..Any ideas on this are welcome too, sorry I am not familiar with Zork, enough to use that as a theme, but also, I am not even close to something that advanced.
 I do have this little bit of code, but it dose not exactly work like I would want, there is a problem with how the "choice$" and the input is, but I am not sure what is needed to correct it,..
Code:
PRINT "Barn"
barn:
INPUT "You're standing in a field,You see a barn. What would you like to do"; choice$
IF choice$ = "barn" THEN GOTO 1 ELSE PRINT "this is not a choice"
1:
PRINT "this is the barn"

 
If the choice "barn" is typed in, it dose display correctly "this is the barn", how ever if something else is typed in, it displays both, "this is not a choice" and "this is the barn",..it should only display "this is not a choice",  then we could go on to adding some more, as to what other choice is available, or returning to the first choice.
---------------------------------------
 If you are more advanced then this, then it should be easy to "fix", if you don't know how to correct it (like me), then we have a long ways to go, before we start make a TADs or any kind of consoles,..but thats ok , it takes time.
 The other thing is, if anyone that is even a litte more advanced, can solve this, PLEASE! post the solution, so we can move on, as it goes, it should get more interesting,..I HOPE !
from Garry
P.S. later I will use the wiki, or what ever resources, to solve it, but that may take even more time,  Maybe this should have been started in Lessons, but that dose not matter that much,
thanks
« Last Edit: March 23, 2012, 06:03:56 pm by GarrisonRicketson » Report Spam   Logged

Axlyon
official TAD aficionado
Newbie
*
Posts: 6


Machiner of the e!


« Reply #6 on: March 28, 2012, 11:55:44 am »

i use windows 7 and am trying to find a disc for XP so i can have a VM
yes, i completed the hello world (twice) and a few very basic programs. as for the rest i want to learn to code with a text adventure
« Last Edit: March 28, 2012, 12:04:53 pm by Axlyon » Report Spam   Logged

"Do or do not, there is no try"
Yoda in: Star Wars V The Empire Strikes Back
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #7 on: March 28, 2012, 09:30:46 pm »

i use windows 7 and am trying to find a disc for XP so i can have a VM
yes, i completed the hello world (twice) and a few very basic programs. as for the rest i want to learn to code with a text adventure
As a matter of fact, with windows XP, and all MS stuff, you probably know, but it is copyrighted, and they do "frown" on that, also SMF for free, dose not allow that kind of thing.  I saw your request looking for windows 3.5 ( I think it was). 
 But anyway, well "hello world", is a start, that is the first thing needed, to display the text,
then with some INPUT input strings, and output, and the goto ,..one can get a text adventure going,  I had been doing some more on this, but  still have not come up with much,
 I will post something, as a demo, as soon as I can, did you see, ? http://weeklyqbasicandqb64lesson.smfforfree.com/index.php/topic,326.msg1564.html#msg1564 I posted in this same category, "A better Demo", thats about as far as I got, but, you should be able to use that, and study it closely, then see if you can add more things to it,..this is what gets, tricky, and with most any program, as you start adding more and more things, sometimes, (often), because it is getting more complex,
 they don't quite work the same as before,..that's where SUBS start to come in, often when you use the same commands, over and over, it is better to have the routines in a  SUB Or see this:
SUBs and FUNCTIONS I guess for now,  This should give you a lot to go over, NOTE:
 If you do have trouble, copying/pasteing the code at the wiki, because of FireFox, or any other reason, I can copy, paste it here, and check it, before I actually post it,..The poroblem with firefox though, will still give you trouble if you try to copy and paste from here,..or any other website, I have the same problem, if and when I use Fire Fox, which is not very much, but fire fox sometimes is a little faster for "browseing"
from Garry
« Last Edit: March 28, 2012, 09:53:37 pm by GarrisonRicketson » Report Spam   Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy