Author |
Message |
jdubzisyahweh
|
Posted: Wed Feb 24, 2010 11:09 am Post subject: GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
dont remember how to get music to run, pls help, see "menu" proc.
Description: |
|
Download |
Filename: |
millionare game2.1.t |
Filesize: |
428.08 KB |
Downloaded: |
309 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
chrisbrown
|
Posted: Wed Feb 24, 2010 12:36 pm Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
Quote: 12.6 thousand lines
You're doing it wrong.
|
|
|
|
|
|
Euphoracle
|
Posted: Wed Feb 24, 2010 1:03 pm Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
methodoxx @ Wed Feb 24, 2010 12:36 pm wrote: Quote: 12.6 thousand lines
You're doing it wrong.
You're doing it so wrong.
|
|
|
|
|
|
TerranceN
|
Posted: Wed Feb 24, 2010 3:33 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
I thought this kind of thing (repetitive, tedious work) was what scared many people away from programming. Either I was completely wrong, or you are one hell of an outlier.
Anyway, you should just use a text file for all the questions and answers, then you just need to make 1 version of each procedure, and just load a new question and answers each time you need to.
|
|
|
|
|
|
jdubzisyahweh
|
Posted: Thu Feb 25, 2010 11:11 am Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
i know!!!!!, just want to add music,,,, TELL ME HOW PLS
|
|
|
|
|
|
jdubzisyahweh
|
Posted: Thu Feb 25, 2010 11:12 am Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
thanx though fer the text file thing, not sure how to do that either though
|
|
|
|
|
|
jdubzisyahweh
|
Posted: Thu Feb 25, 2010 11:14 am Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
by the way, i find the tedious stuff sooooooooooooooooooooooooooo much fun!!!!
thats why i like to program
|
|
|
|
|
|
jdubzisyahweh
|
Posted: Thu Feb 25, 2010 11:15 am Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
see "menu proc", want to add music!!!!!
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
DemonWasp
|
Posted: Thu Feb 25, 2010 12:03 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
First, quadruple-posting is poor manners. Post everything in one go, or edit your last post.
Second, that "tedious work" is a terrible idea. It makes your program impossible to modify easily. If you wrote it properly, you'd have well under 500 lines, and changing something would be easy - you'd have to change it in exactly one place, not dozens scattered about your code.
Third, you need to start thinking about the properties of objects. For example, a question is an object. It has the question statement (a string), some number of answers (each of which is a string, hopefully in a list or array) and some concept of which answer is correct (probably an integer). That's what defines a question. Given that, you should be able to write a procedure which takes the question, gets the user's answer, determines whether they are correct, and responds appropriately. This shouldn't be more than 100 lines (probably about 20, more with graphics involved).
|
|
|
|
|
|
Turing_Gamer
|
Posted: Thu Feb 25, 2010 12:46 pm Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
Wow people you don't know how to play music?
Seriously, people.
Do we need to make a Tutorial about playing music in Turing?
|
|
|
|
|
|
USEC_OFFICER
|
Posted: Thu Feb 25, 2010 12:48 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
Why? It is so simple. Also you don't need to use procedures, but without the fork the music will play over the background music. (Can't play two at once.) However whenever you want the music to stop, simply play a .mp3 or similar with nothing in it.
|
|
|
|
|
|
Turing_Gamer
|
Posted: Thu Feb 25, 2010 12:50 pm Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
Or use Music.PlayFileStop
|
|
|
|
|
|
USEC_OFFICER
|
Posted: Thu Feb 25, 2010 12:52 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
There was a problem with using it or something. Check the turing help files. It's in there.
|
|
|
|
|
|
mother teresa
|
Posted: Thu Feb 25, 2010 5:22 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
hey when i try to run your game it wont allow me it says that you did not declare
f05
b1
b2
b3
|
|
|
|
|
|
chopperdudes
|
Posted: Thu Feb 25, 2010 8:50 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code |
|
|
i know it's by the same OP... but doesn't the startup graphics look... rather similar to this? http://compsci.ca/v3/viewtopic.php?p=208071&no=1#208071
u can get it to at least run if you comment out those 4 lines of code. and he claims the other one he found 2 years ago, and only upgraded the graphics...
|
|
|
|
|
|
|