Posted: Thu Feb 25, 2010 8:57 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code
Except if he was smart enough he would realize that the other game is terrible and wouldn't have posted it at all. It always makes me wonder why some people post games that are terrible. A small percent sure, by why?
Sponsor Sponsor
Zren
Posted: Thu Feb 25, 2010 9:26 pm Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code
They probably don't know much better
@Chopper: Though it runs into a logic loop when you comment out the lines and never actually start the millionaire game...
@jdubzisyahweh: You do know about procedures and parameters right? Here's an example of the structure flow of how the game might work differently and not calling the next procedure inside itself (though this could be achieved with recursion, but it would be terribly messy depending on how its done).
Turing:
procedure doQuestion (question :string, answers :array1.. 4ofstring, correctAnswer :string) put question %Relace with sexy Font module. for i :1.. 4 put i, ") ", answers (i) endfor var usersAnswer :string get usersAnswer %Replace with ghastly GUI module stuff %Worst comes to worst, you need to submit a procedure into %The GUI button, make another procedure that changes the value %of a global variable with the value submitted into the procedure.
if usersAnswer = correctAnswer then put"COOOOOOOOOOOOOORRECT!" else put"Nope" endif end doQuestion
%The following is only an example of this procedure
%You could even break ans into 4 different string variables and change the parameters aswell. var ans :array1.. 4ofstring:=init("Canadians", "Chinese", "Americains", "Anarticains")
doQuestion ("Who's awesome?", ans, "1")
%The following code wont work properly without modification and uses stuff from the %file module.
%open file for i: 1..1%Number of questions %Change to loop and exit when statements to exit when you get a question wrong
%extract question from file into variables and throw them into the procedure
doQuestion ("Question", ans, "CorrectAnswer") endfor %close file
chopperdudes
Posted: Thu Feb 25, 2010 10:09 pm Post subject: RE:GRD 10 millionare game w/ 12.6 thousand lines of code
yeah i know it doesn't start but when i try to run a program and it's got <5 errors... i comment those out... and if it gives me more errors i just give up on it lol. but in this case it actually runs... (up to a point). and said "made only by jonathan wortner" or something... i was wonder if that code coulda been c/p'ed... or if that's him and he'd like to claim the other game to be his. lol
copthesaint
Posted: Fri Feb 26, 2010 12:21 am Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code
Euphoracle @ Wed Feb 24, 2010 wrote:
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.
Lol wrong would be a nice way of putting it.
Dont feel bad, there are many people like you. just either give up "the easy way out", Or think outside the box... and learn. Gl with whatever you choose.
Sends to each music player the information to play the song "HotNCold.Mp3" (just change this to your music file),
Tells the music player to run the song "1", and tells the music player not to terminate "0".
You Will need the files Run_Music.exe, and launcher.tu with you main program
There is also the sorce code for Run_Music.exe, but I dont think you will need to see it unless you are making an online game and need to change the port.
So really, This can be used for anything, The only problem is that you need an open window I suggest if you want music and sound effects open two (like above) and just keep them open until your main program is terminated.
Should seriously sticky that program I made... lol and... yay :/ 300 post soooo.... happy lol :p
jdubzisyahweh
Posted: Fri Feb 26, 2010 10:36 am Post subject: Re: RE:GRD 10 millionare game w/ 12.6 thousand lines of code
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...
thats because the start up grfx are MINE!!!! and i posted both
jdubzisyahweh
Posted: Fri Feb 26, 2010 11:05 am Post subject: Re: GRD 10 millionare game w/ 12.6 thousand lines of code