Re: [Audyssey] Bgt stuff that confuses me

2010-03-28 Thread Jayson Smith
Okay, I'll explain about functions, return values, etc. Let's take an example function that adds two numbers. This would be like you meeting some guy, and saying, From time to time I may call on you. When I do, I'll give you two numbers. I want you to add them together, and then give me

Re: [Audyssey] Bgt stuff that confuses me

2010-03-28 Thread Hayden Presley
Good analogy Jason. Best Regards, Hawyden -Original Message- From: gamers-boun...@audyssey.org [mailto:gamers-boun...@audyssey.org] On Behalf Of Jayson Smith Sent: Wednesday, March 24, 2010 2:31 PM To: Gamers Discussion list Subject: Re: [Audyssey] Bgt stuff that confuses me Okay, I'll

Re: [Audyssey] Bgt stuff that confuses me

2010-03-26 Thread Thomas Ward
Hi, I don't know where you got that idea. No, I didn't say that. My point to Dark was that you can't call a function that hasn't been defined in your script somewhere. If you recall Dark said he didn't understand why he was writing an add_numbers(() function when in the body of main he had already

Re: [Audyssey] Bgt stuff that confuses me

2010-03-25 Thread Thomas Ward
Hi Dark, I think the concept you are missing here is called scope. Variables can be declared in the local scope or the global scope. There are important differences and uses of each of these types of variables. Global variables are generally declared at the top of your program/script and are

Re: [Audyssey] Bgt stuff that confuses me

2010-03-25 Thread Thomas Ward
Hi, Actually, return statements are alloud in functions that return void. The only different is you don't return an actual value. The way you do this is like this. void main () { return; } Since I didn't pass a value or variable to the return statement it defaults to void.About the only time

Re: [Audyssey] Bgt stuff that confuses me

2010-03-25 Thread Thomas Ward
Hi Dark, Smile. Welcome to the wonderful world of resource management. Don't feel too bad as this is an issue that comes up all the time with new programmers, because they often think as you do that a number is just a number and don't understand the difference between int, float, long, short,

Re: [Audyssey] Bgt stuff that confuses me

2010-03-25 Thread Bryan Peterson
Discussion list gamers@audyssey.org Sent: Thursday, March 25, 2010 4:36 AM Subject: Re: [Audyssey] Bgt stuff that confuses me Hi Dark, Smile. Welcome to the wonderful world of resource management. Don't feel too bad as this is an issue that comes up all the time with new programmers, because

Re: [Audyssey] Bgt stuff that confuses me

2010-03-25 Thread Muhammed Deniz
, March 25, 2010 11:03 AM Subject: Re: [Audyssey] Bgt stuff that confuses me I've never understood that either, probably why I've always gotten such poor grades in math. Homer: Hey, uh, could you go across the street and get me a slice of pizza? Vender: No pizza. Only Khlav Kalash. - Original

Re: [Audyssey] Bgt stuff that confuses me

2010-03-25 Thread Andy
Hi Thom, So you're saying, then, that main has to be at the bottom of the program? Thomas Ward wrote: Hi Dark, Smile. Welcome to the wonderful world of resource management. Don't feel too bad as this is an issue that comes up all the time with new programmers, because they often think as you

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread Oriol Gómez
I'm going to try to answer your questions: 1. Void fucntions are functions that don't return anythin gI.e: No return statements allowed. 2. 3+5 in between quotes is going to be printed as such. Example: if you say alert(3+5=8); it's going to print exactly that. if you said something like.

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread dark
gamers@audyssey.org Sent: Wednesday, March 24, 2010 7:01 PM Subject: Re: [Audyssey] Bgt stuff that confuses me I'm going to try to answer your questions: 1. Void fucntions are functions that don't return anythin gI.e: No return statements allowed. 2. 3+5 in between quotes is going to be printed

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread Oriol Gómez
: Oriol Gómez ogomez@gmail.com To: Gamers Discussion list gamers@audyssey.org Sent: Wednesday, March 24, 2010 7:01 PM Subject: Re: [Audyssey] Bgt stuff that confuses me I'm going to try to answer your questions: 1. Void fucntions are functions that don't return anythin gI.e: No return

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread Philip Bennefall
- Original Message - From: Oriol Gómez ogomez@gmail.com To: Gamers Discussion list gamers@audyssey.org Sent: Wednesday, March 24, 2010 8:01 PM Subject: Re: [Audyssey] Bgt stuff that confuses me I'm going to try to answer your questions: 1. Void fucntions are functions that don't return

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread Bryan Peterson
I'm more than mildly confused about all that Dark. That could be where I'm having trouble with my current project. All I can say is I'm glad I never went in expecting this to be completely easy, otherwise I'd have been in for a nasty shock. I still have every intention of buying the Light and

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread dark
: Wednesday, March 24, 2010 8:15 PM Subject: Re: [Audyssey] Bgt stuff that confuses me I'm more than mildly confused about all that Dark. That could be where I'm having trouble with my current project. All I can say is I'm glad I never went in expecting this to be completely easy, otherwise I'd have

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread Hayden Presley
list Subject: Re: [Audyssey] Bgt stuff that confuses me My friend with the msc in computer science said his favourite book on games programming had a first chapter entitled games programming is hard! and a scond chapter ientitled games programming is bloody hard! ;D. I am finding slowly things

Re: [Audyssey] Bgt stuff that confuses me

2010-03-24 Thread Jacob Kruger
Number/variable types relate to resource efficiency etc. As in why store a number that'll never go higher than 32768 - limit for something like an Int16/short - in a variable of a much larger type, like Int64? Same principle as in why would you store a piece of paper in a full on rucksack