944,059 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 4220
  • Python RSS
Oct 14th, 2006
0

text adventure programming help

Expand Post »
hi, first off I want to say that I was helped immensely by the other posts, especially the one where the one person was talking about classes. From veiwing his coding i was able to get my text adventure started. My basic questions are:

1) how do I learn the codes necessary to write a text adventure (I find very minimal help online because i use a very old I.E. on a win98 O.S. and my computer screws up sometimes before a page loads. I have the problem fixed mostly now, but feel the need to find help directed more towards what I want to create.
2)I know html, javascript, vbscript, and a little bit of perl. I already prefer Python because for some reason it lures me in, i am constantly bugged with the urge to create some really awesome program, something useful, interactive, something that looks, feels, and is cool.
So, i was hoping somebody would be kind enough to work kind of closely with me (you know, hold my hand: LOL)through the first bits of programming until i get the hang of it.

I am not looking for someone to tell me WHAT to write for my program, but someone to give me alittle bit of edge so i can figure it out and learn something.

If anyone would like to help me, (Python is frustrating the heck out of me but i'm addicted and i can't stop) my email is mruane@myway.com

thanks,
mat
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
mruane is offline Offline
76 posts
since Oct 2006
Oct 14th, 2006
0

Re: text adventure programming help

Take a look at the sticky above called "Starting Python". It does some hand holding. You learn Python best by writing code, simple at first then more complex. The idea of this forum is to ask questions when you need help. Start your thread with the proper title, this way others can read and learn too! Don't be shy, we all had to start somewhere!
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Oct 16th, 2006
0

Re: text adventure programming help

if you are stuck at something you can find inbuild help in python and you dont have to be online for this.

help()
this will open some kind of help interface

help(<something>) eg help(list)
shows all the methods and functions of list
kind of man page

if you want a GUI representation of this
pydoc -p <some free port number>
you will get a link.
copy and paste the link in the browser.
this is the most easiest way
Reputation Points: 10
Solved Threads: 1
Light Poster
JyotiC is offline Offline
26 posts
since Sep 2006
Oct 16th, 2006
0

Re: text adventure programming help

Thanks. I have a little bit of it figured out. My game currently consists of the elsewhere suggested 3x3 map. My commands work, and all, no fighting or monsters yet. My biggest problem is I got the codes to work and i don't know why they work. I feel that if i had a better understanding of why the statements do what they do, I would be able to apply them better to suit my needs. I don't fully understand cases, fucntions, defining, variables, ect. I learn best by actually doing something and seeing what results. But, all of the site i see just show me the same thing, 'hello world' and how to make python solve mathematical equations. I don't see the relevance or any way to apply it. Basically, i want to program for a living. I learned HTML but found it useless for what i wanted. Thanks for all the help though, I didn't expect such fast replies, if any at all. Sorry for any spelling errors. I am still waking up.
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
mruane is offline Offline
76 posts
since Oct 2006
Oct 17th, 2006
0

Re: text adventure programming help

Click to Expand / Collapse  Quote originally posted by mruane ...
Thanks. I have a little bit of it figured out. My game currently consists of the elsewhere suggested 3x3 map. My commands work, and all, no fighting or monsters yet. My biggest problem is I got the codes to work and i don't know why they work. I feel that if i had a better understanding of why the statements do what they do, I would be able to apply them better to suit my needs. I don't fully understand cases, fucntions, defining, variables, ect. I learn best by actually doing something and seeing what results. But, all of the site i see just show me the same thing, 'hello world' and how to make python solve mathematical equations. I don't see the relevance or any way to apply it. Basically, i want to program for a living. I learned HTML but found it useless for what i wanted. Thanks for all the help though, I didn't expect such fast replies, if any at all. Sorry for any spelling errors. I am still waking up.
hi...

visit the site http://python.org where you can see real time application of python. This site is by PSF. Where python is being used. on what all fields Python can be applied.


cheers,
kath.
Reputation Points: 19
Solved Threads: 34
Posting Whiz in Training
katharnakh is offline Offline
237 posts
since Jan 2006
Oct 17th, 2006
0

Re: text adventure programming help

hey, i am actually figuring things out slowly. Still don't understand the why's, but I know the what's. I have a question though, I plan to make my game long, and try to distribute it. How would I make it so they can save their progress. And if I wanted to use graphics in the game, however simple, how would i do that?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
mruane is offline Offline
76 posts
since Oct 2006
Oct 18th, 2006
0

Re: text adventure programming help

You could save important details of player (player, hitpoints, treasures, weapons etc.) to a file before you exit the game. Now you have to also write your code to accept any saved game as option when you start.

Tkinter that comes with Python allows graphics, another one is PIL also PyGame. Those are freee downloads.
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
bumsfeld is offline Offline
1,422 posts
since Jul 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Checking the file for existence
Next Thread in Python Forum Timeline: what are XLRDError and CompDocError?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC