From tward1978 at earthlink.net Mon May 1 20:02:51 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 01 May 2006 15:02:51 -0400 Subject: [AGDev-newbies] I am on. Message-ID: <44565B5B.9030307@earthlink.net> Hi, Subject says it all. I am on. Anyone else on yet? From matthew at agrip.org.uk Mon May 1 20:15:26 2006 From: matthew at agrip.org.uk (Matthew T. Atkinson) Date: Mon, 01 May 2006 20:15:26 +0100 Subject: [AGDev-newbies] I am on. In-Reply-To: <44565B5B.9030307@earthlink.net> References: <44565B5B.9030307@earthlink.net> Message-ID: <1146510926.2893.82.camel@localhost> I am also present :-) -- Matthew T. Atkinson From raul at audyssey.org Mon May 1 20:20:51 2006 From: raul at audyssey.org (Raul A. Gallegos) Date: Mon, 1 May 2006 13:20:51 -0600 Subject: [AGDev-newbies] I am on. In-Reply-To: <44565B5B.9030307@earthlink.net> References: <44565B5B.9030307@earthlink.net> Message-ID: <20060501192051.GH22283@asmodean.asmotec.com> I am. -- Shall we make a new rule of life from tonight: always to try to be a little kinder than is necessary? -- J.M. Barrie Raul A. Gallegos ... IliwSsmc From tward1978 at earthlink.net Mon May 1 23:09:54 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 01 May 2006 18:09:54 -0400 Subject: [AGDev-newbies] I am on. In-Reply-To: <20060501192051.GH22283@asmodean.asmotec.com> References: <44565B5B.9030307@earthlink.net> <20060501192051.GH22283@asmodean.asmotec.com> Message-ID: <44568732.7030006@earthlink.net> Hi, Well, all it looks like we need is Sean if he still wants to mod. After that we can get to work on the list. From seanpm at triad.rr.com Tue May 2 01:39:49 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Mon, 1 May 2006 20:39:49 -0400 Subject: [AGDev-newbies] I am on. In-Reply-To: <44568732.7030006@earthlink.net> Message-ID: <003301c66d80$fb73ce70$0505a8c0@music17> hi, I am here! -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf of Thomas Ward Sent: Monday, May 01, 2006 6:10 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] I am on. Hi, Well, all it looks like we need is Sean if he still wants to mod. After that we can get to work on the list. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Tue May 2 02:36:26 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 01 May 2006 21:36:26 -0400 Subject: [AGDev-newbies] I am on. In-Reply-To: <003301c66d80$fb73ce70$0505a8c0@music17> References: <003301c66d80$fb73ce70$0505a8c0@music17> Message-ID: <4456B79A.8090006@earthlink.net> That's cooooooooool! Let's have those moderator passwords Matthew. Grin. Sean Mealin wrote: > hi, > I am here! > From rbennett at southlink.us Thu May 4 00:27:53 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 3 May 2006 19:27:53 -0400 Subject: [AGDev-newbies] Fw: [Audyssey] wav files Message-ID: <01c401c66f09$34088440$c9ad1c42@gadolum18z9hrn> ----- Original Message ----- From: "Thomas Ward" To: "Gamers Discussion list" Sent: Wednesday, May 03, 2006 7:04 PM Subject: Re: [Audyssey] wav files > Hi Richard, > I'll look in my huge library of effects and see what I can find. > > > Richard Bennett wrote: >> I don't know if this will cause this thread to go off list, but >> The game is going to be a wizard fighting game between 2 wizards so I >> need >> the following type of sounds: >> 1. spell casting >> 2. sound of something hitting brick >> 3. explosion sound >> 4. anything that may sound like this type of stuff. >> If you have them then my partner and myself will greatly appreciate it. >> You >> can send them to: >> rbennett at southlink.us >> P.S. I do plan to one day develop games on the full scale. >> BEAN >> >> >> _______________________________________________ >> Gamers mailing list .. Gamers at audyssey.org >> To unsubscribe send E-mail to Gamers-unsubscribe at audyssey.org. You can >> visit >> http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make >> any subscription changes via the web. >> >> >> > > > _______________________________________________ > Gamers mailing list .. Gamers at audyssey.org > To unsubscribe send E-mail to Gamers-unsubscribe at audyssey.org. You can > visit > http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make > any subscription changes via the web. > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.5.2/330 - Release Date: 5/3/2006 > > From tward1978 at earthlink.net Thu May 4 01:32:16 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 03 May 2006 20:32:16 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <01c401c66f09$34088440$c9ad1c42@gadolum18z9hrn> References: <01c401c66f09$34088440$c9ad1c42@gadolum18z9hrn> Message-ID: <44594B90.2060402@earthlink.net> Hi Richard, One place where you can typically get sound effects for games pretty cheap is http://www.audiosparx.com Another place I use but can be quite expensive is http://www.sounddogs.com you might want to look in to them some time when working on games. From seanpm at triad.rr.com Thu May 4 01:39:34 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Wed, 3 May 2006 20:39:34 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <44594B90.2060402@earthlink.net> Message-ID: <005901c66f13$3b9af2b0$0505a8c0@music17> Hi, Tom.... would you mind sending an example on how to lode and play a wav file in to a C++ program? I would love how to see how. Thanks! -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf of Thomas Ward Sent: Wednesday, May 03, 2006 8:32 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] wav files Hi Richard, One place where you can typically get sound effects for games pretty cheap is http://www.audiosparx.com Another place I use but can be quite expensive is http://www.sounddogs.com you might want to look in to them some time when working on games. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Thu May 4 02:44:24 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 3 May 2006 21:44:24 -0400 Subject: [AGDev-newbies] wav files References: <01c401c66f09$34088440$c9ad1c42@gadolum18z9hrn> <44594B90.2060402@earthlink.net> Message-ID: <01ed01c66f1c$45f3a280$c9ad1c42@gadolum18z9hrn> I will check into those when programming sounds to a game that I plan to either sell or give away for free. But since this is a project for a class I am leaning towards free, lol. I had checked out that audiosparks, but could never find pricing info. I was looking for that sound file of Michael Buffer saying "For the thousands in attendance, and the millions viewing around the world, Are you ready, Are you ready, Lllllllletttttttttttttttttssssssssssssss get ready to RUMBLE!" to have when the game first starts since it is going to be a simple fighting game BEAN From tward1978 at earthlink.net Thu May 4 04:43:25 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 03 May 2006 23:43:25 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <01ed01c66f1c$45f3a280$c9ad1c42@gadolum18z9hrn> References: <01c401c66f09$34088440$c9ad1c42@gadolum18z9hrn> <44594B90.2060402@earthlink.net> <01ed01c66f1c$45f3a280$c9ad1c42@gadolum18z9hrn> Message-ID: <4459785D.6050402@earthlink.net> Hi Richard, I do have some magical effects in 44100 KHZ mono. I have effects for Alterations, Illusions, Mysticism, Fire, Conjurations, and lightning. Do any of these sound interesting for your project? Richard Bennett wrote: > I will check into those when programming sounds to a game that I plan > to either sell or give away for free. But since this is a project for > a class I am leaning towards free, lol. I had checked out that > audiosparks, but could never find pricing info. I was looking for that > sound file of Michael Buffer saying > "For the thousands in attendance, and the millions viewing around the > world, Are you ready, Are you ready, > Lllllllletttttttttttttttttssssssssssssss get ready to RUMBLE!" > to have when the game first starts since it is going to be a simple > fighting game > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Thu May 4 04:46:28 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 03 May 2006 23:46:28 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <005901c66f13$3b9af2b0$0505a8c0@music17> References: <005901c66f13$3b9af2b0$0505a8c0@music17> Message-ID: <44597914.6070104@earthlink.net> Hi Sean, Are we talking about a example of the actual loading of a wav file and playing of it or an entire program that does it. If we are talking a full program complete with say a dialog box that would take quite a bit longer than just showing you which headers you need, how to acquire the sound card, and how to actually load and play the sound. Smile. Sean Mealin wrote: > Hi, > Tom.... would you mind sending an example on how to lode and play a wav file > in to a C++ program? > I would love how to see how. > Thanks! > From richard at audiogames.net Thu May 4 09:03:19 2006 From: richard at audiogames.net (AudioGames.net) Date: Thu, 4 May 2006 10:03:19 +0200 Subject: [AGDev-newbies] Testing Message-ID: <00bf01c66f51$34d1b2f0$8e8b2ed5@Delletje> Hello World ;) Richard www.audiogames.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From simodowl at clara.co.uk Thu May 4 10:26:09 2006 From: simodowl at clara.co.uk (simon.dowling) Date: Thu, 4 May 2006 10:26:09 +0100 Subject: [AGDev-newbies] Testing References: <00bf01c66f51$34d1b2f0$8e8b2ed5@Delletje> Message-ID: <01f701c66f5c$c7428e60$d7d38856@simon> did you use a game engine to write that? lol. or may be c++? seriously though I think we will get a lot from this list! ----- Original Message ----- From: AudioGames.net To: agdev-newbies at lists.agdev.org Sent: Thursday, May 04, 2006 9:03 AM Subject: [AGDev-newbies] Testing Hello World ;) Richard www.audiogames.net __________ NOD32 1.1519 (20060504) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com ------------------------------------------------------------------------------ _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies __________ NOD32 1.1519 (20060504) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From simodowl at clara.co.uk Thu May 4 11:12:45 2006 From: simodowl at clara.co.uk (simon.dowling) Date: Thu, 4 May 2006 11:12:45 +0100 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net> Message-ID: <022f01c66f63$49ed4610$d7d38856@simon> just an example of the headers how to hook in to the sound cards etc. I am also wanting to know how to loop a file. ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Thursday, May 04, 2006 4:46 AM Subject: Re: [AGDev-newbies] wav files > Hi Sean, > Are we talking about a example of the actual loading of a wav file and > playing of it or an entire program that does it. > If we are talking a full program complete with say a dialog box that would > take quite a bit longer than just showing you which headers you need, how > to acquire the sound card, and how to actually load and play the sound. > Smile. > > > Sean Mealin wrote: >> Hi, >> Tom.... would you mind sending an example on how to lode and play a wav >> file >> in to a C++ program? >> I would love how to see how. Thanks! >> > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > > > __________ NOD32 1.1519 (20060504) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > From simodowl at clara.co.uk Thu May 4 12:00:23 2006 From: simodowl at clara.co.uk (simon.dowling) Date: Thu, 4 May 2006 12:00:23 +0100 Subject: [AGDev-newbies] engines and code. Message-ID: <024e01c66f69$f1640130$d7d38856@simon> ok I have the dev-c++ engine installed and am wondering how long an asci file will take to compile. I tried to profile I it, but it said something about the project hadn't been rebuilt and compiled did want to do this now? I hit the ok button, and it is just sitting there. the code itself is about 10000 lines long, and its an asc file. is there something happening, or is there something I need to do. will it indeed compile this kind of file. it was originally written in basic, and I converted it to aski. any thoughts? many thanks. Simon owner of the winMX mailing list. to join, send a blank email to: winmxfortheblind-subscribe at smartgroups.com msn simodowl at hotmail.com skype: slifinger -------------- next part -------------- An HTML attachment was scrubbed... URL: From seanpm at triad.rr.com Thu May 4 12:53:39 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Thu, 4 May 2006 07:53:39 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <44597914.6070104@earthlink.net> Message-ID: <00b501c66f71$625fa220$0505a8c0@music17> Hi, Just an example that would show how to play a wav file; headers, getting the sound card and stuff like that. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf of Thomas Ward Sent: Wednesday, May 03, 2006 11:46 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] wav files Hi Sean, Are we talking about a example of the actual loading of a wav file and playing of it or an entire program that does it. If we are talking a full program complete with say a dialog box that would take quite a bit longer than just showing you which headers you need, how to acquire the sound card, and how to actually load and play the sound. Smile. Sean Mealin wrote: > Hi, > Tom.... would you mind sending an example on how to lode and play a wav file > in to a C++ program? > I would love how to see how. > Thanks! > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From matthew at agrip.org.uk Thu May 4 15:21:28 2006 From: matthew at agrip.org.uk (Matthew T. Atkinson) Date: Thu, 04 May 2006 15:21:28 +0100 Subject: [AGDev-newbies] wav files In-Reply-To: <005901c66f13$3b9af2b0$0505a8c0@music17> References: <005901c66f13$3b9af2b0$0505a8c0@music17> Message-ID: <1146752489.16806.14.camel@localhost> It seemed there could be such a tutorial on the Wiki: http://www.agdev.org/InterestGroupDirectx/CppTutorials/DirectSound8 However the page has not been created yet (just a link to it), so wehn this is found out, please either update the wiki if you'rea member or if not then one of us can copy and paste the e-mail into it :-). You all might like to check out these: http://www.agdev.org/CategoryInterestGroup best regards, -- Matthew T. Atkinson From simodowl at clara.co.uk Thu May 4 16:21:52 2006 From: simodowl at clara.co.uk (simon.dowling) Date: Thu, 4 May 2006 16:21:52 +0100 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17> <1146752489.16806.14.camel@localhost> Message-ID: <003c01c66f8e$790ad4f0$8c229a51@simon> are cheers for that, yes in deed there is a tut on 3d sound, curticy of Justin daubenmire, which I forgot he done some fantastic tutorials which I got some where and prompted me to take a look at the resource centre at: www.bscgames.com I can feel a long night ahead and lots of coffee is required lol. thanks again! ----- Original Message ----- From: "Matthew T. Atkinson" To: "Friendly informal list for those new to AG development" Sent: Thursday, May 04, 2006 3:21 PM Subject: RE: [AGDev-newbies] wav files > It seemed there could be such a tutorial on the Wiki: > > http://www.agdev.org/InterestGroupDirectx/CppTutorials/DirectSound8 > > However the page has not been created yet (just a link to it), so wehn > this is found out, please either update the wiki if you'rea member or if > not then one of us can copy and paste the e-mail into it :-). > > You all might like to check out these: > > http://www.agdev.org/CategoryInterestGroup > > best regards, > > > -- > Matthew T. Atkinson > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > > > __________ NOD32 1.1520 (20060504) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > From tward1978 at earthlink.net Thu May 4 16:36:57 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 11:36:57 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <022f01c66f63$49ed4610$d7d38856@simon> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net> <022f01c66f63$49ed4610$d7d38856@simon> Message-ID: <445A1F99.8070900@earthlink.net> Ok. Well, that is not to bad. I'll try and have something quick to show you in C++ how to do it although the DirectX SDK will give you mainly the same information. As for looping a file it is real easy. it is simply a matter of passing the proper flag to the play method. simon.dowling wrote: > just an example of the headers how to hook in to the sound cards etc. > I am also wanting to know how to loop a file. From tward1978 at earthlink.net Thu May 4 16:43:13 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 11:43:13 -0400 Subject: [AGDev-newbies] engines and code. In-Reply-To: <024e01c66f69$f1640130$d7d38856@simon> References: <024e01c66f69$f1640130$d7d38856@simon> Message-ID: <445A2111.8030705@earthlink.net> Hi Simon. Dev-C++ is a compiler not an engine. What do you mean by an asc file? Do you mean ascii text? All source code files should be in ascii text format for compilers regardless of compiler and language. However, there are extention convensions for each language like *.c for a c language file, *.h for a C/C++ header, *.cs for C# language file, etc. simon.dowling wrote: > ok I have the dev-c++ engine installed and am wondering how long an > asci file will take to compile. I tried to profile I it, but it said > something about the project hadn't been rebuilt and compiled did want > to do this now? I hit the ok button, and it is just sitting there. > the code itself is about 10000 lines long, and its an asc file. > is there something happening, or is there something I need to do. > will it indeed compile this kind of file. it was originally written in > basic, and I converted it to aski. > any thoughts? > many thanks. > Simon > owner of the winMX mailing list. > to join, send a blank email to: > winmxfortheblind-subscribe at smartgroups.com > > msn simodowl at hotmail.com > skype: slifinger > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From tward1978 at earthlink.net Thu May 4 16:53:31 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 11:53:31 -0400 Subject: [AGDev-newbies] engines and code. In-Reply-To: <024e01c66f69$f1640130$d7d38856@simon> References: <024e01c66f69$f1640130$d7d38856@simon> Message-ID: <445A237B.3060904@earthlink.net> Hi. Speaking of game engines one thing we may wish to do while we are all together is to create our own open source game engine for producing games. Of course we would have to vote on a language and specifications for the engine etc. However, by having a comunity engine using a good clear oop design all of us including future developers could drop the engine files in to any game project, and have the power of audio, game math, base creature classes, all to start with. Anyone interested in such a project? If we are going to do this though everyone would have to obtain certain books on the desired language and study up on it, and we could run this list more as a training class rather than a normal discussion list. From tward1978 at earthlink.net Thu May 4 17:02:03 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 12:02:03 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <1146752489.16806.14.camel@localhost> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <1146752489.16806.14.camel@localhost> Message-ID: <445A257B.3040403@earthlink.net> Hi, Matthew. Thanks for reminding me of that page. I converted Justin's VB tootorials to C#, but forgot about converting them to C++. Guess I should try and do that this weekend. This would be the thing to do as everyone can see the full code of the program, and it would be on the wiki for all to use. Matthew T. Atkinson wrote: > It seemed there could be such a tutorial on the Wiki: > > http://www.agdev.org/InterestGroupDirectx/CppTutorials/DirectSound8 > > However the page has not been created yet (just a link to it), so wehn > this is found out, please either update the wiki if you'rea member or if > not then one of us can copy and paste the e-mail into it :-). > > You all might like to check out these: > > http://www.agdev.org/CategoryInterestGroup > > best regards, > > > From tward1978 at earthlink.net Thu May 4 21:09:55 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 16:09:55 -0400 Subject: [AGDev-newbies] DirectX Tutorials. In-Reply-To: <1146752489.16806.14.camel@localhost> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <1146752489.16806.14.camel@localhost> Message-ID: <445A5F93.2030904@earthlink.net> Hi list. Ok, this weekend I am going to sit down and begin working on some DirectX Tutorials for the AGDev wiki. One thing I want to know in advance is what language you want the tutorials in. I know there is several of you who are learning C++, but C# is also a good language to learn for game programming. So I am prepared to write up a turtorial in either C++ or C#. Which would you like? While I could do both I don't have the time at the moment to write up both tutorials so I'd like to do one or the other depending on popular demand. Thanks. From seanpm at triad.rr.com Thu May 4 21:57:06 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Thu, 4 May 2006 16:57:06 -0400 Subject: [AGDev-newbies] engines and code. In-Reply-To: <445A237B.3060904@earthlink.net> Message-ID: <002601c66fbd$4dca6650$0505a8c0@music17> That sounds like a good idea..... What do you think good people on the list? -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Thursday, May 04, 2006 11:54 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] engines and code. Hi. Speaking of game engines one thing we may wish to do while we are all together is to create our own open source game engine for producing games. Of course we would have to vote on a language and specifications for the engine etc. However, by having a comunity engine using a good clear oop design all of us including future developers could drop the engine files in to any game project, and have the power of audio, game math, base creature classes, all to start with. Anyone interested in such a project? If we are going to do this though everyone would have to obtain certain books on the desired language and study up on it, and we could run this list more as a training class rather than a normal discussion list. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Thu May 4 22:26:15 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 17:26:15 -0400 Subject: [AGDev-newbies] wav files References: <01c401c66f09$34088440$c9ad1c42@gadolum18z9hrn> <44594B90.2060402@earthlink.net><01ed01c66f1c$45f3a280$c9ad1c42@gadolum18z9hrn> <4459785D.6050402@earthlink.net> Message-ID: <002201c66fc1$603d01e0$c9ad1c42@gadolum18z9hrn> hey Tom, they all sound interesting to me. I think they will all come in handy, and if my partner and I decide to use them, we will definitely give you the proper credit you deserve. I am much apprecinated with your help on this. If you want a copy when the game is done, I will send it to you just so that you can check out our work, not that it will be the best out there, but it will be something. BEAN From rbennett at southlink.us Thu May 4 22:28:06 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 17:28:06 -0400 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net> Message-ID: <002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> hey Tom, since we are talking about wav files and playing them, what are you using and how? I am not talking about a dialogue box, just to play a sound. I am using the allegro.h header file to accomplish this. BEAN From rbennett at southlink.us Thu May 4 22:51:10 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 17:51:10 -0400 Subject: [AGDev-newbies] wav files References: <00b501c66f71$625fa220$0505a8c0@music17> Message-ID: <009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> what language are you wanting to use? If using C++ what library are you going to use? If allegro, I can help you with it, I have one on my jump drive right now, just let me know. BEAN From rbennett at southlink.us Thu May 4 23:11:08 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 18:11:08 -0400 Subject: [AGDev-newbies] engines and code. References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net> Message-ID: <00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> I'm interested in this. Although I don't know much about oop, I just don't understand it still, but I do have examples of oop design from the game book I learned C++ from. BEAN From rbennett at southlink.us Thu May 4 23:12:05 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 18:12:05 -0400 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17><1146752489.16806.14.camel@localhost> <445A257B.3040403@earthlink.net> Message-ID: <00fc01c66fc7$c7b12c10$c9ad1c42@gadolum18z9hrn> great idea Tom. I would download it or whatever to have as sort of a reference. BEAN From tward1978 at earthlink.net Thu May 4 23:20:12 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 18:20:12 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net> <002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> Message-ID: <445A7E1C.7090901@earthlink.net> Hi Richard. I have a custome audio class written in C#.net I wrote to access Microsoft.DirectX.DirectSound.dll 9.0C. The custom class I use is quite portable to any game engine written in C#.net. So that is why I wrote it that way. One of the things I like about it this makes loading and playing sound effects a breeze. Here is an example of how my class works in a C#.net app. // Load sound effects. public void LoadSounds() { // Load sound 1. g_audio.SoundOpen(1, @"Sounds\Gun_Fire.wav"); } // Start playing and looping the gun fire. public void StartSounds() { // Start gun fire. g_audio.SoundPlay1, true); } The SoundOpen and SoundPlay methods are a part of my Audio class in all my engines. All you have to pass is the number of the sound usually by a variable, and the file name or in the case of SoundPlay weather looping is true or false. The same can be done for a C++ program if someone wishes to take the time to program such a C++ class for DirectSound 9. The reason for doing this over directly accessing DirectX should be apparent. You don't have to recode the same thing over and over, and since you are giving each buffer a number id rather than a name like g_dsGunFire you can name that buffer whatever you want per game, and actually rename it mid game. Anyway, that is how I do it. From rbennett at southlink.us Thu May 4 23:30:47 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 18:30:47 -0400 Subject: [AGDev-newbies] DirectX Tutorials. References: <005901c66f13$3b9af2b0$0505a8c0@music17><1146752489.16806.14.camel@localhost> <445A5F93.2030904@earthlink.net> Message-ID: <014901c66fca$668866d0$c9ad1c42@gadolum18z9hrn> Hey Tom, my vote goes for C++. Since that is what I am learning in. BEAN From tward1978 at earthlink.net Thu May 4 23:31:16 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 18:31:16 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> References: <00b501c66f71$625fa220$0505a8c0@music17> <009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> Message-ID: <445A80B4.1090207@earthlink.net> Hi Richard. Can you tell me where I can look at allegro. That is an API I honestly have not heard about before until you braught it up. Most game developers, especially Windows developers, use Microsoft DirectX. Richard Bennett wrote: > what language are you wanting to use? If using C++ what library are > you going to use? If allegro, I can help you with it, I have one on my > jump drive right now, just let me know. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Thu May 4 23:40:10 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 18:40:10 -0400 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net><002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> <445A7E1C.7090901@earthlink.net> Message-ID: <01a901c66fcb$b4305b30$c9ad1c42@gadolum18z9hrn> sounds alot easier that the way allegro does it so far. I haven't played around with allegro much cause of having to do the other chapters in the book, but I think you are going to have to type it in everytime. But when I find out, I will post it out here and let ya'll know. Also, is C# really that simple sounding? It sounds alot easier than C++, maybe something that I check into after this class. BEAN From rbennett at southlink.us Thu May 4 23:44:23 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 18:44:23 -0400 Subject: [AGDev-newbies] wav files References: <00b501c66f71$625fa220$0505a8c0@music17><009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> <445A80B4.1090207@earthlink.net> Message-ID: <01bf01c66fcc$4af37ac0$c9ad1c42@gadolum18z9hrn> I got it from the devCpp packet download. But I want to think they have a homepage. Um... I think it is www.allegro.com. I have it installed, through DevCpp, but I think I also have it on CD-rom that came with my programming book. It is kinda outdated(least I think so, I didn't check the version) but if you want it, I can send it to you privately. Let me know. It will allow you to play sounds, draw graphics, test your computers hardware specs, and other such things. I really like it so far. BEAN From tward1978 at earthlink.net Fri May 5 00:25:09 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 19:25:09 -0400 Subject: [AGDev-newbies] OOP was engines and code. In-Reply-To: <00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net> <00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> Message-ID: <445A8D55.9090004@earthlink.net> Hi Richard and all. Object oriented programming, (OOP,) is very simple to understand when you think of it outside of a programming book. Programming books do a poor job of explaining it so I will attempt to capture the idea for you here. Object Oriented Programming is all about things called objects. Everything in our world can be thought as an object. The TV, the dog sleeping on the couch, and even the couch itself is an object. However, you need to code in a way to describe and interact with that object, and break those objects down in to special instances of it. by calling it by it's name. The dog is no longer just a dog, but the dog is named Princess. So Princess is an instance of dog. An instance is a specific object. So in games you are going to want to create objects to populate your game world such as monsters, walls, doors, weapons, lava pits, etc right? Of course you want to and here is how it is done. You start with a class. A class is what holds all the data for that kind of object. Even nicer classes can be inherited so if there is an object that shares something with another object it can inherit properties of that other object's base class. Let's start looking at how this is done in C++. Make sure say all punctuation is on in your screen reader. // Creature class. // Base class for creating creatures. class Creature { // Private area for class // variables. private: int iHealth; float fX; float fY; float fZ; // Public class // method prototypes. public: void AddHealth(int); int GetHealth(); void SetHealth(int); void SubHealth(int); void SetLocation(float, float, float); float GetX(); float GetY(); float GetZ(); }; For purposes of this example I will skip the portion of code that actually does the adding and subtracting of health, as well as setting and getting location. Just assume this class was fully working. We can do some cool stuff with it. We can add on to this class to make all kinds of creatures that share health, as well as location. Of course, if this was a real game we would be adding all kinds of stuff like number of lives, scores, whatever. Let's now expand the Creature class to be say a dragon just for fun. // Class dragon. // Class of creature // with fire breathing abilities. class Dragon: Creature { // Dragon private variables. private: int iFire; // Dragon public // method prototypes. public: void AddFire(int); int GetFire(); void SetFire(int); void SubFire(int); }; Now, we have expanded the creature class to be a dragon. If we wanted we could create Orks, Humans, and other types of creatures and share the Creature class between them. Since this is not a real game I am not going to define them all. However, where oop really shines is if you were to place the Creature class in Creature.h and Dragon class in Dragon.h you could in theory could copy the files, paste them in to new projects, and use them forever over and over again. Now, that you have the classes you need to create an object of a dragon, and give it a name. Just for fun I'll name him Puff. // Include class headers. #include "Dragon.h" // Global dragon objects. Dragon g_Puff; // Create a new instance of all game objects. void CreateObjects() { g_puff = new Dragon(); } At this point we have a object, something we can work with, a dragon and it's instance is named g_puff. Let's do something with this new dragon. // Create Puff // the magic dragon. void CreatePuff() { g_puff.SetHealth(100); g_puff.SetFire(100); g_puff.SetLocation(61, 55, 33); } There you go. If you were following along you created a base class of creature, expanded it to a dragon, created an object, named that instance puff, and added health, fire, and set it's location. Why is this good? Well, if you had to create many dragons and not just puff you would normally have to have a set of variables for every creature such as fPuffX, fPuffY, fPuffZ, fPuffHealth, etc.... With object oriented programming you only write the variables once and place them in classes. So if you do Dragon g_GreenDragon; Dragon g_BlackDragon; Dragon g_RedDragon; you are actually creating new instances of iHealth, fX, fY, fZ without having to retype them over and over again for each dragon and other creatures. Slick huh? From tward1978 at earthlink.net Fri May 5 00:26:37 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 19:26:37 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <00fc01c66fc7$c7b12c10$c9ad1c42@gadolum18z9hrn> References: <005901c66f13$3b9af2b0$0505a8c0@music17><1146752489.16806.14.camel@localhost> <445A257B.3040403@earthlink.net> <00fc01c66fc7$c7b12c10$c9ad1c42@gadolum18z9hrn> Message-ID: <445A8DAD.6060706@earthlink.net> Hi Richard. Well, I have already started working on the wiki to clean up some things. What I need to know where the group would like me to start language wize with tutorials. Richard Bennett wrote: > great idea Tom. I would download it or whatever to have as sort of a > reference. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Fri May 5 00:32:31 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 19:32:31 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <01a901c66fcb$b4305b30$c9ad1c42@gadolum18z9hrn> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net><002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> <445A7E1C.7090901@earthlink.net> <01a901c66fcb$b4305b30$c9ad1c42@gadolum18z9hrn> Message-ID: <445A8F0F.3000701@earthlink.net> Hi Richard. Yes. C# is much much easier than C++. Easier by a long shot. Keep in mind I learned C++ in college, and then a couple of years ago when I was playing with C# called, C-Sharp, I couldn't believe how much easier C# was. Being familiar with C++ as you are C# will be a cakewalk. Richard Bennett wrote: > sounds alot easier that the way allegro does it so far. I haven't > played around with allegro much cause of having to do the other > chapters in the book, but I think you are going to have to type it in > everytime. But when I find out, I will post it out here and let ya'll > know. Also, is C# really that simple sounding? It sounds alot easier > than C++, maybe something that I check into after this class. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Fri May 5 00:36:23 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 19:36:23 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <01bf01c66fcc$4af37ac0$c9ad1c42@gadolum18z9hrn> References: <00b501c66f71$625fa220$0505a8c0@music17><009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> <445A80B4.1090207@earthlink.net> <01bf01c66fcc$4af37ac0$c9ad1c42@gadolum18z9hrn> Message-ID: <445A8FF7.4020502@earthlink.net> Hi Richard. As I recall you mentioned Allegro has a Linux port. That is the version I am interested in. For Windows DirectX all the way, but I love tinkering with what is out there for Linux. Richard Bennett wrote: > I got it from the devCpp packet download. But I want to think they > have a homepage. Um... I think it is > www.allegro.com. I have it installed, through DevCpp, but I think I > also have it on CD-rom that came with my programming book. It is kinda > outdated(least I think so, I didn't check the version) but if you want > it, I can send it to you privately. Let me know. It will allow you to > play sounds, draw graphics, test your computers hardware specs, and > other such things. I really like it so far. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From seanpm at triad.rr.com Fri May 5 00:41:24 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Thu, 4 May 2006 19:41:24 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <445A8F0F.3000701@earthlink.net> Message-ID: <003701c66fd4$41de10a0$0505a8c0@music17> Hi, Witch would you recommend for new programmers? I am learning C++, but if C# would be better, I would switch. Just a thought. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Thursday, May 04, 2006 7:33 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] wav files Hi Richard. Yes. C# is much much easier than C++. Easier by a long shot. Keep in mind I learned C++ in college, and then a couple of years ago when I was playing with C# called, C-Sharp, I couldn't believe how much easier C# was. Being familiar with C++ as you are C# will be a cakewalk. Richard Bennett wrote: > sounds alot easier that the way allegro does it so far. I haven't > played around with allegro much cause of having to do the other > chapters in the book, but I think you are going to have to type it in > everytime. But when I find out, I will post it out here and let ya'll > know. Also, is C# really that simple sounding? It sounds alot easier > than C++, maybe something that I check into after this class. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Fri May 5 00:55:35 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 19:55:35 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <003701c66fd4$41de10a0$0505a8c0@music17> References: <003701c66fd4$41de10a0$0505a8c0@music17> Message-ID: <445A9477.9090806@earthlink.net> Hi. In terms of easier to learn I would pick C#.net. As i mentioned to Richard in another thread C#.net is a cakewalk compared to C++. Sean Mealin wrote: > Hi, > Witch would you recommend for new programmers? > I am learning C++, but if C# would be better, I would switch. > Just a thought. > From seanpm at triad.rr.com Fri May 5 01:02:41 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Thu, 4 May 2006 20:02:41 -0400 Subject: [AGDev-newbies] wav files In-Reply-To: <445A9477.9090806@earthlink.net> Message-ID: <003c01c66fd7$3ad531a0$0505a8c0@music17> Is it as powerful as C++? Since it is a .Net language, I guess it would be windows specific? Sorry for all the questions. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Thursday, May 04, 2006 7:56 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] wav files Hi. In terms of easier to learn I would pick C#.net. As i mentioned to Richard in another thread C#.net is a cakewalk compared to C++. Sean Mealin wrote: > Hi, > Witch would you recommend for new programmers? > I am learning C++, but if C# would be better, I would switch. > Just a thought. > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Fri May 5 01:11:01 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 20:11:01 -0400 Subject: [AGDev-newbies] OOP was engines and code. References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net><00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> <445A8D55.9090004@earthlink.net> Message-ID: <01e701c66fd8$64b9b8f0$c9ad1c42@gadolum18z9hrn> ah, I bow down to thee programming master. I think I got a little bit of the OOP stuff. Let me see by writing back to you and telling ya what I think. Ok, basically, you take something down and break it down to the most basic level of existence and work at it from there. Example: you could take a human and make a class called human then create 2 instances of that class called male and one called female, then you could break it up even furthur by giving them each a different name such as Mary and John and instead of having to give Mary her own properties(having to type them in all over again) she would "inherit" the original properties from human and from the sub class of female, likewise the John class would "inherit" the properties from the sub class of Male. I think I got that right. Let me know if I do. You made it sound so darn simple, that it makes me feel dumb, lol BEAN From rbennett at southlink.us Fri May 5 01:11:49 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 20:11:49 -0400 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17><1146752489.16806.14.camel@localhost> <445A257B.3040403@earthlink.net><00fc01c66fc7$c7b12c10$c9ad1c42@gadolum18z9hrn> <445A8DAD.6060706@earthlink.net> Message-ID: <01ea01c66fd8$8185b380$c9ad1c42@gadolum18z9hrn> my vote goes for C++. From rbennett at southlink.us Fri May 5 01:17:51 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 20:17:51 -0400 Subject: [AGDev-newbies] wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net><002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> <445A7E1C.7090901@earthlink.net><01a901c66fcb$b4305b30$c9ad1c42@gadolum18z9hrn> <445A8F0F.3000701@earthlink.net> Message-ID: <01fa01c66fd9$599919b0$c9ad1c42@gadolum18z9hrn> ok, what about the gaming books out there. Are there more for C++ or C#. I am guessing that there is more for C++ because that is the standard for game programming, but am just curious. I remember you mentioning some books out here, but can't remember if they are for C++ or C# BEAN From rbennett at southlink.us Fri May 5 01:19:25 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 20:19:25 -0400 Subject: [AGDev-newbies] wav files References: <00b501c66f71$625fa220$0505a8c0@music17><009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> <445A80B4.1090207@earthlink.net><01bf01c66fcc$4af37ac0$c9ad1c42@gadolum18z9hrn> <445A8FF7.4020502@earthlink.net> Message-ID: <01fd01c66fd9$91c68250$c9ad1c42@gadolum18z9hrn> well from what I have heard from my teacher, allegro will work with Directx as well as the "directX" thing that Linux uses, I can't recall the name of it since I don't use Linux. But if you want the library, lemme know and I will try and get it to you. BEAN From rbennett at southlink.us Fri May 5 02:02:33 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 4 May 2006 21:02:33 -0400 Subject: C++ or C#Re: [AGDev-newbies] wav files References: <003c01c66fd7$3ad531a0$0505a8c0@music17> Message-ID: <021c01c66fdf$97ecb360$c9ad1c42@gadolum18z9hrn> Hey Sean, I wish I could answer your question here, but had to say something. I think that this list is for asking questions like that. It will help you decide which language to go with when deciding to program games. I mean right now, I prefer C++, but am definitely going to check out C#. The only drawback taht I forsee with the C# language for me is the fact that I am thinking, like you said, it is probably Windows-specific. That would be the only thing that would keep me from programming in that particular language full time. But who knows I may decide to go with it when I decide to create just Windows-based games. BEAN From tward1978 at earthlink.net Fri May 5 03:26:47 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 22:26:47 -0400 Subject: [AGDev-newbies] C-sharp was wav files In-Reply-To: <003c01c66fd7$3ad531a0$0505a8c0@music17> References: <003c01c66fd7$3ad531a0$0505a8c0@music17> Message-ID: <445AB7E7.6020902@earthlink.net> Hi Sean. Actually, there is a version of C#.net for Linux and Mac OS via mono. So in that sense C#.net is not specific to Windows although Microsoft would like it to be since they came up with the language first. There is however accessibility problems with applications on other operating systems using C#.net. As far as power that depends on what sorts of apps you want to write, and if rapid deployment is a factor.It also depends on if you need low-level programming or if high-level programming will work. For example C#.net will allow you to quickly design editors, databases, games, reporting applications, calculators, and many other day to day applications. I have even seen a photo editor and picture viewer written in C#.net. The down side to languages like VB.net and C#.net is they don['t compile to a native binary and compile to an intermediate language binary that gets read and run by the .net framework. This has huge security risks for protecting your source code. You have to fix it by buying applications that scrambles the MSIL binary to something unreadable by humans to secure your program from hackers and theft. C++ on the other hand is about the most powerful language known to programmers. It is able to be used to write higher-level apps like editers, databases, etc with more development time and expense. The language can go beyond those apps and write hardware drivers, extremely profetional games, greater security, and it can be used and is used to write such screen reader applications such as Jaws and Window Eyes. So you know what can be done with it in the right hands. C++ is also used on every operating system known so those skills will cary over to whatever operating system you wish to use. As I have said it is a very powerful language. The down side to C++ is that it is more complex than say C#.net, and has a bigger learning curve. At least i feel there is one. In addition some tasks such as making a dialog box is much more complicated using the standard Microsoft win32 API than if you use the .net framework which largely has the work done for you. Sean Mealin wrote: > Is it as powerful as C++? Since it is a .Net language, I guess it would be > windows specific? > > Sorry for all the questions. > From tward1978 at earthlink.net Fri May 5 03:48:07 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 22:48:07 -0400 Subject: [AGDev-newbies] OOP was engines and code. In-Reply-To: <01e701c66fd8$64b9b8f0$c9ad1c42@gadolum18z9hrn> References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net><00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> <445A8D55.9090004@earthlink.net> <01e701c66fd8$64b9b8f0$c9ad1c42@gadolum18z9hrn> Message-ID: <445ABCE7.9040802@earthlink.net> Hi Richard. Very close, but not exact. However, you are on track with your thought process. Using your own example Human is your base class. Then, you have male and female classes branching off from it. That is good. However, Mary and John are not break downs or separate classes. They are the objects which is what you wanted all along. They have names so they are called an instance. Look at the following list of object instances. Man James; Man John; Man Mike; Man Nick; Woman Andrea; Woman Beverly; Woman Michelle; Woman Tracy; In the list above the names of the people are the actual instances of man or woman. Woman and human are the classes that holds information about James, John, Andrea, Michelle, etc. Since you have already created the Man and Woman types and C++ knows they are types you don't have to write a separate set of variables for each person. The compiler as soon as it sees man allots memory and variables for that instance of John, James, Tony, etc based on the variables in the classes making up Man. You access the variables for Man or Woman by the methods listed in the class such as GetEyeColor(); GetHairColor(); GetHeight(); SetEyeColor(int); SetHairColor(int); SetHeight(float); If we are talking about John it might look like this John.SetEyeColor(blue); John.SetHairColor(brown); John.SetHeight(6.1); Richard Bennett wrote: > ah, I bow down to thee programming master. I think I got a little bit > of the OOP stuff. Let me see by writing back to you and telling ya > what I think. Ok, basically, you take something down and break it down > to the most basic level of existence and work at it from there. > Example: > you could take a human and make a class called human then create 2 > instances of that class called male and one called female, then you > could break it up even furthur by giving them each a different name > such as Mary and John and instead of having to give Mary her own > properties(having to type them in all over again) she would "inherit" > the original properties from human and from the sub class of female, > likewise the John class would "inherit" the properties from the sub > class of Male. I think I got that right. Let me know if I do. You made > it sound so darn simple, that it makes me feel dumb, lol > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Fri May 5 04:00:30 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 23:00:30 -0400 Subject: [AGDev-newbies] Programming documentation was wav files In-Reply-To: <01fa01c66fd9$599919b0$c9ad1c42@gadolum18z9hrn> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net><002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> <445A7E1C.7090901@earthlink.net><01a901c66fcb$b4305b30$c9ad1c42@gadolum18z9hrn> <445A8F0F.3000701@earthlink.net> <01fa01c66fd9$599919b0$c9ad1c42@gadolum18z9hrn> Message-ID: <445ABFCE.2060702@earthlink.net> Hi Richard. In terms of over all documentation C++ materials are very easy to come by. Interesting to note allot of it does not go out of date to fast unless it is special libraries and development kits like DirectX which is constantly evolving. I can think of books that were written years ago like the Microsoft books on the win32 API that still apply, and it is like a 1000 page brain buster. Anything you ever wanted to look up on Windows programming is in there, and little of it has changed much since it was written. C#.net came out in 2002, and Microsoft has already released a 1.0, 1.1, and 2.0 version of the language. It is really so new while there is a growing wealth of documentation for ggame related topics it is nowhere near what is out there for C++. For example two books for C++ that comes to mind is Tricks of the Game Programming Gurus which is a landmark book for beginning programmers, and Programming Roll Playing Games which covers a little of everything. One thing I like about C++ over C#.net is the ability to really write huge scripting engines. There documentation which allows you to write a simple madlib script engine, and there is books out there that show how to write your own game script language and interperater for games using C++ as the base for the engine. Really good stuff. There is a huge wealth of books that go in to AI programming all in C++. Not allot of that has moved in to C#.net. It can easily be converted, but again wasn't targeting that language directly. Richard Bennett wrote: > ok, what about the gaming books out there. Are there more for C++ or > C#. I am guessing that there is more for C++ because that is the > standard for game programming, but am just curious. I remember you > mentioning some books out here, but can't remember if they are for C++ > or C# > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Fri May 5 04:02:35 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 23:02:35 -0400 Subject: [AGDev-newbies] Allegro was wav files In-Reply-To: <01fd01c66fd9$91c68250$c9ad1c42@gadolum18z9hrn> References: <00b501c66f71$625fa220$0505a8c0@music17><009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> <445A80B4.1090207@earthlink.net><01bf01c66fcc$4af37ac0$c9ad1c42@gadolum18z9hrn> <445A8FF7.4020502@earthlink.net> <01fd01c66fd9$91c68250$c9ad1c42@gadolum18z9hrn> Message-ID: <445AC04B.302@earthlink.net> Hi It sounds like Allegro is some intermediate SDK which attempts to bridge between DirectX, SDL, and other game libraries. Might be interesting to toy with. Richard Bennett wrote: > well from what I have heard from my teacher, allegro will work with > Directx as well as the "directX" thing that Linux uses, I can't recall > the name of it since I don't use Linux. But if you want the library, > lemme know and I will try and get it to you. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Fri May 5 04:25:00 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 04 May 2006 23:25:00 -0400 Subject: C++ or C#Re: [AGDev-newbies] wav files In-Reply-To: <021c01c66fdf$97ecb360$c9ad1c42@gadolum18z9hrn> References: <003c01c66fd7$3ad531a0$0505a8c0@music17> <021c01c66fdf$97ecb360$c9ad1c42@gadolum18z9hrn> Message-ID: <445AC58C.2010204@earthlink.net> Hi Richard. Incase you missed the post I just sent out a little bit ago C#.net is no longer specific to Windows. the open source comunity has created a version of C#.net for Linux and Mac which works with mono. The down side is the graphical applications for mono won't work with Linux and Mac adaptive technologies, because the Mac and Linux screen readers operate with an access bridge which mono currently does not interface with. Richard Bennett wrote: > Hey Sean, I wish I could answer your question here, but had to say > something. I think that this list is for asking questions like that. > It will help you decide which language to go with when deciding to > program games. I mean right now, I prefer C++, but am definitely going > to check out C#. The only drawback taht I forsee with the C# language > for me is the fact that I am thinking, like you said, it is probably > Windows-specific. That would be the only thing that would keep me from > programming in that particular language full time. But who knows I may > decide to go with it when I decide to create just Windows-based games. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From z2004a1 at columbus.rr.com Fri May 5 06:01:34 2006 From: z2004a1 at columbus.rr.com (Tim) Date: Fri, 05 May 2006 01:01:34 -0400 Subject: [AGDev-newbies] DirectX Tutorials. In-Reply-To: <445A5F93.2030904@earthlink.net> References: <005901c66f13$3b9af2b0$0505a8c0@music17> <1146752489.16806.14.camel@localhost> <445A5F93.2030904@earthlink.net> Message-ID: <7.0.1.0.2.20060505010043.02395b98@columbus.rr.com> Would like to see both, but will vote c#, and let the c++ one come out later. At 04:09 PM 5/4/2006, you wrote: >Hi list. >Ok, this weekend I am going to sit down and begin working on some >DirectX Tutorials for the AGDev wiki. One thing I want to know in >advance is what language you want the tutorials in. >I know there is several of you who are learning C++, but C# is also >a good language to learn for game programming. So I am prepared to >write up a turtorial in either C++ or C#. Which would you like? >While I could do both I don't have the time at the moment to write >up both tutorials so I'd like to do one or the other depending on >popular demand. >Thanks. > > >_______________________________________________ >AGDev-newbies mailing list >AGDev-newbies at lists.agdev.org >http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From simodowl at clara.co.uk Fri May 5 11:41:05 2006 From: simodowl at clara.co.uk (simon.dowling) Date: Fri, 5 May 2006 11:41:05 +0100 Subject: [AGDev-newbies] engines and code. References: <024e01c66f69$f1640130$d7d38856@simon> <445A2111.8030705@earthlink.net> Message-ID: <01ba01c67030$69bfdac0$8c229a51@simon> hi tom, yes indeed I meant ASCII. my misteak about the subject line, your idea idea of an open source engine would be welcome this end. ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Thursday, May 04, 2006 4:43 PM Subject: Re: [AGDev-newbies] engines and code. > Hi Simon. > Dev-C++ is a compiler not an engine. What do you mean by an asc file? Do > you mean ascii text? > All source code files should be in ascii text format for compilers > regardless of compiler and language. > However, there are extention convensions for each language like *.c for a > c language file, *.h for a C/C++ header, *.cs for C# language file, etc. > > > > simon.dowling wrote: >> ok I have the dev-c++ engine installed and am wondering how long an asci >> file will take to compile. I tried to profile I it, but it said something >> about the project hadn't been rebuilt and compiled did want to do this >> now? I hit the ok button, and it is just sitting there. >> the code itself is about 10000 lines long, and its an asc file. >> is there something happening, or is there something I need to do. >> will it indeed compile this kind of file. it was originally written in >> basic, and I converted it to aski. >> any thoughts? >> many thanks. >> Simon >> owner of the winMX mailing list. >> to join, send a blank email to: >> winmxfortheblind-subscribe at smartgroups.com >> >> msn simodowl at hotmail.com >> skype: slifinger >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies >> ------------------------------------------------------------------------ >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 >> > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > > > __________ NOD32 1.1521 (20060504) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > From rbennett at southlink.us Fri May 5 19:05:45 2006 From: rbennett at southlink.us (Richard Bennett) Date: Fri, 5 May 2006 14:05:45 -0400 Subject: [AGDev-newbies] OOP was engines and code. References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net><00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> <445A8D55.9090004@earthlink.net><01e701c66fd8$64b9b8f0$c9ad1c42@gadolum18z9hrn> <445ABCE7.9040802@earthlink.net> Message-ID: <001c01c6706e$8891ae40$c9ad1c42@gadolum18z9hrn> ok I think I am finally getting it. So you have the functions such as SetHairColor() so if you want to give John brown hair, it would be john.SetHairColor(brown); right? I think I finally may have it, lol. But I am probably counting my chickens before the eggs hatch again. BEAN From rbennett at southlink.us Fri May 5 19:08:22 2006 From: rbennett at southlink.us (Richard Bennett) Date: Fri, 5 May 2006 14:08:22 -0400 Subject: [AGDev-newbies] Programming documentation was wav files References: <005901c66f13$3b9af2b0$0505a8c0@music17> <44597914.6070104@earthlink.net><002501c66fc1$a2db2540$c9ad1c42@gadolum18z9hrn> <445A7E1C.7090901@earthlink.net><01a901c66fcb$b4305b30$c9ad1c42@gadolum18z9hrn> <445A8F0F.3000701@earthlink.net><01fa01c66fd9$599919b0$c9ad1c42@gadolum18z9hrn> <445ABFCE.2060702@earthlink.net> Message-ID: <001f01c6706e$e6724600$c9ad1c42@gadolum18z9hrn> ok that is cool. I figured as much since I knew that C# was a much newer language and probably didn't have the documentation out there that C++ had. Thanks for the information. BEAN From rbennett at southlink.us Fri May 5 19:11:18 2006 From: rbennett at southlink.us (Richard Bennett) Date: Fri, 5 May 2006 14:11:18 -0400 Subject: [AGDev-newbies] Allegro was wav files References: <00b501c66f71$625fa220$0505a8c0@music17><009201c66fc4$dba2a3a0$c9ad1c42@gadolum18z9hrn> <445A80B4.1090207@earthlink.net><01bf01c66fcc$4af37ac0$c9ad1c42@gadolum18z9hrn> <445A8FF7.4020502@earthlink.net><01fd01c66fd9$91c68250$c9ad1c42@gadolum18z9hrn> <445AC04B.302@earthlink.net> Message-ID: <002201c6706f$4f3ac450$c9ad1c42@gadolum18z9hrn> it is pretty interesting and is open source, so it can change constantly, and there seems to be new instances of the allegro game library quickly coming out, or different varying versions of Allegro. For instance the other day they released a new version of allegro that would allow you to portray some type of picture format to the screen that it wouldn't support earlier. BEAN From rbennett at southlink.us Fri May 5 19:13:17 2006 From: rbennett at southlink.us (Richard Bennett) Date: Fri, 5 May 2006 14:13:17 -0400 Subject: C++ or C#Re: [AGDev-newbies] wav files References: <003c01c66fd7$3ad531a0$0505a8c0@music17><021c01c66fdf$97ecb360$c9ad1c42@gadolum18z9hrn> <445AC58C.2010204@earthlink.net> Message-ID: <003b01c6706f$96266fe0$c9ad1c42@gadolum18z9hrn> oh ok yeah I had read that in your previous post on these languages. It's a shame, but maybe one day it will get there. BEAN From tward1978 at earthlink.net Fri May 5 19:49:05 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Fri, 05 May 2006 14:49:05 -0400 Subject: [AGDev-newbies] OOP was engines and code. In-Reply-To: <001c01c6706e$8891ae40$c9ad1c42@gadolum18z9hrn> References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net><00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> <445A8D55.9090004@earthlink.net><01e701c66fd8$64b9b8f0$c9ad1c42@gadolum18z9hrn> <445ABCE7.9040802@earthlink.net> <001c01c6706e$8891ae40$c9ad1c42@gadolum18z9hrn> Message-ID: <445B9E21.7010507@earthlink.net> Hi Richard. Short answer is yes. Simple call the object instance, and then the function you want which accesses the property in the class you wish to change/set/get. Richard Bennett wrote: > ok I think I am finally getting it. So you have the functions such as > SetHairColor() so if you want to give John brown hair, it would be > john.SetHairColor(brown); > right? I think I finally may have it, lol. But I am probably counting > my chickens before the eggs hatch again. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Fri May 5 20:32:31 2006 From: rbennett at southlink.us (Richard Bennett) Date: Fri, 5 May 2006 15:32:31 -0400 Subject: [AGDev-newbies] OOP was engines and code. References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net><00f401c66fc7$a56b5e50$c9ad1c42@gadolum18z9hrn> <445A8D55.9090004@earthlink.net><01e701c66fd8$64b9b8f0$c9ad1c42@gadolum18z9hrn> <445ABCE7.9040802@earthlink.net><001c01c6706e$8891ae40$c9ad1c42@gadolum18z9hrn> <445B9E21.7010507@earthlink.net> Message-ID: <01af01c6707a$a72fb340$c9ad1c42@gadolum18z9hrn> *yell out loud "yes"* By George, I think I've got it, lol. Thanks Tom, you have made it so that I am starting to understand the concept. Once I get that down, I will need some tutorial on using them during the main loop, but that can wait for now. I am still absorbing the OOP stuff. BEAN From mmaslo1964 at swbell.net Sat May 6 15:27:15 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 6 May 2006 09:27:15 -0500 Subject: [AGDev-newbies] Hello all Message-ID: <001a01c67119$2cb21ff0$210110ac@YOURBACE1BB2CF> Hello all: Anyone out here??? Let's et going here. Anyone ready to start programming in c#? I have visual basic 2005 but can't tell yet if it is Jaws friendly. -------------- next part -------------- An HTML attachment was scrubbed... URL: From csm120 at cfl.rr.com Sat May 6 16:37:08 2006 From: csm120 at cfl.rr.com (Casey) Date: Sat, 6 May 2006 11:37:08 -0400 Subject: [AGDev-newbies] Hello all References: <001a01c67119$2cb21ff0$210110ac@YOURBACE1BB2CF> Message-ID: <001a01c67122$efa6ca70$0301a8c0@csm120> I have vs2005 as well, but I've seamed to have mixed results. I have jaws7/7.1 Thoughts? Casey ----- Original Message ----- From: Mike Maslo To: agdev-newbies at lists.agdev.org Sent: Saturday, May 06, 2006 10:27 AM Subject: [AGDev-newbies] Hello all Hello all: Anyone out here??? Let's et going here. Anyone ready to start programming in c#? I have visual basic 2005 but can't tell yet if it is Jaws friendly. -------------------------------------------------------------------------------- _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmaslo1964 at swbell.net Sat May 6 17:04:26 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 6 May 2006 11:04:26 -0500 Subject: [AGDev-newbies] Hello all In-Reply-To: <001a01c67122$efa6ca70$0301a8c0@csm120> Message-ID: <000c01c67126$c1ba0f10$210110ac@YOURBACE1BB2CF> Casey: Well so far I have not really done a lot with it. What I have done is look at the environment. I was playing with the express version and once the windows were closed such as error list and etc and I hid all of them it worked pretty good. I think VS 2005 will be fine and work great. I think we just have to play and do the best we can with it. Have you started to learn and/or what is your level of programming and what you trying to learn?? Also if c# what method you using to learn and are you using a book to read or what?? _____ From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Saturday, May 06, 2006 10:37 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all I have vs2005 as well, but I've seamed to have mixed results. I have jaws7/7.1 Thoughts? Casey ----- Original Message ----- From: Mike Maslo To: agdev-newbies at lists.agdev.org Sent: Saturday, May 06, 2006 10:27 AM Subject: [AGDev-newbies] Hello all Hello all: Anyone out here??? Let's et going here. Anyone ready to start programming in c#? I have visual basic 2005 but can't tell yet if it is Jaws friendly. _____ _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From csm120 at cfl.rr.com Sat May 6 17:33:54 2006 From: csm120 at cfl.rr.com (Casey) Date: Sat, 6 May 2006 12:33:54 -0400 Subject: [AGDev-newbies] Hello all References: <000c01c67126$c1ba0f10$210110ac@YOURBACE1BB2CF> Message-ID: <008101c6712a$de1326c0$0301a8c0@csm120> I'm not very far along. I started a few years ago with vb6. I eventually got to the point where I could write very simple programs from scratch without looking at a tutorial first. Now I feel lost again, and VS2k5 doesn't seam to work as well as vb6. I would consider moving in to a c language if I could get better results from vs2k5. I'm not sure if it is me, or the vs jaws relationships. Casey ----- Original Message ----- From: Mike Maslo To: 'Friendly informal list for those new to AG development' Sent: Saturday, May 06, 2006 12:04 PM Subject: RE: [AGDev-newbies] Hello all Casey: Well so far I have not really done a lot with it. What I have done is look at the environment. I was playing with the express version and once the windows were closed such as error list and etc and I hid all of them it worked pretty good. I think VS 2005 will be fine and work great. I think we just have to play and do the best we can with it. Have you started to learn and/or what is your level of programming and what you trying to learn?? Also if c# what method you using to learn and are you using a book to read or what?? -------------------------------------------------------------------------------- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Saturday, May 06, 2006 10:37 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all I have vs2005 as well, but I've seamed to have mixed results. I have jaws7/7.1 Thoughts? Casey ----- Original Message ----- From: Mike Maslo To: agdev-newbies at lists.agdev.org Sent: Saturday, May 06, 2006 10:27 AM Subject: [AGDev-newbies] Hello all Hello all: Anyone out here??? Let's et going here. Anyone ready to start programming in c#? I have visual basic 2005 but can't tell yet if it is Jaws friendly. -------------------------------------------------------------------------------- _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------------------------------------------------------------------------- _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Sat May 6 17:41:25 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 12:41:25 -0400 Subject: [AGDev-newbies] Hello all In-Reply-To: <001a01c67119$2cb21ff0$210110ac@YOURBACE1BB2CF> References: <001a01c67119$2cb21ff0$210110ac@YOURBACE1BB2CF> Message-ID: <445CD1B5.6050800@earthlink.net> Hi Mike. Your a bit late for class. Grin. We have currently been discussing C# verses C++, object oriented designs, and are voting on what language to discuss first. If you missed all that I suggest going back and reading the list archives to get up to speed. Mike Maslo wrote: > > Hello all: > > Anyone out here??? Let?s et going here. Anyone ready to start > programming in c#? I have visual basic 2005 but can?t tell yet if it > is Jaws friendly. > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From mmaslo1964 at swbell.net Sat May 6 17:58:24 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 6 May 2006 11:58:24 -0500 Subject: [AGDev-newbies] Hello all In-Reply-To: <008101c6712a$de1326c0$0301a8c0@csm120> Message-ID: <001701c6712e$4a2dd5f0$210110ac@YOURBACE1BB2CF> Well Casey: Together we can try to do our best. If we both stick with it we can get it done and learn together. Where you from? _____ From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Saturday, May 06, 2006 11:34 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all I'm not very far along. I started a few years ago with vb6. I eventually got to the point where I could write very simple programs from scratch without looking at a tutorial first. Now I feel lost again, and VS2k5 doesn't seam to work as well as vb6. I would consider moving in to a c language if I could get better results from vs2k5. I'm not sure if it is me, or the vs jaws relationships. Casey ----- Original Message ----- From: Mike Maslo To: 'Friendly informal list for those new to AG development' Sent: Saturday, May 06, 2006 12:04 PM Subject: RE: [AGDev-newbies] Hello all Casey: Well so far I have not really done a lot with it. What I have done is look at the environment. I was playing with the express version and once the windows were closed such as error list and etc and I hid all of them it worked pretty good. I think VS 2005 will be fine and work great. I think we just have to play and do the best we can with it. Have you started to learn and/or what is your level of programming and what you trying to learn?? Also if c# what method you using to learn and are you using a book to read or what?? _____ From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Saturday, May 06, 2006 10:37 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all I have vs2005 as well, but I've seamed to have mixed results. I have jaws7/7.1 Thoughts? Casey ----- Original Message ----- From: Mike Maslo To: agdev-newbies at lists.agdev.org Sent: Saturday, May 06, 2006 10:27 AM Subject: [AGDev-newbies] Hello all Hello all: Anyone out here??? Let's et going here. Anyone ready to start programming in c#? I have visual basic 2005 but can't tell yet if it is Jaws friendly. _____ _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies _____ _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmaslo1964 at swbell.net Sat May 6 18:00:19 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 6 May 2006 12:00:19 -0500 Subject: [AGDev-newbies] Hello all In-Reply-To: <445CD1B5.6050800@earthlink.net> Message-ID: <001c01c6712e$8e790d10$210110ac@YOURBACE1BB2CF> Thomas: Will do that but my vote is c# because I have gotten the book learn c# with Jesse somebody. What was the consensus? I am eager and want to learn badly -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Saturday, May 06, 2006 11:41 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all Hi Mike. Your a bit late for class. Grin. We have currently been discussing C# verses C++, object oriented designs, and are voting on what language to discuss first. If you missed all that I suggest going back and reading the list archives to get up to speed. Mike Maslo wrote: > > Hello all: > > Anyone out here??? Let's et going here. Anyone ready to start > programming in c#? I have visual basic 2005 but can't tell yet if it > is Jaws friendly. > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From csm120 at cfl.rr.com Sat May 6 18:06:33 2006 From: csm120 at cfl.rr.com (Casey) Date: Sat, 6 May 2006 13:06:33 -0400 Subject: [AGDev-newbies] Hello all References: <001701c6712e$4a2dd5f0$210110ac@YOURBACE1BB2CF> Message-ID: <000f01c6712f$6da55070$0301a8c0@csm120> That works for me, I really have to very much to learn. I am from Orlando FL. Thanks Casey ----- Original Message ----- From: Mike Maslo To: 'Friendly informal list for those new to AG development' Sent: Saturday, May 06, 2006 12:58 PM Subject: RE: [AGDev-newbies] Hello all Well Casey: Together we can try to do our best. If we both stick with it we can get it done and learn together. Where you from? -------------------------------------------------------------------------------- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Saturday, May 06, 2006 11:34 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all I'm not very far along. I started a few years ago with vb6. I eventually got to the point where I could write very simple programs from scratch without looking at a tutorial first. Now I feel lost again, and VS2k5 doesn't seam to work as well as vb6. I would consider moving in to a c language if I could get better results from vs2k5. I'm not sure if it is me, or the vs jaws relationships. Casey ----- Original Message ----- From: Mike Maslo To: 'Friendly informal list for those new to AG development' Sent: Saturday, May 06, 2006 12:04 PM Subject: RE: [AGDev-newbies] Hello all Casey: Well so far I have not really done a lot with it. What I have done is look at the environment. I was playing with the express version and once the windows were closed such as error list and etc and I hid all of them it worked pretty good. I think VS 2005 will be fine and work great. I think we just have to play and do the best we can with it. Have you started to learn and/or what is your level of programming and what you trying to learn?? Also if c# what method you using to learn and are you using a book to read or what?? -------------------------------------------------------------------------------- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Saturday, May 06, 2006 10:37 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all I have vs2005 as well, but I've seamed to have mixed results. I have jaws7/7.1 Thoughts? Casey ----- Original Message ----- From: Mike Maslo To: agdev-newbies at lists.agdev.org Sent: Saturday, May 06, 2006 10:27 AM Subject: [AGDev-newbies] Hello all Hello all: Anyone out here??? Let's et going here. Anyone ready to start programming in c#? I have visual basic 2005 but can't tell yet if it is Jaws friendly. -------------------------------------------------------------------------------- _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------------------------------------------------------------------------- _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------------------------------------------------------------------------- _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmaslo1964 at swbell.net Sat May 6 19:08:58 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 6 May 2006 13:08:58 -0500 Subject: [AGDev-newbies] c# or c##? Message-ID: <000601c67138$25cd5a00$210110ac@YOURBACE1BB2CF> What program language we learning or working on?? I prefer c#. It appears to be a little easier?? Anyone know which one is easier for a true beginner?? Also does Microsoft Visual studio 2005 support c##? Also what books are availa le for that language? -------------- next part -------------- An HTML attachment was scrubbed... URL: From singingbutterfly at cox.net Sun May 7 00:05:28 2006 From: singingbutterfly at cox.net (Bryan McGucken) Date: Sat, 6 May 2006 19:05:28 -0400 Subject: [AGDev-newbies] Hello all... Message-ID: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> Good evening everyone. I'm sure some of you already know me, but let me quickly introduce myself and then get to my question. I hope that won't confuse too many, but I don't want to spam the list. My name is Bryan. I am thirty years old and live in Lakewood, Ohio in the U.S. I am currently a Customer Service Representative. I have been playing games since around 1984, and have always wanted to make my own. I remember some contest where if your juice bottle had the right number code on it you were awarded the right to create and design your own Nintendo game. I didn't win, but I still want to make games. Now, be advised, I don't have any programming experience or formal training except for some limited work with Applesoft basic back in the early nineties. Maybe it seems like I'm taking the easy way out, but I know there are game engines out there, and I want to use one to make different genres of games, e.g., racing, RPG, third-person shooter, vertical scrolling shooter, dance sims, etc. That said, I am interested in seeing this new game engine everyone's been talking about coming to fruition, but I'm ashamed to admit I can't help in any way with scripting or compiling. I'd use the GMA game engine, but I'd asked around about it with no result, perhaps because it's not for distribution. I heard there was work being done on an engine down in Uruguay or something, but haven't heard about it since. I know an RPG engine was developed, but don't know how useful it would be if the map editor is as inaccessible as its own authors claim. I wish I had time to learn C++, or even C#, but I just don't. If any of you have information on any of these things, I'd love to hear from you. I'll have to check out audiosparx.com. Hopefully it will yield more than findsounds.com did. Hopefully I'll be getting my Cakewalk MIDI program back up and running. You see, my computer crashed last April and my new father-in-law built us one and shipped it out here in October. Of course, if there are any freeware MIDI programs out there, I'll gladly use one. Well, that's all just now. Bryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Sun May 7 00:06:59 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 19:06:59 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all In-Reply-To: <001a01c67122$efa6ca70$0301a8c0@csm120> References: <001a01c67119$2cb21ff0$210110ac@YOURBACE1BB2CF> <001a01c67122$efa6ca70$0301a8c0@csm120> Message-ID: <445D2C13.4030408@earthlink.net> Hi. From my initial testing the VS 2005 Express versions do have accessibility issues that apparently are not in the pro versions. However, I think this can be resolved by Jaws 7 scripts and Window Eyes 5.5 set files. In the up coming few days I am going to begin working on Jaws scripts and Window Eyes sets that attempt to increase access to the Express versions. Casey wrote: > I have vs2005 as well, but I've seamed to have mixed results. I have > jaws7/7.1 > Thoughts? > > > Casey From tward1978 at earthlink.net Sun May 7 00:21:53 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 19:21:53 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all In-Reply-To: <000c01c67126$c1ba0f10$210110ac@YOURBACE1BB2CF> References: <000c01c67126$c1ba0f10$210110ac@YOURBACE1BB2CF> Message-ID: <445D2F91.9000707@earthlink.net> Hi. Yes. With Visual Studio 2002, 2003, and 2005 there are some Windows it is better to disable in order to increase over all accessibility for Visual Studio. I don't have an exact list of windows but I usually turn off the watch Windows and other ones I don't need docked while programming. Mike Maslo wrote: > > Casey: > > > > > Well so far I have not really done a lot with it. What I have done is > look at the environment. I was playing with the express version and > once the windows were closed such as error list and etc and I hid all > of them it worked pretty good. > > > > I think VS 2005 will be fine and work great. I think we just have to > play and do the best we can with it. > > > > Have you started to learn and/or what is your level of programming and > what you trying to learn?? > > > > Also if c# what method you using to learn and are you using a book to > read or what?? > From tward1978 at earthlink.net Sun May 7 00:24:15 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 19:24:15 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all In-Reply-To: <008101c6712a$de1326c0$0301a8c0@csm120> References: <000c01c67126$c1ba0f10$210110ac@YOURBACE1BB2CF> <008101c6712a$de1326c0$0301a8c0@csm120> Message-ID: <445D301F.3020103@earthlink.net> Hi Casey. I would say it a bit a both. Jaws doesn't have terrably good access to 2005 Express yet, but if you are familiar with Visual Studio chanses are you can improve things by undocking some Windows, and knowing what does what. Casey wrote: > I'm not very far along. I started a few years ago with vb6. I > eventually got to the point where I could write very simple programs > from scratch without looking at a tutorial first. Now I feel lost > again, and VS2k5 doesn't seam to work as well as vb6. I would consider > moving in to a c language if I could get better results from vs2k5. > I'm not sure if it is me, or the vs jaws relationships. > > > Casey From rbennett at southlink.us Sun May 7 02:03:28 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 6 May 2006 21:03:28 -0400 Subject: [AGDev-newbies] c# or c##? References: <000601c67138$25cd5a00$210110ac@YOURBACE1BB2CF> Message-ID: <018101c67172$0dbd0660$c9ad1c42@gadolum18z9hrn> I have stated this before, I prefer C++, but seems like I am the only one, so hopefully I can convert the C# to C++ easily enough if we all decide on C#. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Sun May 7 02:34:43 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 21:34:43 -0400 Subject: [AGDev-newbies] Hello all In-Reply-To: <001c01c6712e$8e790d10$210110ac@YOURBACE1BB2CF> References: <001c01c6712e$8e790d10$210110ac@YOURBACE1BB2CF> Message-ID: <445D4EB3.7000709@earthlink.net> Hi Mike. At this point it looks like those of you on the list are leaning toward C#.net over C++. As for Learning C# by Jessie Liberty that is a very good book. Just make sure you have the latest eddition. The Latest eddition covers the .net framework 2.0 which is what you need to know for VS 2005. Mike Maslo wrote: > Thomas: > > Will do that but my vote is c# because I have gotten the book learn c# with > Jesse somebody. > > What was the consensus? > > I am eager and want to learn badly > From tward1978 at earthlink.net Sun May 7 02:39:57 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 21:39:57 -0400 Subject: [AGDev-newbies] c# or c##? In-Reply-To: <000601c67138$25cd5a00$210110ac@YOURBACE1BB2CF> References: <000601c67138$25cd5a00$210110ac@YOURBACE1BB2CF> Message-ID: <445D4FED.8060904@earthlink.net> Hi Mike. For a beginner C#.net is certainly easier than tackling C++. For all the comparisons made earlier on this list look in the archives. I already pointed out the differences between the two languages. As it happens I am going to begin working on game programming tutorials, and starting with C#.net at this point would be certainly easier to begin teaching with. As for the Visual Studio Express there is a C++ IDE, C# IDE, a Visual Basic IDE, J# IDE, and a web development IDE. Mike Maslo wrote: > > What program language we learning or working on?? I prefer c#. It > appears to be a little easier?? Anyone know which one is easier for a > true beginner?? > > > > Also does Microsoft Visual studio 2005 support c##? Also what books > are availa le for that language? > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From tward1978 at earthlink.net Sun May 7 02:58:14 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 21:58:14 -0400 Subject: [AGDev-newbies] Engines was Hello all... In-Reply-To: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> Message-ID: <445D5436.4050509@earthlink.net> Hi Bryan. There are high quality game engines out there for the blind such as the GMA game engine, but you will quickly find it can be quite costly after a while. For example, if you licensed the GMA engine it is assumed you are writing games for commercial use so you are going to have to pay a couple hundred dollars a year or something like 25% of your sales for licensing fees. I don't remember the exact details at the moment, but I did know it is cheaper to write your games yourself. I did mention a little while back on this list about sitting down as a group and writing our own open source engine, but didn't get much of a response at that. That is understandable since that is an advanced piece of programming for a list full of new programmers, but it is something to think about down the road. Bryan McGucken wrote: > Good evening everyone. I'm sure some of you already know me, but let > me quickly introduce myself and then get to my question. I hope that > won't confuse too many, but I don't want to spam the list. > My name is Bryan. I am thirty years old and live in Lakewood, Ohio in > the U.S. I am currently a Customer Service Representative. I have > been playing games since around 1984, and have always wanted to make > my own. I remember some contest where if your juice bottle had the > right number code on it you were awarded the right to create and > design your own Nintendo game. I didn't win, but I still want to make > games. Now, be advised, I don't have any programming experience or > formal training except for some limited work with Applesoft basic back > in the early nineties. Maybe it seems like I'm taking the easy way > out, but I know there are game engines out there, and I want to use > one to make different genres of games, e.g., racing, RPG, third-person > shooter, vertical scrolling shooter, dance sims, etc. That said, I am > interested in seeing this new game engine everyone's been talking > about coming to fruition, but I'm ashamed to admit I can't help in any > way with scripting or compiling. I'd use the GMA game engine, but I'd > asked around about it with no result, perhaps because it's not for > distribution. I heard there was work being done on an engine down in > Uruguay or something, but haven't heard about it since. I know an RPG > engine was developed, but don't know how useful it would be if the map > editor is as inaccessible as its own authors claim. I wish I had time > to learn C++, or even C#, but I just don't. If any of you have > information on any of these things, I'd love to hear from you. I'll > have to check out audiosparx.com. Hopefully it will yield more than > findsounds.com did. Hopefully I'll be getting my Cakewalk MIDI > program back up and running. You see, my computer crashed last April > and my new father-in-law built us one and shipped it out here in > October. Of course, if there are any freeware MIDI programs out > there, I'll gladly use one. Well, that's all just now. Bryan > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From rbennett at southlink.us Sun May 7 03:09:22 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 6 May 2006 22:09:22 -0400 Subject: [AGDev-newbies] Engines was Hello all... References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net> Message-ID: <022901c6717b$42818b60$c9ad1c42@gadolum18z9hrn> I think it would be a great idea, when we all get deep into the object oriented programming(OOP) so that as a sort of "class project" we could develop an engine for all of use to either use, or not use. We could learn from this by being in on the writing team, not to mention, we would then have the engine to use as we wish. Whatcha think? BEAN From tward1978 at earthlink.net Sun May 7 03:46:58 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 06 May 2006 22:46:58 -0400 Subject: [AGDev-newbies] Engines was Hello all... In-Reply-To: <022901c6717b$42818b60$c9ad1c42@gadolum18z9hrn> References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net> <022901c6717b$42818b60$c9ad1c42@gadolum18z9hrn> Message-ID: <445D5FA2.6010402@earthlink.net> Hi Richard. That was the idea. Writing your own engine is sort of a final class project. If you guys wanted to design a more complicated one, upgrade it, port it to a new language, you could. However, as a group once people get on the same page we could build some simple ones to do some basic game features. I'm going to start on the docks on mazes, sound programming, and some things that are esentual for game programming. Richard Bennett wrote: > I think it would be a great idea, when we all get deep into the object > oriented programming(OOP) so that as a sort of "class project" we > could develop an engine for all of use to either use, or not use. We > could learn from this by being in on the writing team, not to mention, > we would then have the engine to use as we wish. Whatcha think? > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Sun May 7 03:59:45 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 6 May 2006 22:59:45 -0400 Subject: [AGDev-newbies] Engines was Hello all... References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net><022901c6717b$42818b60$c9ad1c42@gadolum18z9hrn> <445D5FA2.6010402@earthlink.net> Message-ID: <028b01c67182$4be84c00$c9ad1c42@gadolum18z9hrn> yeah I would like to know more about the sound portion of it. I mean I assume that it is pretty simple to get the audio portion up and going, but I just want to think that there is more to it and there is still some stuff about the incorporating audio that I am not understanding. BEAN From tward1978 at earthlink.net Sun May 7 05:23:58 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 07 May 2006 00:23:58 -0400 Subject: [AGDev-newbies] Loading and playing sounds in C#.net. In-Reply-To: <028b01c67182$4be84c00$c9ad1c42@gadolum18z9hrn> References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net><022901c6717b$42818b60$c9ad1c42@gadolum18z9hrn> <445D5FA2.6010402@earthlink.net> <028b01c67182$4be84c00$c9ad1c42@gadolum18z9hrn> Message-ID: <445D765E.50102@earthlink.net> Hi all. This again is an area where C#.net takes something, and makes it a real breeze. Loading and setting up sound files in C#.net is easy as cake or is it easy as pie.Well, either way I can practically reproduce the instructions in C#.net right off my head. Here is a ruff idea of the procedure. It is not a complete program, but a basic outline of just the DirectX stuff. I'll prefect this program and offer the complete source code when I do the tutorial for the wiki. Using Microsoft.DirectX; Using Microsoft.DirectX.DirectSound; public class Form1: System.Windows.Forms.Form { // DirectX sound object. private Device g_audio = null; // DirectX sound object. private SecondaryBuffer g_sound = null; // Buffer description object. BufferDescription g_description = null; // Load audio method. // Sets up the sound card and sound files // for playback. public void LoadAudio() { // Create new instances of // the audio device. g_audio = new Device(); // Set cooperative levels. g_audio.SetCooperativeLevel(CooperativeLevelFlags.Background | CooperativeLevelFlags.NonExclusive); // Acquire the sound card for playback. g_audio.Acquire(); // Set up sound buffer description. // The options set weather the sound can be panned, // positioned in 3D, // frequency can be changed, // and other options. g_description = new BufferDescription(); // Turn on virtual 3D processing. g_description.Control3D = true; // Turn on frequency changes. g_description.ControlFrequency = true; // Load our sound in to the g_sound buffer. g_sound = new (@"sound.wav", g_description, g_audio); } // Start sound. // Starts the loaded sound to playing, // and loops until stopped. public void StartSound() { g_sound.Play(0, BufferPlayFlags.Looping); } // Main function. // Entry point for the // C#.net application. public void Main() { using(Form1 form = new Form1()) { // Load the audio stuff. form.LoadAudio(); // Start playing the sound. form.StartSound(); // Run the program. Application.Run(form); } } } There you go. that is all there is to loading a sound on the DirectX end. What i left out was all the code which make the form run, and work as a normal Window. For sound instructions it isn't necessary, but will be when doing games. As I said when I finish with the real finished tutorial the instructions will be a complete working program, and you will be able to view the entire source, and it will obviously be tested for errors. However, since many of you wanted to see how it is done, in C#.net this is a very simple task. From mmaslo1964 at swbell.net Sun May 7 14:45:39 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 7 May 2006 08:45:39 -0500 Subject: [AGDev-newbies] Engines was Hello all... In-Reply-To: <022901c6717b$42818b60$c9ad1c42@gadolum18z9hrn> Message-ID: <000601c671dc$89811600$210110ac@YOURBACE1BB2CF> Bean: I agree with you. That is a great idea. However I am very far behind. Just learning programming -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Richard Bennett Sent: Saturday, May 06, 2006 9:09 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Engines was Hello all... I think it would be a great idea, when we all get deep into the object oriented programming(OOP) so that as a sort of "class project" we could develop an engine for all of use to either use, or not use. We could learn from this by being in on the writing team, not to mention, we would then have the engine to use as we wish. Whatcha think? BEAN _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Sun May 7 14:53:22 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 7 May 2006 08:53:22 -0500 Subject: [AGDev-newbies] c# or c##? In-Reply-To: <445D4FED.8060904@earthlink.net> Message-ID: <000701c671dd$9c0915b0$210110ac@YOURBACE1BB2CF> Thomas: The reason I selected c# is because of what you did write. Any tutorials you come up with will be great. I am now using visual studi2005 -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Saturday, May 06, 2006 8:40 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] c# or c##? Hi Mike. For a beginner C#.net is certainly easier than tackling C++. For all the comparisons made earlier on this list look in the archives. I already pointed out the differences between the two languages. As it happens I am going to begin working on game programming tutorials, and starting with C#.net at this point would be certainly easier to begin teaching with. As for the Visual Studio Express there is a C++ IDE, C# IDE, a Visual Basic IDE, J# IDE, and a web development IDE. Mike Maslo wrote: > > What program language we learning or working on?? I prefer c#. It > appears to be a little easier?? Anyone know which one is easier for a > true beginner?? > > > > Also does Microsoft Visual studio 2005 support c##? Also what books > are availa le for that language? > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Sun May 7 14:55:05 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 7 May 2006 08:55:05 -0500 Subject: [AGDev-newbies] Hello all In-Reply-To: <445D4EB3.7000709@earthlink.net> Message-ID: <000801c671dd$d86fe240$210110ac@YOURBACE1BB2CF> Thomas: That is the book I am using. I am reading slowly since I don't want to over load my mind. I want to learn but not cause myself to be lost and/or to confused to quickly. Glad for this list. Now instead when getting lost giving up I can post to the list. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Saturday, May 06, 2006 8:35 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all Hi Mike. At this point it looks like those of you on the list are leaning toward C#.net over C++. As for Learning C# by Jessie Liberty that is a very good book. Just make sure you have the latest eddition. The Latest eddition covers the .net framework 2.0 which is what you need to know for VS 2005. Mike Maslo wrote: > Thomas: > > Will do that but my vote is c# because I have gotten the book learn c# with > Jesse somebody. > > What was the consensus? > > I am eager and want to learn badly > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From matthew at agrip.org.uk Sun May 7 15:10:02 2006 From: matthew at agrip.org.uk (Matthew T. Atkinson) Date: Sun, 07 May 2006 15:10:02 +0100 Subject: [AGDev-newbies] engines and code. In-Reply-To: <445A237B.3060904@earthlink.net> References: <024e01c66f69$f1640130$d7d38856@simon> <445A237B.3060904@earthlink.net> Message-ID: <1147011002.16465.42.camel@localhost> On Thu, 2006-05-04 at 11:53 -0400, Thomas Ward wrote: > Speaking of game engines one thing we may wish to do while we are all > together is to create our own open source game engine for producing > games. Of course we would have to vote on a language and specifications > for the engine etc. end-quote I'd say go with one of the myriad already available and maybe add bindings for the gamecode language to whatever people want to use. I've seen QuakeC replaced by Python in one instance, for example :-). There are lots of great engines out there. What we could do with is a way to make them accessible (and get those changes incorporated back into the engines)... Just my ?0.02, hehe, bye just now, -- Matthew T. Atkinson From matthew at agrip.org.uk Sun May 7 17:21:31 2006 From: matthew at agrip.org.uk (Matthew T. Atkinson) Date: Sun, 07 May 2006 17:21:31 +0100 Subject: [AGDev-newbies] Who you gonna call? Message-ID: <1147018891.18475.5.camel@localhost> Just a quickie... for tech support relating to this list, you ought to contact support at agdev.org as that's the official AGDev support channel. Please remember to check out the Wiki at http://www.agdev.org/ and e-mail this list if you have any suggestions for it :-). bye just now, best regards, -- Matthew T. Atkinson From mmaslo1964 at swbell.net Sun May 7 18:55:59 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 7 May 2006 12:55:59 -0500 Subject: [AGDev-newbies] Who you gonna call? In-Reply-To: <1147018891.18475.5.camel@localhost> Message-ID: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF> List: Help already. I have created this little program and when I try to run it I get a error saying that the local variable is already in use in this scope. I am trying to make the variable myVar have one number and after it assigns and prints it out on the screen, I want to re assign it to a different number. What am I doing wrong?? Please help. namespace Frustrated { class Trusted { static void Main() { int myVar = 16; System.Console.WriteLine("initialized, myVar: {0} ", myVar); int myVar = 84; System.Console.WriteLine("next variable is: {0} " , blew); } } } -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Matthew T. Atkinson Sent: Sunday, May 07, 2006 11:22 AM To: AGDev-newbies list Subject: [AGDev-newbies] Who you gonna call? Just a quickie... for tech support relating to this list, you ought to contact support at agdev.org as that's the official AGDev support channel. Please remember to check out the Wiki at http://www.agdev.org/ and e-mail this list if you have any suggestions for it :-). bye just now, best regards, -- Matthew T. Atkinson _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Sun May 7 19:04:14 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 07 May 2006 14:04:14 -0400 Subject: [AGDev-newbies] Engines was Hello all... In-Reply-To: <000601c671dc$89811600$210110ac@YOURBACE1BB2CF> References: <000601c671dc$89811600$210110ac@YOURBACE1BB2CF> Message-ID: <445E369E.7020402@earthlink.net> Hi. Just learning language fundimentals is where most of you should be at this point. Once you know how to work with C#.net, C++, or whatever you have chosen to learn you can see how to convert what you know to something useful for games. For examples arrays are something most books discuss in terms of data in business oriented apps. At some point I want to show you guys how to take the array type, and convert it in to a 2D and 3D table for holding all your info about the game level such as placement of doors, Windows, walls, dropped items, etc. My Montezuma's Revenge Temple class is basically nothing more than a 2D array with some functions for updating and reading from the array where the keys, swords, skulls, and other things are. That is how you make temples, and other structures in your tgames. Mike Maslo wrote: > Bean: > > I agree with you. That is a great idea. However I am very far behind. Just > learning programming > > -----Original Message----- > From: agdev-newbies-bounces at lists.agdev.org > [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Richard Bennett > Sent: Saturday, May 06, 2006 9:09 PM > To: Friendly informal list for those new to AG development > Subject: Re: [AGDev-newbies] Engines was Hello all... > > I think it would be a great idea, when we all get deep into the object > oriented programming(OOP) so that as a sort of "class project" we could > develop an engine for all of use to either use, or not use. We could learn > from this by being in on the writing team, not to mention, we would then > have the engine to use as we wish. Whatcha think? > BEAN > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > > From tward1978 at earthlink.net Sun May 7 19:07:16 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 07 May 2006 14:07:16 -0400 Subject: [AGDev-newbies] c# or c##? In-Reply-To: <000701c671dd$9c0915b0$210110ac@YOURBACE1BB2CF> References: <000701c671dd$9c0915b0$210110ac@YOURBACE1BB2CF> Message-ID: <445E3754.4000004@earthlink.net> Hi. Great. Looks like C# and DirectX is what I'll start with. Later on we can look at C++ since it is a little harder, and if some wish to go Pro grade programming can continue on with it, and those who want to stick with C# and DirectX can stick with that. Smile. From tward1978 at earthlink.net Sun May 7 19:13:50 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 07 May 2006 14:13:50 -0400 Subject: [AGDev-newbies] Hello all In-Reply-To: <000801c671dd$d86fe240$210110ac@YOURBACE1BB2CF> References: <000801c671dd$d86fe240$210110ac@YOURBACE1BB2CF> Message-ID: <445E38DE.7030607@earthlink.net> Hi Mike. Every newby needs to go slowly. I was equally lost when I started programming about 10 years ago or so. Unfortunately, C# wasn't around, and my college made me do VB 5 first, and then C++, and later SQL. Anyway, what is important to learn right off is variables, operators, if statements, while loops, for loops, classes, and arrays. All of those things will be heavily used in games. Anyway, take your time working on each chapter as the next chapter builds on the last one slowly easing you in to more complicated types, statements, etc. Mike Maslo wrote: > Thomas: > > That is the book I am using. I am reading slowly since I don't want to over > load my mind. I want to learn but not cause myself to be lost and/or to > confused to quickly. > > Glad for this list. Now instead when getting lost giving up I can post to > the list. > From tward1978 at earthlink.net Sun May 7 19:30:54 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 07 May 2006 14:30:54 -0400 Subject: [AGDev-newbies] Who you gonna call? In-Reply-To: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF> References: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF> Message-ID: <445E3CDE.5030205@earthlink.net> Hi Mike. Remove the int from int myVar = 84; and that will fix your problem. Here is a lesson in scope. If something is declared globally that means at the top of your class all the functions in that class can access it, and it only needs to be declared once with the float, int, etc. If it is a local variable, my var is a local variable, it can be declared as int somewhere else in the program, but not in the same function or scope which is in your program function main. Some examples are in order to ilistrate this. class My Class { // I am a global variable. int g_iVariable = 0; public void NewVariable() { // declare a local variable. int iVariable = 0; // Change the global variable here. g_iVariable = 23; // Change my local variable here. // This function knows the local variable exists so // need for int. iVariable = 99; } } Mike Maslo wrote: > List: > > Help already. I have created this little program and when I try to run it I > get a error saying that the local variable is already in use in this scope. > > I am trying to make the variable myVar have one number and after it assigns > and prints it out on the screen, I want to re assign it to a different > number. > > What am I doing wrong?? > > Please help. > > namespace Frustrated > { > class Trusted > { > static void Main() > { > int myVar = 16; > System.Console.WriteLine("initialized, myVar: {0} ", > myVar); > int myVar = 84; > System.Console.WriteLine("next variable is: {0} " , > blew); > } > } > } > > From mmaslo1964 at swbell.net Sun May 7 21:29:53 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 7 May 2006 15:29:53 -0500 Subject: [AGDev-newbies] Who you gonna call? In-Reply-To: <445E3CDE.5030205@earthlink.net> Message-ID: <001e01c67215$001e6730$210110ac@YOURBACE1BB2CF> I understand. Makes sense once I look at your explanation. Thank you. Sorry for the rudimentary questions but trying my best and I thank you so much -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Sunday, May 07, 2006 1:31 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Who you gonna call? Hi Mike. Remove the int from int myVar = 84; and that will fix your problem. Here is a lesson in scope. If something is declared globally that means at the top of your class all the functions in that class can access it, and it only needs to be declared once with the float, int, etc. If it is a local variable, my var is a local variable, it can be declared as int somewhere else in the program, but not in the same function or scope which is in your program function main. Some examples are in order to ilistrate this. class My Class { // I am a global variable. int g_iVariable = 0; public void NewVariable() { // declare a local variable. int iVariable = 0; // Change the global variable here. g_iVariable = 23; // Change my local variable here. // This function knows the local variable exists so // need for int. iVariable = 99; } } Mike Maslo wrote: > List: > > Help already. I have created this little program and when I try to run it I > get a error saying that the local variable is already in use in this scope. > > I am trying to make the variable myVar have one number and after it assigns > and prints it out on the screen, I want to re assign it to a different > number. > > What am I doing wrong?? > > Please help. > > namespace Frustrated > { > class Trusted > { > static void Main() > { > int myVar = 16; > System.Console.WriteLine("initialized, myVar: {0} ", > myVar); > int myVar = 84; > System.Console.WriteLine("next variable is: {0} " , > blew); > } > } > } > > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Sun May 7 21:53:30 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sun, 7 May 2006 16:53:30 -0400 Subject: [AGDev-newbies] Engines was Hello all... References: <000601c671dc$89811600$210110ac@YOURBACE1BB2CF> Message-ID: <001501c67218$4cb63930$c9ad1c42@gadolum18z9hrn> well I don't claim to be as advanced as Tom or anyone else out here who is a developer, but I think I know C++ pretty well. Plus it would help me understand the OOP design much better. I can wait till the others out here who are just learning to program get to the point of doing such a project. BEAN From rbennett at southlink.us Sun May 7 22:10:37 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sun, 7 May 2006 17:10:37 -0400 Subject: [AGDev-newbies] Who you gonna call? References: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF> Message-ID: <004c01c6721a$b07128c0$c9ad1c42@gadolum18z9hrn> Hey Mike, where you have the variable and initialization( int myVar = 84;). I think if you just remove the "int" from that declaration, it should work then. Well I know that will work in C and C++ so it should work with C# as well or at least I'd think so. HTH BEAN From rbennett at southlink.us Sun May 7 22:11:23 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sun, 7 May 2006 17:11:23 -0400 Subject: [AGDev-newbies] Who you gonna call? References: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF> <445E3CDE.5030205@earthlink.net> Message-ID: <004f01c6721a$cc3465e0$c9ad1c42@gadolum18z9hrn> Hey Listers, sorry, I didn't know that Tom had already answered the question that Mike had. I didn't read any further I will do that next time, sorry. BEAN From tward1978 at earthlink.net Sun May 7 22:34:27 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 07 May 2006 17:34:27 -0400 Subject: [AGDev-newbies] Who you gonna call? In-Reply-To: <001e01c67215$001e6730$210110ac@YOURBACE1BB2CF> References: <001e01c67215$001e6730$210110ac@YOURBACE1BB2CF> Message-ID: <445E67E3.7060207@earthlink.net> Hi, Mike. No apologies needed. This list exists for newbies, and others with no programming experience. Your mistake was a common one, and sometimes, not often, I make the same mistake of adding a type before a variable when it is already declared somewhere else in the same scope. Fortunately, I know the build error for what it is, and know exactly what to look for and how to fix it. Mike Maslo wrote: > I understand. Makes sense once I look at your explanation. Thank you. > > Sorry for the rudimentary questions but trying my best and I thank you so > much > From csm120 at cfl.rr.com Sun May 7 22:42:24 2006 From: csm120 at cfl.rr.com (Casey) Date: Sun, 7 May 2006 17:42:24 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all References: <000c01c67126$c1ba0f10$210110ac@YOURBACE1BB2CF> <008101c6712a$de1326c0$0301a8c0@csm120> <445D301F.3020103@earthlink.net> Message-ID: <004801c6721f$212fa100$0301a8c0@csm120> I have done that, I have the pro version, I think, or perhaps it is the enterprise edition, I can't remember for sure. I mostly seam to have trouble in dragging objects from the tool box. I can't seam to arrow to objects. In vb6, I was able to arrow Down to the object, and tap the enter key. Then I could move the object around on the form etc. I don't seam to be able to do that with vs2k5. Casey ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Saturday, May 06, 2006 7:24 PM Subject: Re: [AGDev-newbies] VS 2005 was Hello all Hi Casey. I would say it a bit a both. Jaws doesn't have terrably good access to 2005 Express yet, but if you are familiar with Visual Studio chanses are you can improve things by undocking some Windows, and knowing what does what. Casey wrote: > I'm not very far along. I started a few years ago with vb6. I > eventually got to the point where I could write very simple programs > from scratch without looking at a tutorial first. Now I feel lost > again, and VS2k5 doesn't seam to work as well as vb6. I would consider > moving in to a c language if I could get better results from vs2k5. > I'm not sure if it is me, or the vs jaws relationships. > > > Casey _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Mon May 8 03:20:45 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 7 May 2006 21:20:45 -0500 Subject: [AGDev-newbies] VS 2005 was Hello all In-Reply-To: <004801c6721f$212fa100$0301a8c0@csm120> Message-ID: <002201c67246$03dd74c0$210110ac@YOURBACE1BB2CF> Casey: You a total or partial?? If total, how did you move around? I don't know how to know where I am in or on the screen to drag and drop. Please explain. Also I am on mathematical equations. Boy is it confusing. The && short, long, etc. Help someone make it make sense?? -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Sunday, May 07, 2006 4:42 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] VS 2005 was Hello all I have done that, I have the pro version, I think, or perhaps it is the enterprise edition, I can't remember for sure. I mostly seam to have trouble in dragging objects from the tool box. I can't seam to arrow to objects. In vb6, I was able to arrow Down to the object, and tap the enter key. Then I could move the object around on the form etc. I don't seam to be able to do that with vs2k5. Casey ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Saturday, May 06, 2006 7:24 PM Subject: Re: [AGDev-newbies] VS 2005 was Hello all Hi Casey. I would say it a bit a both. Jaws doesn't have terrably good access to 2005 Express yet, but if you are familiar with Visual Studio chanses are you can improve things by undocking some Windows, and knowing what does what. Casey wrote: > I'm not very far along. I started a few years ago with vb6. I > eventually got to the point where I could write very simple programs > from scratch without looking at a tutorial first. Now I feel lost > again, and VS2k5 doesn't seam to work as well as vb6. I would consider > moving in to a c language if I could get better results from vs2k5. > I'm not sure if it is me, or the vs jaws relationships. > > > Casey _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From csm120 at cfl.rr.com Mon May 8 13:51:27 2006 From: csm120 at cfl.rr.com (Casey) Date: Mon, 8 May 2006 08:51:27 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all References: <002201c67246$03dd74c0$210110ac@YOURBACE1BB2CF> Message-ID: <002901c6729e$1f56a890$0301a8c0@csm120> When I had vb6, I was told via Jaws what item in the tool box I was on. I could then move the object on the form, and again Jaws would tell me if any other object was overlapping. It works great, I just wish I had the same functionality in vs2k5! Casey ----- Original Message ----- From: "Mike Maslo" To: "'Friendly informal list for those new to AG development'" Sent: Sunday, May 07, 2006 10:20 PM Subject: RE: [AGDev-newbies] VS 2005 was Hello all Casey: You a total or partial?? If total, how did you move around? I don't know how to know where I am in or on the screen to drag and drop. Please explain. Also I am on mathematical equations. Boy is it confusing. The && short, long, etc. Help someone make it make sense?? -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Sunday, May 07, 2006 4:42 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] VS 2005 was Hello all I have done that, I have the pro version, I think, or perhaps it is the enterprise edition, I can't remember for sure. I mostly seam to have trouble in dragging objects from the tool box. I can't seam to arrow to objects. In vb6, I was able to arrow Down to the object, and tap the enter key. Then I could move the object around on the form etc. I don't seam to be able to do that with vs2k5. Casey ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Saturday, May 06, 2006 7:24 PM Subject: Re: [AGDev-newbies] VS 2005 was Hello all Hi Casey. I would say it a bit a both. Jaws doesn't have terrably good access to 2005 Express yet, but if you are familiar with Visual Studio chanses are you can improve things by undocking some Windows, and knowing what does what. Casey wrote: > I'm not very far along. I started a few years ago with vb6. I > eventually got to the point where I could write very simple programs > from scratch without looking at a tutorial first. Now I feel lost > again, and VS2k5 doesn't seam to work as well as vb6. I would consider > moving in to a c language if I could get better results from vs2k5. > I'm not sure if it is me, or the vs jaws relationships. > > > Casey _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From z2004a1 at columbus.rr.com Mon May 8 14:20:59 2006 From: z2004a1 at columbus.rr.com (Tim) Date: Mon, 08 May 2006 09:20:59 -0400 Subject: [AGDev-newbies] Who you gonna call? In-Reply-To: <004f01c6721a$cc3465e0$c9ad1c42@gadolum18z9hrn> References: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF> <445E3CDE.5030205@earthlink.net> <004f01c6721a$cc3465e0$c9ad1c42@gadolum18z9hrn> Message-ID: <7.0.1.0.2.20060508091824.025c6860@columbus.rr.com> No problem rather see a back up of info or a different way of doing the same. Then two different totally ways that don't work. At 05:11 PM 5/7/2006, you wrote: >Hey Listers, sorry, I didn't know that Tom had already answered the >question that Mike had. I didn't read any further I will do that >next time, sorry. >BEAN >_______________________________________________ >AGDev-newbies mailing list >AGDev-newbies at lists.agdev.org >http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Mon May 8 19:41:50 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 08 May 2006 14:41:50 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all In-Reply-To: <002901c6729e$1f56a890$0301a8c0@csm120> References: <002201c67246$03dd74c0$210110ac@YOURBACE1BB2CF> <002901c6729e$1f56a890$0301a8c0@csm120> Message-ID: <445F90EE.2020400@earthlink.net> Hi Casey. The toolbox works fine in VS 2003, and I am told it works well with the Pro version of VS 2005. However, access to the toolbox is broken in the express versions. However, if you are willing to put some extra work in to it it is possible to code the controls by hand without the toolbox. Casey wrote: > When I had vb6, I was told via Jaws what item in the tool box I was on. I > could then move the object on the form, and again Jaws would tell me if any > other object was overlapping. > It works great, I just wish I had the same functionality in vs2k5! > > > Casey > From rbennett at southlink.us Mon May 8 21:27:22 2006 From: rbennett at southlink.us (Richard Bennett) Date: Mon, 8 May 2006 16:27:22 -0400 Subject: [AGDev-newbies] Who you gonna call? References: <000e01c671ff$8058cbe0$210110ac@YOURBACE1BB2CF><445E3CDE.5030205@earthlink.net><004f01c6721a$cc3465e0$c9ad1c42@gadolum18z9hrn> <7.0.1.0.2.20060508091824.025c6860@columbus.rr.com> Message-ID: <00b801c672dd$d07a4250$c9ad1c42@gadolum18z9hrn> that is the way I feel as well, but don't want to overlaod the list as well. It is that I have that same error many times myself and thought I might know what the error was having had it around feels like a million times, *grin* BEAN From csm120 at cfl.rr.com Tue May 9 00:40:15 2006 From: csm120 at cfl.rr.com (Casey) Date: Mon, 8 May 2006 19:40:15 -0400 Subject: [AGDev-newbies] VS 2005 was Hello all References: <002201c67246$03dd74c0$210110ac@YOURBACE1BB2CF> <002901c6729e$1f56a890$0301a8c0@csm120> <445F90EE.2020400@earthlink.net> Message-ID: <001201c672f8$c3425d00$0301a8c0@csm120> Well, I'm really confused. I think I'm really missing something between the way I'm used to doing things with the vb6 interface, and the vs2k5 interface. I can arrow down to different tool box items, but there are in no order, sometimes I'll go from 1 to 14 in the list. When I do press enter on an item, I don't know how to find it in the form. I used to be dropped right on the item back in the vb6 days. Even when I manage to get out of the tool box, I cannot seam to find the items. Somehow I realize there must be a simpler way, because otherwise there would not be so many blind programmers using this. I have jaws 7.0, and jaws 7.1. Thanks for any help. Casey ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Monday, May 08, 2006 2:41 PM Subject: Re: [AGDev-newbies] VS 2005 was Hello all Hi Casey. The toolbox works fine in VS 2003, and I am told it works well with the Pro version of VS 2005. However, access to the toolbox is broken in the express versions. However, if you are willing to put some extra work in to it it is possible to code the controls by hand without the toolbox. Casey wrote: > When I had vb6, I was told via Jaws what item in the tool box I was on. I > could then move the object on the form, and again Jaws would tell me if > any > other object was overlapping. > It works great, I just wish I had the same functionality in vs2k5! > > > Casey > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From singingbutterfly at cox.net Tue May 9 02:39:11 2006 From: singingbutterfly at cox.net (Bryan McGucken) Date: Mon, 8 May 2006 21:39:11 -0400 Subject: [AGDev-newbies] Engine or code Message-ID: <001a01c67309$60331c20$ad290944@YOUR36A76B5903> Hi all. I remember last week someone mentioned what it would be like to take an existing game engine and make it more accessible. Well, I think I have the perfect one. It already works with JAWS, but pehraps there's someone out there who can spruce it up a bit. It's called Game Maker, and it's in V 6.1 and has 3D sound capability and other features. You can add invisible objects and manipulate .wav, .mid, and.mp3 files with it. It has panning, volume, and doplar. These advanced features are only available in the registered version, which I think is around $20. The even cooler thing is that it has its own stand-alone built-in programming langauge, so that one can create rooms, objects, and sounds and then pass code to the project to give the developer more flexibility to do stuff. And the documentation is in plain English. I've tried to make rooms and play sounds with it before, although I suppose my old computer was having problems and at the time the engine wasn't as advanced as it is now. You can even create executables with it. I don't know how encryption would work, you know, to make registrable demos and such. Anyone interested in maybe trying this out should go to www.gamemaker.nl . Everything you need to get going is right there, and the documentation is in Word, Adobe, and web page formats. Also, for programming gurus, there's a programming language and game editor out there called Games Basic that looks a lot like VB or C# or something like that. For coders that might be a neat way to go. That's at www.gamesbasic.com . Oh, and with Game Maker you can run your game in debug mode before generating a .exe file from your completed project. Hope you guys find this interesting. Bryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard at audiogames.net Tue May 9 06:16:21 2006 From: richard at audiogames.net (AudioGames.net) Date: Tue, 9 May 2006 07:16:21 +0200 Subject: [AGDev-newbies] GameMaker - (was:Engine or code) References: <001a01c67309$60331c20$ad290944@YOUR36A76B5903> Message-ID: <005001c67327$b5adc1a0$8e8b2ed5@Delletje> Hy Bryan and list, I actually am in contact with Mark Overmars, the professor who developed GameMaker (he's Dutch too). GameMaker is used by many students all around the world and certainly is a valid tool. I have already considered doing a project with GameMaker about game accessibility for our GA project at the foundation where I work (www.game-accessibility.com). I would like to suggest that if any of you try this program, could you perhaps write down you experiences and problems with it (with screenreaders and other stuff). I can then forward that kind of feedback to Mark and ask him to: - improve gamemaker as a development tool for people with a disability (so every part of the tool is accessible) - improve gamemaker as a development tool for accessible games (so games made with gamemaker are more accessible) Greets, Richard http://www.audiogames.net ----- Original Message ----- From: Bryan McGucken To: agdev-newbies at lists.agdev.org Sent: Tuesday, May 09, 2006 3:39 AM Subject: [AGDev-newbies] Engine or code Hi all. I remember last week someone mentioned what it would be like to take an existing game engine and make it more accessible. Well, I think I have the perfect one. It already works with JAWS, but pehraps there's someone out there who can spruce it up a bit. It's called Game Maker, and it's in V 6.1 and has 3D sound capability and other features. You can add invisible objects and manipulate .wav, .mid, and.mp3 files with it. It has panning, volume, and doplar. These advanced features are only available in the registered version, which I think is around $20. The even cooler thing is that it has its own stand-alone built-in programming langauge, so that one can create rooms, objects, and sounds and then pass code to the project to give the developer more flexibility to do stuff. And the documentation is in plain English. I've tried to make rooms and play sounds with it before, although I suppose my old computer was having problems and at the time the engine wasn't as advanced as it is now. You can even create executables with it. I don't know how encryption would work, you know, to make registrable demos and such. Anyone interested in maybe trying this out should go to www.gamemaker.nl . Everything you need to get going is right there, and the documentation is in Word, Adobe, and web page formats. Also, for programming gurus, there's a programming language and game editor out there called Games Basic that looks a lot like VB or C# or something like that. For coders that might be a neat way to go. That's at www.gamesbasic.com . Oh, and with Game Maker you can run your game in debug mode before generating a .exe file from your completed project. Hope you guys find this interesting. Bryan ------------------------------------------------------------------------------ _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From KenWDowney at neo.rr.com Tue May 9 08:01:31 2006 From: KenWDowney at neo.rr.com (Ken the Crazy) Date: Tue, 9 May 2006 03:01:31 -0400 Subject: [AGDev-newbies] Engines was Hello all... References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net> Message-ID: <006601c67336$6702e8f0$e30b4847@dti0ad40a0de96> I will definitely help in any way I can to write such an engine. My experience is somewhat limited, but I'm still learning as well. I guess that since VB.net is so much different than vb6 that I'm going to learn c. ----- Original Message ----- From: "Thomas Ward" To: "Bryan McGucken" ; "Friendly informal list for those new to AG development" Sent: Saturday, May 06, 2006 9:58 PM Subject: Re: [AGDev-newbies] Engines was Hello all... > Hi Bryan. > There are high quality game engines out there for the blind such as the > GMA game engine, but you will quickly find it can be quite costly after a > while. For example, if you licensed the GMA engine it is assumed you are > writing games for commercial use so you are going to have to pay a couple > hundred dollars a year or something like 25% of your sales for licensing > fees. I don't remember the exact details at the moment, but I did know it > is cheaper to write your games yourself. > I did mention a little while back on this list about sitting down as a > group and writing our own open source engine, but didn't get much of a > response at that. That is understandable since that is an advanced piece > of programming for a list full of new programmers, but it is something to > think about down the road. > > > Bryan McGucken wrote: >> Good evening everyone. I'm sure some of you already know me, but let me >> quickly introduce myself and then get to my question. I hope that won't >> confuse too many, but I don't want to spam the list. >> My name is Bryan. I am thirty years old and live in Lakewood, Ohio in >> the U.S. I am currently a Customer Service Representative. I have been >> playing games since around 1984, and have always wanted to make my own. >> I remember some contest where if your juice bottle had the right number >> code on it you were awarded the right to create and design your own >> Nintendo game. I didn't win, but I still want to make games. Now, be >> advised, I don't have any programming experience or formal training >> except for some limited work with Applesoft basic back in the early >> nineties. Maybe it seems like I'm taking the easy way out, but I know >> there are game engines out there, and I want to use one to make different >> genres of games, e.g., racing, RPG, third-person shooter, vertical >> scrolling shooter, dance sims, etc. That said, I am interested in seeing >> this new game engine everyone's been talking about coming to fruition, >> but I'm ashamed to admit I can't help in any way with scripting or >> compiling. I'd use the GMA game engine, but I'd asked around about it >> with no result, perhaps because it's not for distribution. I heard there >> was work being done on an engine down in Uruguay or something, but >> haven't heard about it since. I know an RPG engine was developed, but >> don't know how useful it would be if the map editor is as inaccessible as >> its own authors claim. I wish I had time to learn C++, or even C#, but I >> just don't. If any of you have information on any of these things, I'd >> love to hear from you. I'll have to check out audiosparx.com. Hopefully >> it will yield more than findsounds.com did. Hopefully I'll be getting my >> Cakewalk MIDI program back up and running. You see, my computer crashed >> last April and my new father-in-law built us one and shipped it out here >> in October. Of course, if there are any freeware MIDI programs out >> there, I'll gladly use one. Well, that's all just now. Bryan >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies >> ------------------------------------------------------------------------ >> >> Internal Virus Database is out-of-date. >> Checked by AVG Free Edition. >> Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 >> > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From KenWDowney at neo.rr.com Tue May 9 08:06:31 2006 From: KenWDowney at neo.rr.com (Ken the Crazy) Date: Tue, 9 May 2006 03:06:31 -0400 Subject: [AGDev-newbies] Hello all References: <001c01c6712e$8e790d10$210110ac@YOURBACE1BB2CF> Message-ID: <009701c67337$1a1d2130$e30b4847@dti0ad40a0de96> I don't know how hard it is to convert c# to c++ but if there is a great difference we might start with c++ if c# is too limited. If c# isn't greatly limited, I say we go for it. Like I said, VB.net is far from vb6, and I'm not going to bother learning it if there isn't even any support in the msdn library or the dx9 sdk. ----- Original Message ----- From: "Mike Maslo" To: "'Friendly informal list for those new to AG development'" Sent: Saturday, May 06, 2006 1:00 PM Subject: RE: [AGDev-newbies] Hello all > Thomas: > > Will do that but my vote is c# because I have gotten the book learn c# > with > Jesse somebody. > > What was the consensus? > > I am eager and want to learn badly > > -----Original Message----- > From: agdev-newbies-bounces at lists.agdev.org > [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward > Sent: Saturday, May 06, 2006 11:41 AM > To: Friendly informal list for those new to AG development > Subject: Re: [AGDev-newbies] Hello all > > Hi Mike. > Your a bit late for class. Grin. > We have currently been discussing C# verses C++, object oriented > designs, and are voting on what language to discuss first. > If you missed all that I suggest going back and reading the list > archives to get up to speed. > > > Mike Maslo wrote: >> >> Hello all: >> >> Anyone out here??? Let's et going here. Anyone ready to start >> programming in c#? I have visual basic 2005 but can't tell yet if it >> is Jaws friendly. >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies >> >> ------------------------------------------------------------------------ >> >> Internal Virus Database is out-of-date. >> Checked by AVG Free Edition. >> Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 >> > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Tue May 9 17:20:16 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 09 May 2006 12:20:16 -0400 Subject: [AGDev-newbies] Engine or code In-Reply-To: <001a01c67309$60331c20$ad290944@YOUR36A76B5903> References: <001a01c67309$60331c20$ad290944@YOUR36A76B5903> Message-ID: <4460C140.6050206@earthlink.net> Hi, Bryan. Keep us informed in what you find out about Game Maker. It is certainly something I personally wouldn't use, but there may be a few who might wish to give it a try. My concern is even though you can script the engine there is likely hidden limitations. What they might be at this point would be a guess at best. Bryan McGucken wrote: > Hi all. I remember last week someone mentioned what it would be like > to take an existing game engine and make it more accessible. Well, I > think I have the perfect one. It already works with JAWS, but pehraps > there's someone out there who can spruce it up a bit. It's called > Game Maker, and it's in V 6.1 and has 3D sound capability and other > features. You can add invisible objects and manipulate .wav, .mid, > and.mp3 files with it. It has panning, volume, and doplar. These > advanced features are only available in the registered version, which > I think is around $20. The even cooler thing is that it has its own > stand-alone built-in programming langauge, so that one can create > rooms, objects, and sounds and then pass code to the project to give > the developer more flexibility to do stuff. And the documentation is > in plain English. I've tried to make rooms and play sounds with it > before, although I suppose my old computer was having problems and at > the time the engine wasn't as advanced as it is now. You can even > create executables with it. I don't know how encryption would work, > you know, to make registrable demos and such. Anyone interested in > maybe trying this out should go to > www.gamemaker.nl > . Everything you need to get going is right there, and the > documentation is in Word, Adobe, and web page formats. Also, for > programming gurus, there's a programming language and game editor out > there called Games Basic that looks a lot like VB or C# or something > like that. For coders that might be a neat way to go. That's at > www.gamesbasic.com > . Oh, and with Game Maker you can run your game in debug mode before > generating a .exe file from your completed project. Hope you guys > find this interesting. Bryan > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From tward1978 at earthlink.net Tue May 9 17:27:15 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 09 May 2006 12:27:15 -0400 Subject: [AGDev-newbies] Engines was Hello all... In-Reply-To: <006601c67336$6702e8f0$e30b4847@dti0ad40a0de96> References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net> <006601c67336$6702e8f0$e30b4847@dti0ad40a0de96> Message-ID: <4460C2E3.30601@earthlink.net> Hi, Ken. Yeah, VB.net is quite a leap for VB 6 developers. In one way it looks the same, but in another it is so object oriented now going from a non-oop design or partial oop design to a full oop design basicly forces VB 6 developers to relearn what they thought they knew. When you say you are going to learn c did you mean c, c++, or C#. There are three varients of the c language. C is the original language not good for games, C++ is the object oriented version which is almost always used for games, and C# is Microsoft's own brand of C which is fully dependant on the .net framework. Ken the Crazy wrote: > I will definitely help in any way I can to write such an engine. My > experience is somewhat limited, but I'm still learning as well. I > guess that since VB.net is so much different than vb6 that I'm going > to learn c. From tward1978 at earthlink.net Tue May 9 17:52:09 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 09 May 2006 12:52:09 -0400 Subject: [AGDev-newbies] Hello all In-Reply-To: <009701c67337$1a1d2130$e30b4847@dti0ad40a0de96> References: <001c01c6712e$8e790d10$210110ac@YOURBACE1BB2CF> <009701c67337$1a1d2130$e30b4847@dti0ad40a0de96> Message-ID: <4460C8B9.40001@earthlink.net> Hi, Ken. As I mentioned prier on the list C# is capable of writing some pretty high quality games. Currently all my titles STFC, Montezuma's Revenge, and the Star Wars game are written in C#. What's more it does have a easier learning curve than C++. Some disadvantages is somewhat less documentation for gamers as C# is a new language. It needs third-party encryption and obfuscation tools to protect your binaries from hackers. Third, there is less variety of licensing tools to be purchased for licensing your games. Those are some of the disadvantages. C++ on the other hand is the defacto game language. It has almost all the documentation on gaming one would need, compiles to a real native binary not requiring obfuscation tools, greater licensing options and has some other advantages. A really cool thing that can be done with C++ and can't be done in C# is being able to link your wav files to the compiled exe and when you compile the sounds are compiled in. The advantage is it makes it much harder to hack sound effects. Of course, nothing is going to stop someone from recording them if they wanted them bad enough, but it will stop them from reaching in some folder and just copying them. The disadvantages is C++ has allot more to learn. Even though you might know the language there is much more you would need to know about the MS Win32 API and how to work with Windows applications. C++ handles events allot differently and you have to understand how to work with Windows events, and it is in my opinion allot trickier than with C#. Finally, C++ is not a rapid development language so it seams to me it takes twice as long to put a design in place for a game do to all the extra work needed to draw Windows, buttons dialogs, etc and it is not as simple as it is in C#. You asked about converting C# to C++. There are often many small changes in the languages. On the surface they look pretty identical. However, one major area you would have problems with is the C#.net uses the .net framework for just about everything. That is all well and good if you are going to use those libraries. However, if you want to go back and convert it to a standard C++ Win32 API then there is some stuff that would just have to be rewritten from scratch. Take this example. in C# to open a high score file you would use file.Read(@"high_score.txt"); In C++ you would have to do something like fopen(@"high_score.txt"); which is done differently. Now, if you were converting from C#.net to C++.net the changes would be miner. From rbennett at southlink.us Tue May 9 21:48:05 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 9 May 2006 16:48:05 -0400 Subject: [AGDev-newbies] Engine or code References: <001a01c67309$60331c20$ad290944@YOUR36A76B5903> Message-ID: <002201c673a9$df62a8d0$c9ad1c42@gadolum18z9hrn> that does sound interesting. As soon as I get some extra cash, I will delve into that more in depth if it is written in C++. Could be something to deeply consider. Thanks for bringing that to our attention. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbennett at southlink.us Tue May 9 22:04:44 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 9 May 2006 17:04:44 -0400 Subject: [AGDev-newbies] GameMaker - (was:Engine or code) References: <001a01c67309$60331c20$ad290944@YOUR36A76B5903> <005001c67327$b5adc1a0$8e8b2ed5@Delletje> Message-ID: <009101c673ac$331b15a0$c9ad1c42@gadolum18z9hrn> If I do purchase this later on, I will most definitely write up an article for you. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard at audiogames.net Tue May 9 22:11:43 2006 From: richard at audiogames.net (AudioGames.net) Date: Tue, 9 May 2006 23:11:43 +0200 Subject: [AGDev-newbies] GameMaker - (was:Engine or code) References: <001a01c67309$60331c20$ad290944@YOUR36A76B5903><005001c67327$b5adc1a0$8e8b2ed5@Delletje> <009101c673ac$331b15a0$c9ad1c42@gadolum18z9hrn> Message-ID: <00c001c673ad$2c4a6f90$8e8b2ed5@Delletje> Hi, You can download a free demo with slightly limited functionality here: http://www.gamemaker.nl/download/gmaker.exe Greets, Richard ----- Original Message ----- From: Richard Bennett To: Friendly informal list for those new to AG development Sent: Tuesday, May 09, 2006 11:04 PM Subject: Re: [AGDev-newbies] GameMaker - (was:Engine or code) If I do purchase this later on, I will most definitely write up an article for you. BEAN ------------------------------------------------------------------------------ _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmaslo1964 at swbell.net Wed May 10 03:13:49 2006 From: mmaslo1964 at swbell.net (michael maslo) Date: Tue, 9 May 2006 19:13:49 -0700 (PDT) Subject: [AGDev-newbies] Hello all... In-Reply-To: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> Message-ID: <20060510021349.53246.qmail@web80806.mail.yahoo.com> Brian: Never say you can't learn programming. I am older then you and I am right now studying and trying to teach myself visual C# and will do it with the help of this list. I sincerely appreciate all members on this list for I know that I am going to lean on you a lot. I really want to learn how to program and know it will be tough but with support of others I know I can do it. I thank Thomas so much and the others for al help. Please be patient for I am serious in learning. I am on Chapter 5 now of the book where it talks about loops, while, if and then etc. Brian, also I know you. You work for the same agency as me and we are supposed to have a focus group coming up. Tell Molly I say hello. Never thought I would see another one of us on the list. Talk soon. Drop me a email at work. Thanks again Thomas and otehrs on this list for your help in the past and much help that I will need in the future. Mike Maslo --- Bryan McGucken wrote: > Good evening everyone. I'm sure some of you already > know me, but let me quickly introduce myself and > then get to my question. I hope that won't confuse > too many, but I don't want to spam the list. > My name is Bryan. I am thirty years old and live in > Lakewood, Ohio in the U.S. I am currently a > Customer Service Representative. I have been > playing games since around 1984, and have always > wanted to make my own. I remember some contest > where if your juice bottle had the right number code > on it you were awarded the right to create and > design your own Nintendo game. I didn't win, but I > still want to make games. Now, be advised, I don't > have any programming experience or formal training > except for some limited work with Applesoft basic > back in the early nineties. Maybe it seems like I'm > taking the easy way out, but I know there are game > engines out there, and I want to use one to make > different genres of games, e.g., racing, RPG, > third-person shooter, vertical scrolling shooter, > dance sims, etc. That said, I am interested in > seeing this new game engine everyone's been talking > about coming to fruition, but I'm ashamed to admit I > can't help in any way with scripting or compiling. > I'd use the GMA game engine, but I'd asked around > about it with no result, perhaps because it's not > for distribution. I heard there was work being done > on an engine down in Uruguay or something, but > haven't heard about it since. I know an RPG engine > was developed, but don't know how useful it would be > if the map editor is as inaccessible as its own > authors claim. I wish I had time to learn C++, or > even C#, but I just don't. If any of you have > information on any of these things, I'd love to hear > from you. I'll have to check out audiosparx.com. > Hopefully it will yield more than findsounds.com > did. Hopefully I'll be getting my Cakewalk MIDI > program back up and running. You see, my computer > crashed last April and my new father-in-law built us > one and shipped it out here in October. Of course, > if there are any freeware MIDI programs out there, > I'll gladly use one. Well, that's all just now. Bryan> _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > From KenWDowney at neo.rr.com Wed May 10 03:39:40 2006 From: KenWDowney at neo.rr.com (Ken the Crazy) Date: Tue, 9 May 2006 22:39:40 -0400 Subject: [AGDev-newbies] Engines was Hello all... References: <000c01c67161$9158f350$ad290944@YOUR36A76B5903> <445D5436.4050509@earthlink.net> <006601c67336$6702e8f0$e30b4847@dti0ad40a0de96> <4460C2E3.30601@earthlink.net> Message-ID: <002101c673da$fce6b280$e30b4847@dti0ad40a0de96> Probably c++ because it seems that it's more versatile. ----- Original Message ----- From: "Thomas Ward" To: "Ken the Crazy" ; "Friendly informal list for those new to AG development" Sent: Tuesday, May 09, 2006 12:27 PM Subject: Re: [AGDev-newbies] Engines was Hello all... > Hi, Ken. > Yeah, VB.net is quite a leap for VB 6 developers. In one way it looks the > same, but in another it is so object oriented now going from a non-oop > design or partial oop design to a full oop design basicly forces VB 6 > developers to relearn what they thought they knew. > When you say you are going to learn c did you mean c, c++, or C#. There > are three varients of the c language. C is the original language not good > for games, C++ is the object oriented version which is almost always used > for games, and C# is Microsoft's own brand of C which is fully dependant > on the .net framework. > > > Ken the Crazy wrote: >> I will definitely help in any way I can to write such an engine. My >> experience is somewhat limited, but I'm still learning as well. I guess >> that since VB.net is so much different than vb6 that I'm going to learn >> c. > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From KenWDowney at neo.rr.com Wed May 10 03:42:54 2006 From: KenWDowney at neo.rr.com (Ken the Crazy) Date: Tue, 9 May 2006 22:42:54 -0400 Subject: [AGDev-newbies] Hello all References: <001c01c6712e$8e790d10$210110ac@YOURBACE1BB2CF> <009701c67337$1a1d2130$e30b4847@dti0ad40a0de96> Message-ID: <004401c673db$7094a660$e30b4847@dti0ad40a0de96> Let's go with c#.net. ----- Original Message ----- From: "Ken the Crazy" To: "Friendly informal list for those new to AG development" Sent: Tuesday, May 09, 2006 3:06 AM Subject: Re: [AGDev-newbies] Hello all >I don't know how hard it is to convert c# to c++ but if there is a great >difference we might start with c++ if c# is too limited. If c# isn't >greatly limited, I say we go for it. Like I said, VB.net is far from vb6, >and I'm not going to bother learning it if there isn't even any support in >the msdn library or the dx9 sdk. > ----- Original Message ----- > From: "Mike Maslo" > To: "'Friendly informal list for those new to AG development'" > > Sent: Saturday, May 06, 2006 1:00 PM > Subject: RE: [AGDev-newbies] Hello all > > >> Thomas: >> >> Will do that but my vote is c# because I have gotten the book learn c# >> with >> Jesse somebody. >> >> What was the consensus? >> >> I am eager and want to learn badly >> >> -----Original Message----- >> From: agdev-newbies-bounces at lists.agdev.org >> [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward >> Sent: Saturday, May 06, 2006 11:41 AM >> To: Friendly informal list for those new to AG development >> Subject: Re: [AGDev-newbies] Hello all >> >> Hi Mike. >> Your a bit late for class. Grin. >> We have currently been discussing C# verses C++, object oriented >> designs, and are voting on what language to discuss first. >> If you missed all that I suggest going back and reading the list >> archives to get up to speed. >> >> >> Mike Maslo wrote: >>> >>> Hello all: >>> >>> Anyone out here??? Let's et going here. Anyone ready to start >>> programming in c#? I have visual basic 2005 but can't tell yet if it >>> is Jaws friendly. >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> AGDev-newbies mailing list >>> AGDev-newbies at lists.agdev.org >>> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies >>> >>> ------------------------------------------------------------------------ >>> >>> Internal Virus Database is out-of-date. >>> Checked by AVG Free Edition. >>> Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 >>> >> >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies >> >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Wed May 10 03:50:08 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 09 May 2006 22:50:08 -0400 Subject: [AGDev-newbies] Toolbox solutions. In-Reply-To: <20060510021349.53246.qmail@web80806.mail.yahoo.com> References: <20060510021349.53246.qmail@web80806.mail.yahoo.com> Message-ID: <446154E0.3080801@earthlink.net> Hi all. Many of you have indicated problems with the Visual Studio Express toolbox. A friend and I were experimenting, and we have come up with a very accessible solution for the toolbox, and placing controls on the forms. Note, we tested this with Jaws 7 and Window Eyes 5.5 with Visual C# 2005 so this is sure fire for both screen readers. 1. Press control+w. 2. Press the letter x. 3. This will put you in an accessible list of controls. 4. Use up and down arrow to cycle through the toolbox controls. 5. To select an item say a button to place on the form press enter. 6. Once your item is placed use f4 to open the properties Window. 7. In the properties Window you can change the size of the controls, rename the controls, set its text label, and also set its location on the form. Tips. Many people use to VB 6 got use to dragging and dropping controls. This doesn't work with VS 2005, and that is really the wrong approach anyway. You may wonder why. If you are doing a visual form I tend to go in to the properties Window and give my controls very even values for width, height, and location. The reason is that it makes it very easy to calculate where each item should be in relation to each other. Fortunately, since we are working with games you won't have to deal much with forms beyond a welcome screen, and perhaps a registration screen. The rest is dropping timers, and other necessary game controls. Position of the timers doesn't mean anything, because they are invisible anyway. Hope this helps. From tward1978 at earthlink.net Wed May 10 04:14:32 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 09 May 2006 23:14:32 -0400 Subject: [AGDev-newbies] Hello all... In-Reply-To: <20060510021349.53246.qmail@web80806.mail.yahoo.com> References: <20060510021349.53246.qmail@web80806.mail.yahoo.com> Message-ID: <44615A98.3010807@earthlink.net> Hi Mike. You will find that chapter 5 is an extremely important chapter as all of it applies to game programming. Here is some common examples. In the first example I am going to draw a wall by using a for loop and an array I will call world. for(i = 1; i < 11; i++) world.[i][1] = wall; In the above example the for loop is used to populate the world array with a wall that ranges from sector 1-1 to sector 10-1. Other objects such as ladders, ropes, doors, can be drawn equally in the same way. In the second example I am going to use the while loop to wait for a sound effect to stop playing. while(sound.Status.Playing() == true) { Application.DoEvents(); } What happens in this example the function will continue to loop while the sound is playing. As soon as the sound stops the Playing flag is set to false, and that portion of code will continue. This is good for cases where you want a gun shot to finish before the explosion or killed sound. I also use the while loop heavily when doing jumps. It tests weather or not the player encountered something. If the player encounters something the player is broke out of the loop. If not the player continues the jump until the maximum distance is reached. From csm120 at cfl.rr.com Wed May 10 05:18:05 2006 From: csm120 at cfl.rr.com (Casey) Date: Wed, 10 May 2006 00:18:05 -0400 Subject: [AGDev-newbies] Toolbox solutions. References: <20060510021349.53246.qmail@web80806.mail.yahoo.com> <446154E0.3080801@earthlink.net> Message-ID: <001801c673e8$bcc9da70$0301a8c0@csm120> Will this work only for the express editions, or can this be applied to the pro editions also? Thanks Casey ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Tuesday, May 09, 2006 10:50 PM Subject: [AGDev-newbies] Toolbox solutions. Hi all. Many of you have indicated problems with the Visual Studio Express toolbox. A friend and I were experimenting, and we have come up with a very accessible solution for the toolbox, and placing controls on the forms. Note, we tested this with Jaws 7 and Window Eyes 5.5 with Visual C# 2005 so this is sure fire for both screen readers. 1. Press control+w. 2. Press the letter x. 3. This will put you in an accessible list of controls. 4. Use up and down arrow to cycle through the toolbox controls. 5. To select an item say a button to place on the form press enter. 6. Once your item is placed use f4 to open the properties Window. 7. In the properties Window you can change the size of the controls, rename the controls, set its text label, and also set its location on the form. Tips. Many people use to VB 6 got use to dragging and dropping controls. This doesn't work with VS 2005, and that is really the wrong approach anyway. You may wonder why. If you are doing a visual form I tend to go in to the properties Window and give my controls very even values for width, height, and location. The reason is that it makes it very easy to calculate where each item should be in relation to each other. Fortunately, since we are working with games you won't have to deal much with forms beyond a welcome screen, and perhaps a registration screen. The rest is dropping timers, and other necessary game controls. Position of the timers doesn't mean anything, because they are invisible anyway. Hope this helps. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Wed May 10 06:28:16 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 10 May 2006 01:28:16 -0400 Subject: [AGDev-newbies] Toolbox solutions. In-Reply-To: <001801c673e8$bcc9da70$0301a8c0@csm120> References: <20060510021349.53246.qmail@web80806.mail.yahoo.com> <446154E0.3080801@earthlink.net> <001801c673e8$bcc9da70$0301a8c0@csm120> Message-ID: <446179F0.70109@earthlink.net> Hi. To my knolege at this time it works in all versions of Express, Standard, and Pro. My friend talked to GW Micro on this problem, and they said the toolbox was working with Window Eyes 5.5 in Pro. So it is a safe bet this is a universal way to access the toolbox for Visual C#, Visual C++, and Visual Basic 2005. Casey wrote: > Will this work only for the express editions, or can this be applied to the > pro editions also? > Thanks > > > Casey > From mmaslo1964 at swbell.net Wed May 10 12:03:20 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Wed, 10 May 2006 06:03:20 -0500 Subject: [AGDev-newbies] Toolbox solutions. In-Reply-To: <001801c673e8$bcc9da70$0301a8c0@csm120> Message-ID: <000301c67421$596f3180$210110ac@YOURBACE1BB2CF> Thomas: Great tip. I was wondering and now really excited about moving onward and upward in my learning. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey Sent: Tuesday, May 09, 2006 11:18 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Toolbox solutions. Will this work only for the express editions, or can this be applied to the pro editions also? Thanks Casey ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Tuesday, May 09, 2006 10:50 PM Subject: [AGDev-newbies] Toolbox solutions. Hi all. Many of you have indicated problems with the Visual Studio Express toolbox. A friend and I were experimenting, and we have come up with a very accessible solution for the toolbox, and placing controls on the forms. Note, we tested this with Jaws 7 and Window Eyes 5.5 with Visual C# 2005 so this is sure fire for both screen readers. 1. Press control+w. 2. Press the letter x. 3. This will put you in an accessible list of controls. 4. Use up and down arrow to cycle through the toolbox controls. 5. To select an item say a button to place on the form press enter. 6. Once your item is placed use f4 to open the properties Window. 7. In the properties Window you can change the size of the controls, rename the controls, set its text label, and also set its location on the form. Tips. Many people use to VB 6 got use to dragging and dropping controls. This doesn't work with VS 2005, and that is really the wrong approach anyway. You may wonder why. If you are doing a visual form I tend to go in to the properties Window and give my controls very even values for width, height, and location. The reason is that it makes it very easy to calculate where each item should be in relation to each other. Fortunately, since we are working with games you won't have to deal much with forms beyond a welcome screen, and perhaps a registration screen. The rest is dropping timers, and other necessary game controls. Position of the timers doesn't mean anything, because they are invisible anyway. Hope this helps. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Wed May 10 12:08:27 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Wed, 10 May 2006 06:08:27 -0500 Subject: [AGDev-newbies] Hello all... In-Reply-To: <44615A98.3010807@earthlink.net> Message-ID: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF> Thomas: Thank you so much for those examples. I am slowly getting this but one thing if you don't mind. Can you explain what a array is?? I have a little idea but could you explain it a little? Thank you again so much again to you and the list. I am moving slowly. Trying to mix in my real life of work, kids etc and learning so I don't have a lot of time but every free moment I am working hard. I hope I am not slowing the list down at all. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Tuesday, May 09, 2006 10:15 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Hello all... Hi Mike. You will find that chapter 5 is an extremely important chapter as all of it applies to game programming. Here is some common examples. In the first example I am going to draw a wall by using a for loop and an array I will call world. for(i = 1; i < 11; i++) world.[i][1] = wall; In the above example the for loop is used to populate the world array with a wall that ranges from sector 1-1 to sector 10-1. Other objects such as ladders, ropes, doors, can be drawn equally in the same way. In the second example I am going to use the while loop to wait for a sound effect to stop playing. while(sound.Status.Playing() == true) { Application.DoEvents(); } What happens in this example the function will continue to loop while the sound is playing. As soon as the sound stops the Playing flag is set to false, and that portion of code will continue. This is good for cases where you want a gun shot to finish before the explosion or killed sound. I also use the while loop heavily when doing jumps. It tests weather or not the player encountered something. If the player encounters something the player is broke out of the loop. If not the player continues the jump until the maximum distance is reached. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Wed May 10 19:23:17 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 10 May 2006 14:23:17 -0400 Subject: [AGDev-newbies] Hello all... In-Reply-To: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF> References: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF> Message-ID: <44622F95.6080801@earthlink.net> Hi, Mike. An array is a specialised data type used for creating lists and tables. Arrays can be in any demention you can think of.For example, a 1D array is a single list of items ranging from 0 to the numeric size of your array. A 2D array is a table of data containing row and column information. Many games use a 2D array for drawing maps that need a specific x/y axis. A 3D array has an x/y/z axis and can be used for creating 3D objects, and thus is good for 3D games. You can go on in to the fourth demention, fifth demention, sixth demention, but I don't think the average human can conceptualise of using multiple dementions above 3D. From rbennett at southlink.us Wed May 10 22:24:48 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 10 May 2006 17:24:48 -0400 Subject: [AGDev-newbies] Hello all... References: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF> Message-ID: <006d01c67478$2c59d4a0$c9ad1c42@gadolum18z9hrn> Hey Mike, I am sure that you are not slowing down the list at all, that is what the list is for and when someone asks a question, everyone is getting the answer and learning. I don't know if Tom has answered this question, but an array is a list of items that are related in some way.(or at least that is what I was taught) BEAN From tward1978 at earthlink.net Wed May 10 22:50:11 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 10 May 2006 17:50:11 -0400 Subject: [AGDev-newbies] Hello all... In-Reply-To: <006d01c67478$2c59d4a0$c9ad1c42@gadolum18z9hrn> References: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF> <006d01c67478$2c59d4a0$c9ad1c42@gadolum18z9hrn> Message-ID: <44626013.5010503@earthlink.net> Hi. Actually, arrays can be used for allot more than lists, and can be used for complex tables of data, and of course used for drawing maps, and holding values of where everything is in a game. Richard Bennett wrote: > Hey Mike, I am sure that you are not slowing down the list at all, > that is what the list is for and when someone asks a question, > everyone is getting the answer and learning. I don't know if Tom has > answered this question, but an array is a list of items that are > related in some way.(or at least that is what I was taught) > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Wed May 10 22:57:03 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 10 May 2006 17:57:03 -0400 Subject: [AGDev-newbies] Hello all... References: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF><006d01c67478$2c59d4a0$c9ad1c42@gadolum18z9hrn> <44626013.5010503@earthlink.net> Message-ID: <01cb01c6747c$acbde290$c9ad1c42@gadolum18z9hrn> true, but I learned about arrays in a simple form and he was trying to explain it to us in a basic sense so that is how I got that way. But thanks for the addition/correction. BEAN From tward1978 at earthlink.net Thu May 11 00:08:00 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 10 May 2006 19:08:00 -0400 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <01cb01c6747c$acbde290$c9ad1c42@gadolum18z9hrn> References: <000401c67422$15c43c90$210110ac@YOURBACE1BB2CF><006d01c67478$2c59d4a0$c9ad1c42@gadolum18z9hrn> <44626013.5010503@earthlink.net> <01cb01c6747c$acbde290$c9ad1c42@gadolum18z9hrn> Message-ID: <44627250.7080106@earthlink.net> Hi all. Since this topic has come up I thought I would discuss arrays, and ways of effectively using them in your games. As I stated before they can be anything from a simple list of related items, or a complex table of items. In games you will often use arrays to draw your world and everything in it. By drawing I actually mean filling up the array with the variables that hold your items such as walls, troopers, force fields, etc. When drawing world maps you will want to create what is called a enumerated array. These arrays are basically list of constant variables. This just means every item in the list will be asigned a unique ID number you can reference in your other game arrays. The following example is in C#.net. enum Item { Nothing, trooper, wall } The above array is a constant list of objects or items you will find in your game world. In case you are wondering nothing defaults to the value 0 and wall is actually item 2, but since you used the array you don't need to know the actual ID number asigned. Your other arrays will figure that out when you call upon this array list. Now, we want to have a 3D world array. So lets create one. int[,,] g_world = new int[50, 50, 50); What we just did is create a 3D array or world that is an even cube. That means your x/y/z axis have a length of 50 units ranging from 0 to 49. Most newbies get confused on this point as most think that an array begins with the number 1, but they actually start with 0. So if you want an array that actually ends with the number 50 you would have to replace int[50, 50, 50] with int[51, 51, 51]. As I mentioned in a previous post to draw something you can use a for loop to actually draw it in the array. it gets trickier in 3D arrays, but works on the same principle. How about lets actually draw a trooper in the center of our array. for(i = 1; i < 7; i++) g_world[24][i][24] = (int)Item.Trooper; What just happened is I filled the array with a six foot trooper standing at 24, 1, 24. His head would probably be at 24, 6, 24. Now, when you are firing your weapon you actually test everytime it moves if it actually hits the trooper. For this example we are assuming the trooper is properly sighted, and he weapon will hit it's target. // Get the shots starting point. int x = 24; int y = 4; int z = 14; // Get distance traveled. int distance = 0; // Get maximum range. range = 10; // Get encountered item. int encountered = (int)item.Nothing; while(distance < range) { // Update distance. distance ++; // for this sampel just // update the z axis. z++; // Get the item at our shots new location. encountered = g_world[x][y][z]; if(encountered == (int)Item.Trooper) { KillTrooper(); distance = range; } } In the while loop above it continues to track the path of the shot in the 3D array. As soon as the shot hits the trooper the trooper is killed and the maximum distance is set so we can break out of the loop. I want to caution you that I simplified this example a great deal from a actual game. In a real game I would probably do physics mottling as well as 3D calculus equasions to track the path of the shot. However the concept of using the loops and the arrays are the same. I just made this example so the path would hit true in this example. The nice thing about arrays is you can actually track what the shot is encountering. I could have aded a wall at 24, 4, 20 which would have blocked the shot. It would have hit the wall first, made a sound of bouncing off the wall, and broken out of the loop before hitting the trooper. As you can see learning arrays is a very critical lesson of game programming. It is a little more complex than other programming tasks to use them properly, but once learned you can create anykind of world you can imagine. It also helps prevent things from passing through areas or things that should not be passed through. For example, in Monty I have it test to see if the player hasn't encountered a wall and if nothing is ahead to move forward. if(item == (int)Item.Nothing) { // Update player location // and draw player in the temple. g_player.Location(x, y); g_temple[x][y] = (int)Item.Player; } if(encountered == (int)Item.Wall) { // Play hit wall sound. g_sndHitWall.Play(0, BufferPlayFlags.Default); } From mmaslo1964 at swbell.net Thu May 11 02:11:43 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Wed, 10 May 2006 20:11:43 -0500 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <44627250.7080106@earthlink.net> Message-ID: <000301c67497$de411a10$210110ac@YOURBACE1BB2CF> Thomas: I liked that example showing arrays. The only thing I didn't understand was how you came up with the fact that the trooper was 6 feet tall? I did not understand hat. I actually believe it or not almost fully followed the entire thing that you wrote. I know I will learn {x}{y}{z} I have a lot to learn but the examples you just gave me show and/or tell me that I am actually learning something from my reading and studying. Thanks so much -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Wednesday, May 10, 2006 6:08 PM To: Friendly informal list for those new to AG development Subject: [AGDev-newbies] Arrays was Hello all. Hi all. Since this topic has come up I thought I would discuss arrays, and ways of effectively using them in your games. As I stated before they can be anything from a simple list of related items, or a complex table of items. In games you will often use arrays to draw your world and everything in it. By drawing I actually mean filling up the array with the variables that hold your items such as walls, troopers, force fields, etc. When drawing world maps you will want to create what is called a enumerated array. These arrays are basically list of constant variables. This just means every item in the list will be asigned a unique ID number you can reference in your other game arrays. The following example is in C#.net. enum Item { Nothing, trooper, wall } The above array is a constant list of objects or items you will find in your game world. In case you are wondering nothing defaults to the value 0 and wall is actually item 2, but since you used the array you don't need to know the actual ID number asigned. Your other arrays will figure that out when you call upon this array list. Now, we want to have a 3D world array. So lets create one. int[,,] g_world = new int[50, 50, 50); What we just did is create a 3D array or world that is an even cube. That means your x/y/z axis have a length of 50 units ranging from 0 to 49. Most newbies get confused on this point as most think that an array begins with the number 1, but they actually start with 0. So if you want an array that actually ends with the number 50 you would have to replace int[50, 50, 50] with int[51, 51, 51]. As I mentioned in a previous post to draw something you can use a for loop to actually draw it in the array. it gets trickier in 3D arrays, but works on the same principle. How about lets actually draw a trooper in the center of our array. for(i = 1; i < 7; i++) g_world[24][i][24] = (int)Item.Trooper; What just happened is I filled the array with a six foot trooper standing at 24, 1, 24. His head would probably be at 24, 6, 24. Now, when you are firing your weapon you actually test everytime it moves if it actually hits the trooper. For this example we are assuming the trooper is properly sighted, and he weapon will hit it's target. // Get the shots starting point. int x = 24; int y = 4; int z = 14; // Get distance traveled. int distance = 0; // Get maximum range. range = 10; // Get encountered item. int encountered = (int)item.Nothing; while(distance < range) { // Update distance. distance ++; // for this sampel just // update the z axis. z++; // Get the item at our shots new location. encountered = g_world[x][y][z]; if(encountered == (int)Item.Trooper) { KillTrooper(); distance = range; } } In the while loop above it continues to track the path of the shot in the 3D array. As soon as the shot hits the trooper the trooper is killed and the maximum distance is set so we can break out of the loop. I want to caution you that I simplified this example a great deal from a actual game. In a real game I would probably do physics mottling as well as 3D calculus equasions to track the path of the shot. However the concept of using the loops and the arrays are the same. I just made this example so the path would hit true in this example. The nice thing about arrays is you can actually track what the shot is encountering. I could have aded a wall at 24, 4, 20 which would have blocked the shot. It would have hit the wall first, made a sound of bouncing off the wall, and broken out of the loop before hitting the trooper. As you can see learning arrays is a very critical lesson of game programming. It is a little more complex than other programming tasks to use them properly, but once learned you can create anykind of world you can imagine. It also helps prevent things from passing through areas or things that should not be passed through. For example, in Monty I have it test to see if the player hasn't encountered a wall and if nothing is ahead to move forward. if(item == (int)Item.Nothing) { // Update player location // and draw player in the temple. g_player.Location(x, y); g_temple[x][y] = (int)Item.Player; } if(encountered == (int)Item.Wall) { // Play hit wall sound. g_sndHitWall.Play(0, BufferPlayFlags.Default); } _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Thu May 11 03:10:48 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 10 May 2006 22:10:48 -0400 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <000301c67497$de411a10$210110ac@YOURBACE1BB2CF> References: <000301c67497$de411a10$210110ac@YOURBACE1BB2CF> Message-ID: <44629D28.1030105@earthlink.net> Hi, Mike. Snip The only thing I didn't understand was how you came up with the fact that the trooper was 6 feet tall? End snip Oh, that is easy. Look at this closer and I will explain it for you. for(i = 1; i < 7; i++) g_world[24, i, 24] = (int)Item.Trooper; In this for loop it starts with the number 1 and loops until it hits the number 7. However, it only loops until 7 is reached. The moment i++ hits 7 the loop stops, and it skips to whatever code is next. The end effect means the trooper is drawn from 24, 1, 24 to 24, 6, 24.His feet are at 24, 1, 24, and his head then would be at 24, 6, 24. If you are assuming each unit is a foot he would be six feet tall. Of course there is no real length for a unit, and you can make them what you like feet, inches, meters, kilometers, etc. Just as long as everything in your array sticks to the skale you use. From ksapergia at sasktel.net Thu May 11 05:26:48 2006 From: ksapergia at sasktel.net (Kelly Sapergia) Date: Wed, 10 May 2006 22:26:48 -0600 Subject: [AGDev-newbies] What Language Is Good For A Beginner? Message-ID: <5.1.0.14.0.20060510221633.02e68bd8@mail.sasktel.net> Hi, I've been interested in writing my own games, but have never done any programming in Windows. I got a copy of the educational version of Visual Basic 6.0 a few years ago, but found it overwhelming and gave up. Now that Visual Basic 2005 is available in an express edition, I'm wondering how easy it is to create a program? Is a compiler included with it, or do you have to pay for the full version to get that? I'm basically looking for something I can use to create a small program and see if I like programming. Are there any other suggestions for free languages to try? Thanks. Yours Sincerely, Kelly John Sapergia For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global Fusion music, listen to "Northern Lights", Thursdays from 01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American Council of the Blind) Radio Interactive at http://interactive.acbradio.org Visit the show's web site at http://www.ksapergia.net/northernlights.html For high-quality audio productions at affordable prices, visit KJS Productions at: http://www.kjsproductions.com You can also visit my personal web site at: http://www.ksapergia.net From tward1978 at earthlink.net Thu May 11 10:10:46 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 05:10:46 -0400 Subject: [AGDev-newbies] What Language Is Good For A Beginner? In-Reply-To: <5.1.0.14.0.20060510221633.02e68bd8@mail.sasktel.net> References: <5.1.0.14.0.20060510221633.02e68bd8@mail.sasktel.net> Message-ID: <4462FF96.4080009@earthlink.net> Hi, Kelly. At present we are currently discussing C#.net 2005 as the beginners language for this list. C#.net is allot easier to learn than say C++, and has more documentation about DirectX and game programming than does VB.net 2005. There is a free downloadible cd image for C#.net express 2005 which contains the .net framework sdk, compiler, and developer sweit. If I am not mistaken the url for that is at http://msdn.microsoft.com/vstudio/express/support/install Another final point my code examples I have been sending out on the list are targeting C#.net users as most of those on this list expressed an interest in beginning with C#.net. As soon as my schedule lessons up some I plan to write up some documents for the wiki in the DirectX interest group for C#.net. Cheers. Kelly Sapergia wrote: > Hi, > I've been interested in writing my own games, but have never done > any programming in Windows. I got a copy of the educational version of > Visual Basic 6.0 a few years ago, but found it overwhelming and gave > up. Now that Visual Basic 2005 is available in an express edition, I'm > wondering how easy it is to create a program? Is a compiler included > with it, or do you have to pay for the full version to get that? I'm > basically looking for something I can use to create a small program > and see if I like programming. > Are there any other suggestions for free languages to try? > Thanks. > > > Yours Sincerely, > Kelly John Sapergia > For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global > Fusion music, listen to "Northern Lights", Thursdays from 01:00 to > 03:00 GMT (Wednesdays in North America) on ACB (American Council of > the Blind) Radio Interactive at http://interactive.acbradio.org > Visit the show's web site at http://www.ksapergia.net/northernlights.html > For high-quality audio productions at affordable prices, visit KJS > Productions at: http://www.kjsproductions.com > You can also visit my personal web site at: > http://www.ksapergia.net > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From mmaslo1964 at swbell.net Thu May 11 12:03:20 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Thu, 11 May 2006 06:03:20 -0500 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <44629D28.1030105@earthlink.net> Message-ID: <000401c674ea$8475cdc0$210110ac@YOURBACE1BB2CF> Thomas: Thank you that makes a lot more sense now. The only thing which is changing is that middle number. I am assuming that I since the code specifies that it is the one moving the trooper and you have assigned the (int) as the trooper movement. I understand that now. It is slowly making sense. I am now on switch statement which I need to re-read. It was a little confusing but it seems that when I read too late at night the mind gets confused. I understood the if, else, else if statements and how that works. So I drudge on slowly and definitely onwards. Will be working move today. Of course as I have questions or need clarification will write again. Thanks again for the help. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Wednesday, May 10, 2006 9:11 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Arrays was Hello all. Hi, Mike. Snip The only thing I didn't understand was how you came up with the fact that the trooper was 6 feet tall? End snip Oh, that is easy. Look at this closer and I will explain it for you. for(i = 1; i < 7; i++) g_world[24, i, 24] = (int)Item.Trooper; In this for loop it starts with the number 1 and loops until it hits the number 7. However, it only loops until 7 is reached. The moment i++ hits 7 the loop stops, and it skips to whatever code is next. The end effect means the trooper is drawn from 24, 1, 24 to 24, 6, 24.His feet are at 24, 1, 24, and his head then would be at 24, 6, 24. If you are assuming each unit is a foot he would be six feet tall. Of course there is no real length for a unit, and you can make them what you like feet, inches, meters, kilometers, etc. Just as long as everything in your array sticks to the skale you use. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From z2004a1 at columbus.rr.com Thu May 11 12:18:44 2006 From: z2004a1 at columbus.rr.com (Tim) Date: Thu, 11 May 2006 07:18:44 -0400 Subject: [AGDev-newbies] What Language Is Good For A Beginner? In-Reply-To: <5.1.0.14.0.20060510221633.02e68bd8@mail.sasktel.net> References: <5.1.0.14.0.20060510221633.02e68bd8@mail.sasktel.net> Message-ID: <7.0.1.0.2.20060511071519.023f7ed0@columbus.rr.com> I put the c#2005 in and downloaded the book they have for it. So far I have the first two projects done in the book, and working on third. I found it a lot easier to hook events to controls then in 2003 version. Now just waiting on c# fourth edition by Jesse Liberty. At 12:26 AM 5/11/2006, you wrote: >Hi, > I've been interested in writing my own games, but have never > done any programming in Windows. I got a copy of the educational > version of Visual Basic 6.0 a few years ago, but found it > overwhelming and gave up. Now that Visual Basic 2005 is available > in an express edition, I'm wondering how easy it is to create a > program? Is a compiler included with it, or do you have to pay for > the full version to get that? I'm basically looking for something I > can use to create a small program and see if I like programming. >Are there any other suggestions for free languages to try? > Thanks. > > >Yours Sincerely, >Kelly John Sapergia >For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and >Global Fusion music, listen to "Northern Lights", Thursdays from >01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American >Council of the Blind) Radio Interactive at http://interactive.acbradio.org >Visit the show's web site at http://www.ksapergia.net/northernlights.html >For high-quality audio productions at affordable prices, visit KJS >Productions at: http://www.kjsproductions.com >You can also visit my personal web site at: >http://www.ksapergia.net > >_______________________________________________ >AGDev-newbies mailing list >AGDev-newbies at lists.agdev.org >http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From simodowl at clara.co.uk Thu May 11 13:22:43 2006 From: simodowl at clara.co.uk (simon.dowling) Date: Thu, 11 May 2006 13:22:43 +0100 Subject: [AGDev-newbies] Toolbox solutions. References: <000301c67421$596f3180$210110ac@YOURBACE1BB2CF> Message-ID: <005601c674f5$9ae423d0$1f3f8151@simon> just to add for people running hal, to select buttons and labels, you go in to virtual focus to perform these tasks. below is what you do to create a text message output to the screen. 1 create a new project, call it my project for example. 2. select the windows app template. 3. choose the tool box from the view menu, in vf, navigate to the label, press the letter a, and press enter, type in hello world and press enter. 4. now select the button from the tool box, press the letter a and press enter. this will place a button below the label when pressed will output the hello world to the screen. hth ----- Original Message ----- From: "Mike Maslo" To: "'Friendly informal list for those new to AG development'" Sent: Wednesday, May 10, 2006 12:03 PM Subject: RE: [AGDev-newbies] Toolbox solutions. > Thomas: > > Great tip. I was wondering and now really excited about moving onward and > upward in my learning. > > -----Original Message----- > From: agdev-newbies-bounces at lists.agdev.org > [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Casey > Sent: Tuesday, May 09, 2006 11:18 PM > To: Friendly informal list for those new to AG development > Subject: Re: [AGDev-newbies] Toolbox solutions. > > Will this work only for the express editions, or can this be applied to > the > pro editions also? > Thanks > > > Casey > > > ----- Original Message ----- > From: "Thomas Ward" > To: "Friendly informal list for those new to AG development" > > Sent: Tuesday, May 09, 2006 10:50 PM > Subject: [AGDev-newbies] Toolbox solutions. > > > Hi all. > Many of you have indicated problems with the Visual Studio Express > toolbox. A friend and I were experimenting, and we have come up with a > very accessible solution for the toolbox, and placing controls on the > forms. Note, we tested this with Jaws 7 and Window Eyes 5.5 with Visual > C# 2005 so this is sure fire for both screen readers. > > 1. Press control+w. > 2. Press the letter x. > 3. This will put you in an accessible list of controls. > 4. Use up and down arrow to cycle through the toolbox controls. > 5. To select an item say a button to place on the form press enter. > 6. Once your item is placed use f4 to open the properties Window. > 7. In the properties Window you can change the size of the controls, > rename the controls, set its text label, and also set its location on > the form. > > Tips. > > Many people use to VB 6 got use to dragging and dropping controls. This > doesn't work with VS 2005, and that is really the wrong approach anyway. > You may wonder why. > If you are doing a visual form I tend to go in to the properties Window > and give my controls very even values for width, height, and location. > The reason is that it makes it very easy to calculate where each item > should be in relation to each other. > Fortunately, since we are working with games you won't have to deal much > with forms beyond a welcome screen, and perhaps a registration screen. > The rest is dropping timers, and other necessary game controls. Position > of the timers doesn't mean anything, because they are invisible anyway. > Hope this helps. > > > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > > > __________ NOD32 1.1528 (20060509) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > From tward1978 at earthlink.net Thu May 11 18:32:22 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 13:32:22 -0400 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <000401c674ea$8475cdc0$210110ac@YOURBACE1BB2CF> References: <000401c674ea$8475cdc0$210110ac@YOURBACE1BB2CF> Message-ID: <44637526.8050801@earthlink.net> Hi, Mike. In the example given the trooper was not moving. Let me explain what elements mean what. x: the units from left to right. y: the units from down to up. z: the units from back to front. So when I did for(int i = 1; i < 7; i++) g_world[24, i, 24] = (int)Item.Trooper; I placed the trooper at x 24 z 24. He was then added using the i in the for loop from y 1 to y 6. He was not moving. He was added in to the array to be six units tall. Does that clear it up? Mike Maslo wrote: > Thomas: > > Thank you that makes a lot more sense now. > > The only thing which is changing is that middle number. I am assuming that I > since the code specifies that it is the one moving the trooper and you have > assigned the (int) as the trooper movement. > > I understand that now. > > It is slowly making sense. > > I am now on switch statement which I need to re-read. It was a little > confusing but it seems that when I read too late at night the mind gets > confused. > > I understood the if, else, else if statements and how that works. So I > drudge on slowly and definitely onwards. > > Will be working move today. > > Of course as I have questions or need clarification will write again. > > > Thanks again for the help. > From tward1978 at earthlink.net Thu May 11 18:54:39 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 13:54:39 -0400 Subject: [AGDev-newbies] Switch statements was arrays. In-Reply-To: <000401c674ea$8475cdc0$210110ac@YOURBACE1BB2CF> References: <000401c674ea$8475cdc0$210110ac@YOURBACE1BB2CF> Message-ID: <44637A5F.1060405@earthlink.net> Hi, Mike and all. From Mike's last email he said he was having problems using a switch statement. These are very good statements to use in games. Here is a very common example how to effectively use a switch statement in your games. I am going to create a keyboard event handler method that intercepts the key down event, and then use a switch statement to process the key down event. // Key down event. // Intercepts pressed keys. protected override void OnKeyDown(KeyEventArgs key) { // Get the key code, // and process it. switch(key.KeyCode) { case Keys.Escape: Close(); break; case Keys.A: CheckAmmo(); break; case Keys.Down: PlayerStepBackward(); break; case Keys.Left: PlayerTurnLeft(); break; case Keys.Right: PlayerTurnRight(); break; case Keys.Up: PlayerStepForward(); break; } } In the above example the switch statement gets the active KeyCode for the key that is held down. It then uses the case statements to find out which key is being held down and to close the game or do basic movement commands. In brief the switch statement should be used when you want to find out what a variable contains, and want to act upon a specific condition of that variable. The default statement is also nice here as you can do something if the condition isn't met. Let's look at another switch statement. switch(number) { case 1: // Do something here. break; case 2: // Do something else. break; default: // Display an error message to press one or 2. break; } } What you have is an integer variable called number that holds a number. You would pass it to switch which then goes through the case statements to find out if the number is a one or a 2. If it is neither then it drops through to the default setting, and you can display an error message, or what ever code you want to put in the default. From tward1978 at earthlink.net Thu May 11 18:56:31 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 13:56:31 -0400 Subject: [AGDev-newbies] What Language Is Good For A Beginner? In-Reply-To: <7.0.1.0.2.20060511071519.023f7ed0@columbus.rr.com> References: <5.1.0.14.0.20060510221633.02e68bd8@mail.sasktel.net> <7.0.1.0.2.20060511071519.023f7ed0@columbus.rr.com> Message-ID: <44637ACF.7060608@earthlink.net> Hi, Tim. the fourth eddition of Learning C# is on Safari.oreilly.com in ebook format. Tim wrote: > I put the c#2005 in and downloaded the book they have for it. So far I > have the first two projects done in the book, and working on third. I > found it a lot easier to hook events to controls then in 2003 version. > Now just waiting on c# fourth edition by Jesse Liberty. > > At 12:26 AM 5/11/2006, you wrote: >> Hi, >> I've been interested in writing my own games, but have never done >> any programming in Windows. I got a copy of the educational version >> of Visual Basic 6.0 a few years ago, but found it overwhelming and >> gave up. Now that Visual Basic 2005 is available in an express >> edition, I'm wondering how easy it is to create a program? Is a >> compiler included with it, or do you have to pay for the full version >> to get that? I'm basically looking for something I can use to create >> a small program and see if I like programming. >> Are there any other suggestions for free languages to try? >> Thanks. >> >> >> Yours Sincerely, >> Kelly John Sapergia >> For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global >> Fusion music, listen to "Northern Lights", Thursdays from 01:00 to >> 03:00 GMT (Wednesdays in North America) on ACB (American Council of >> the Blind) Radio Interactive at http://interactive.acbradio.org >> Visit the show's web site at >> http://www.ksapergia.net/northernlights.html >> For high-quality audio productions at affordable prices, visit KJS >> Productions at: http://www.kjsproductions.com >> You can also visit my personal web site at: >> http://www.ksapergia.net >> >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From ksapergia at sasktel.net Fri May 12 01:43:45 2006 From: ksapergia at sasktel.net (Kelly Sapergia) Date: Thu, 11 May 2006 18:43:45 -0600 Subject: [AGDev-newbies] Re: What Language Is Good For A Beginner? Message-ID: <5.1.0.14.0.20060511184213.02fd60c8@mail.sasktel.net> Hi Thomas, Thanks for letting me know about that language. I downloaded the CD image, but haven't installed it yet. Is it necessary to register for the documentation, images, etc? Thanks. Yours Sincerely, Kelly John Sapergia For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global Fusion music, listen to "Northern Lights", Thursdays from 01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American Council of the Blind) Radio Interactive at http://interactive.acbradio.org Visit the show's web site at http://www.ksapergia.net/northernlights.html For high-quality audio productions at affordable prices, visit KJS Productions at: http://www.kjsproductions.com You can also visit my personal web site at: http://www.ksapergia.net From mmaslo1964 at swbell.net Fri May 12 01:53:47 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Thu, 11 May 2006 19:53:47 -0500 Subject: [AGDev-newbies] Switch statements was arrays. In-Reply-To: <44637A5F.1060405@earthlink.net> Message-ID: <000301c6755e$878761d0$210110ac@YOURBACE1BB2CF> Thomas: I thank you again for that example. You keep re-enforcing my learning and for that I am so appreciative. I was having trouble with the fall through switch but then I re-read this morning at work and now understand what it is telling me to do. Just was wondering if you were familiar with that book and if anyone on the list may be able to give me a little project to help me practice my skills that I have learned. I am still on chapter 5 where we are now talking about while..if... etc. That page is something else. They throw a lot at you at once. I can't read to much because then my mind feels like it is blowing up. One question for you Thomas. Please explain this part of your program you wrote. It appeared at the top of your first example. (KeyEventArgs key) Thanks and enjoying this learning. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Thursday, May 11, 2006 12:55 PM To: Friendly informal list for those new to AG development Subject: [AGDev-newbies] Switch statements was arrays. Hi, Mike and all. From Mike's last email he said he was having problems using a switch statement. These are very good statements to use in games. Here is a very common example how to effectively use a switch statement in your games. I am going to create a keyboard event handler method that intercepts the key down event, and then use a switch statement to process the key down event. // Key down event. // Intercepts pressed keys. protected override void OnKeyDown(KeyEventArgs key) { // Get the key code, // and process it. switch(key.KeyCode) { case Keys.Escape: Close(); break; case Keys.A: CheckAmmo(); break; case Keys.Down: PlayerStepBackward(); break; case Keys.Left: PlayerTurnLeft(); break; case Keys.Right: PlayerTurnRight(); break; case Keys.Up: PlayerStepForward(); break; } } In the above example the switch statement gets the active KeyCode for the key that is held down. It then uses the case statements to find out which key is being held down and to close the game or do basic movement commands. In brief the switch statement should be used when you want to find out what a variable contains, and want to act upon a specific condition of that variable. The default statement is also nice here as you can do something if the condition isn't met. Let's look at another switch statement. switch(number) { case 1: // Do something here. break; case 2: // Do something else. break; default: // Display an error message to press one or 2. break; } } What you have is an integer variable called number that holds a number. You would pass it to switch which then goes through the case statements to find out if the number is a one or a 2. If it is neither then it drops through to the default setting, and you can display an error message, or what ever code you want to put in the default. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Fri May 12 01:58:03 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Thu, 11 May 2006 19:58:03 -0500 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <44637526.8050801@earthlink.net> Message-ID: <000401c6755f$1fab70f0$210110ac@YOURBACE1BB2CF> Thomas: Yes I understand now. Thank you for breaking it down a little more for me. I enjoy that way of explanation. I get it now. The first variable is the "x"the z equals the last number I fully understand that now. Thank you -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Thursday, May 11, 2006 12:32 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Arrays was Hello all. Hi, Mike. In the example given the trooper was not moving. Let me explain what elements mean what. x: the units from left to right. y: the units from down to up. z: the units from back to front. So when I did for(int i = 1; i < 7; i++) g_world[24, i, 24] = (int)Item.Trooper; I placed the trooper at x 24 z 24. He was then added using the i in the for loop from y 1 to y 6. He was not moving. He was added in to the array to be six units tall. Does that clear it up? Mike Maslo wrote: > Thomas: > > Thank you that makes a lot more sense now. > > The only thing which is changing is that middle number. I am assuming that I > since the code specifies that it is the one moving the trooper and you have > assigned the (int) as the trooper movement. > > I understand that now. > > It is slowly making sense. > > I am now on switch statement which I need to re-read. It was a little > confusing but it seems that when I read too late at night the mind gets > confused. > > I understood the if, else, else if statements and how that works. So I > drudge on slowly and definitely onwards. > > Will be working move today. > > Of course as I have questions or need clarification will write again. > > > Thanks again for the help. > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From singingbutterfly at cox.net Fri May 12 02:27:54 2006 From: singingbutterfly at cox.net (Bryan McGucken) Date: Thu, 11 May 2006 21:27:54 -0400 Subject: [AGDev-newbies] More about arrays Message-ID: <000c01c67563$4b351560$ad290944@YOUR36A76B5903> Hmmm, that's interesting. That might make room creation easier; that was one of my concerns with programming. By the way, can arrays be used in C# or C#.net or whatever it is? Also, can an array be used in a random encounter in e.g., an RPG. I would figure that, like a bullet traveling to hit a target, a player traveling until he hits a random encounter might be defined by the way objects move through an array. That switch statement thing sounds cool, too. I'll have to check out that C# download too. Oh, and do any of you know if there are any freeware MIDI programs out there. I had Cakewalk but got a new computer because my old one crashed and I can't find my serial number off my Cakewalk Pro Audio 9 CD. Thanks. Bryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Fri May 12 02:34:11 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 21:34:11 -0400 Subject: [AGDev-newbies] Switch statements was arrays. In-Reply-To: <000301c6755e$878761d0$210110ac@YOURBACE1BB2CF> References: <000301c6755e$878761d0$210110ac@YOURBACE1BB2CF> Message-ID: <4463E613.70201@earthlink.net> Hi Mike. To answer your question I will have to explain the OnKeyDownEvent a little clearer. In MS Windows everytime you move the mouse, press a keyboard command, Windows grabs the event, and then filters it down to the application that is waiting on that event. Ok, so I created an over ride keyboard event that tells MS Windows, "Hey, I am waiting on a keyboard event." Windows then passes the keyboard key to the event. You have to have an object that Windows can pass the keyboard key to. So you create a keyboard event object of type KeyEventArgs , and I happened to call it key which is an obvious name for the object. From there I used the switch statement to find out exactly which key code was being held down at that time. Mike Maslo wrote: > Thomas: > > I thank you again for that example. You keep re-enforcing my learning and > for that I am so appreciative. > > I was having trouble with the fall through switch but then I re-read this > morning at work and now understand what it is telling me to do. > > Just was wondering if you were familiar with that book and if anyone on the > list may be able to give me a little project to help me practice my skills > that I have learned. I am still on chapter 5 where we are now talking about > while..if... etc. That page is something else. They throw a lot at you at > once. I can't read to much because then my mind feels like it is blowing up. > > One question for you Thomas. > > Please explain this part of your program you wrote. It appeared at the top > of your first example. > > (KeyEventArgs key) > > Thanks and enjoying this learning. > From tward1978 at earthlink.net Fri May 12 02:36:37 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 21:36:37 -0400 Subject: [AGDev-newbies] Re: What Language Is Good For A Beginner? In-Reply-To: <5.1.0.14.0.20060511184213.02fd60c8@mail.sasktel.net> References: <5.1.0.14.0.20060511184213.02fd60c8@mail.sasktel.net> Message-ID: <4463E6A5.3000908@earthlink.net> Hi, Kelly. I doubt it is necessary, but being a first time you might want to register so you can take advantage of the free offerings. I haven't done it myself so I don't know all the ins and outs of what you get, but the documentation would be a big help. Currently, I am recommending Learning C# by Jessie Liberty which is a very user friendly introduction to C#. Kelly Sapergia wrote: > Hi Thomas, > Thanks for letting me know about that language. I downloaded the CD > image, but haven't installed it yet. Is it necessary to register for > the documentation, images, etc? > Thanks. > > > Yours Sincerely, > Kelly John Sapergia > For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global > Fusion music, listen to "Northern Lights", Thursdays from 01:00 to > 03:00 GMT (Wednesdays in North America) on ACB (American Council of > the Blind) Radio Interactive at http://interactive.acbradio.org > Visit the show's web site at http://www.ksapergia.net/northernlights.html > For high-quality audio productions at affordable prices, visit KJS > Productions at: http://www.kjsproductions.com > You can also visit my personal web site at: > http://www.ksapergia.net > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Fri May 12 02:44:00 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 21:44:00 -0400 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <000401c6755f$1fab70f0$210110ac@YOURBACE1BB2CF> References: <000401c6755f$1fab70f0$210110ac@YOURBACE1BB2CF> Message-ID: <4463E860.1000807@earthlink.net> Hi Mike. Yeah. Another way of thinking of this is put yourself in a room that is 10 feet, by 10 feet, by 10 feet, and you were facing do north. In that case the first number x would run from the left wall to the right wall. The z axis would run from the wall behind you to the wall in front of you. The y axis would run from floor to cealing. Mike Maslo wrote: > Thomas: > > Yes I understand now. Thank you for breaking it down a little more for me. I > enjoy that way of explanation. > > I get it now. The first variable is the "x"the z equals the last number > I fully understand that now. Thank you > From tward1978 at earthlink.net Fri May 12 02:56:25 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Thu, 11 May 2006 21:56:25 -0400 Subject: [AGDev-newbies] More about arrays In-Reply-To: <000c01c67563$4b351560$ad290944@YOUR36A76B5903> References: <000c01c67563$4b351560$ad290944@YOUR36A76B5903> Message-ID: <4463EB49.8000208@earthlink.net> Hi, Bryan. Yes, arrays are in C# which is a short name for C#.net. They work a little differently from other languages such as C++, but they do the same purpose of storing large tables of data. In fact I actually like the way C# does arrays over C++. As for using an array for random encounters the answer is yes as long as you remember to properly update all he objects movements in the array, and have proper testing for that type of encounter. An example is in my Monty engine as soon as the Skull, Spider, Snake, comes in contact with the player they bite the player. The player can't pass through those enemies so she has to jump over them where she might be able to catch hold of a rope, vine, or other object she finds above her. I actually do this in one of the rooms in Monty. In the first level there is a room with a green key. I jump on to the rope until the spider passes by, swing off, run and grab the key and run back to the rope. If he spider shows up sooner than planned I jump over the spider and hope I can make it to the rope to escape. Bryan McGucken wrote: > Hmmm, that's interesting. That might make room creation easier; that > was one of my concerns with programming. By the way, can arrays be > used in C# or C#.net or whatever it is? Also, can an array be used in > a random encounter in e.g., an RPG. I would figure that, like a > bullet traveling to hit a target, a player traveling until he hits a > random encounter might be defined by the way objects move through an > array. That switch statement thing sounds cool, too. I'll have to > check out that C# download too. Oh, and do any of you know if there > are any freeware MIDI programs out there. I had Cakewalk but got a > new computer because my old one crashed and I can't find my serial > number off my Cakewalk Pro Audio 9 CD. Thanks. Bryan > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From mmaslo1964 at swbell.net Fri May 12 03:14:31 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Thu, 11 May 2006 21:14:31 -0500 Subject: [AGDev-newbies] Arrays was Hello all. In-Reply-To: <4463E860.1000807@earthlink.net> Message-ID: <000b01c67569$ce7d1e80$210110ac@YOURBACE1BB2CF> Thomas: Even more sense now. I was trying to visualize the 3d meaning but that way makes all the sense in the world. Thank you. I am reading more and more. I just read about the while, if and etc. I am so excited. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Thursday, May 11, 2006 8:44 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Arrays was Hello all. Hi Mike. Yeah. Another way of thinking of this is put yourself in a room that is 10 feet, by 10 feet, by 10 feet, and you were facing do north. In that case the first number x would run from the left wall to the right wall. The z axis would run from the wall behind you to the wall in front of you. The y axis would run from floor to cealing. Mike Maslo wrote: > Thomas: > > Yes I understand now. Thank you for breaking it down a little more for me. I > enjoy that way of explanation. > > I get it now. The first variable is the "x"the z equals the last number > I fully understand that now. Thank you > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Fri May 12 03:16:24 2006 From: rbennett at southlink.us (Richard Bennett) Date: Thu, 11 May 2006 22:16:24 -0400 Subject: [AGDev-newbies] Arrays was Hello all. References: <000b01c67569$ce7d1e80$210110ac@YOURBACE1BB2CF> Message-ID: <022701c6756a$13c52c30$c9ad1c42@gadolum18z9hrn> Hey Tom and Mike, the explanation of the room did it for me too. I was doing the same thing that Mike was doing until Tom made the comment about the room. thanks Tom, and to Mike, being excited is a major part of the programming process least in my opinion. BEAN From z2004a1 at columbus.rr.com Fri May 12 07:35:29 2006 From: z2004a1 at columbus.rr.com (Tim) Date: Fri, 12 May 2006 02:35:29 -0400 Subject: [AGDev-newbies] Re: What Language Is Good For A Beginner? In-Reply-To: <5.1.0.14.0.20060511184213.02fd60c8@mail.sasktel.net> References: <5.1.0.14.0.20060511184213.02fd60c8@mail.sasktel.net> Message-ID: <7.0.1.0.2.20060512023155.02283e08@columbus.rr.com> You get 30 days of usage if you don't register it. So do that and you won't have any problems. They also give you a book called Microsoft Visual C# 2005 Express Edition - Build a Program Now! Its not a bad book, and gives you a few tips on how to use the ide. At 08:43 PM 5/11/2006, you wrote: >Hi Thomas, > Thanks for letting me know about that language. I downloaded the > CD image, but haven't installed it yet. Is it necessary to register > for the documentation, images, etc? > Thanks. > > >Yours Sincerely, >Kelly John Sapergia >For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and >Global Fusion music, listen to "Northern Lights", Thursdays from >01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American >Council of the Blind) Radio Interactive at http://interactive.acbradio.org >Visit the show's web site at http://www.ksapergia.net/northernlights.html >For high-quality audio productions at affordable prices, visit KJS >Productions at: http://www.kjsproductions.com >You can also visit my personal web site at: >http://www.ksapergia.net > >_______________________________________________ >AGDev-newbies mailing list >AGDev-newbies at lists.agdev.org >http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Sat May 13 15:04:43 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 13 May 2006 09:04:43 -0500 Subject: [AGDev-newbies] Chapter 5 done! Message-ID: <000001c67696$2fd8ff00$210110ac@YOURBACE1BB2CF> Hi guys: Well finally finished Chapter 5 of learning c# by Jesse Liberty. They throw a lot of stuff at you. I am working on he exercises now and need to refresh myself with the "switch" command code and how to write it correctly but I am learning. I just wish I had more time to work on it. Was wondering if there is anyone on the list working on this also and e interested in a voice chat somewhere so we can talk abbot it and share there problems and/or experiences. Just a idea. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbennett at southlink.us Sat May 13 15:50:24 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 13 May 2006 10:50:24 -0400 Subject: [AGDev-newbies] Chapter 5 done! References: <000001c67696$2fd8ff00$210110ac@YOURBACE1BB2CF> Message-ID: <00a301c6769c$92f60410$c9ad1c42@gadolum18z9hrn> hey Mike, I know how to write a switch code in C, C++, and in VB6 I don't know if this will help but if you are interested, if you have windows messenger my name is: ichabodsparrow at hotmail.com I will be on there later today or maybe we could meet in a room on F-T-P just let me know if you are interested maybe I can help you. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From ksapergia at sasktel.net Sat May 13 15:34:07 2006 From: ksapergia at sasktel.net (Kelly Sapergia) Date: Sat, 13 May 2006 08:34:07 -0600 Subject: [AGDev-newbies] Re: What Language Is Good For A Beginner? Message-ID: <5.1.0.14.0.20060513082950.012e5af0@mail.sasktel.net> Hi, Thanks for the information. I got the language installed on my laptop last night, but I think I screwed up the registration somehow. When I got the final email, I clicked on the Registration Benefits Portal link, and got a page saying "Error: this page is either unavailable or you don't have access to it". I'm going to get a new passport account and try registering the product again, if it will let me that is. Thanks. Yours Sincerely, Kelly John Sapergia For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global Fusion music, listen to "Northern Lights", Thursdays from 01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American Council of the Blind) Radio Interactive at http://interactive.acbradio.org Visit the show's web site at http://www.ksapergia.net/northernlights.html For high-quality audio productions at affordable prices, visit KJS Productions at: http://www.kjsproductions.com You can also visit my personal web site at: http://www.ksapergia.net From mmaslo1964 at swbell.net Sat May 13 15:57:56 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 13 May 2006 09:57:56 -0500 Subject: [AGDev-newbies] Chapter 5 done! In-Reply-To: <00a301c6769c$92f60410$c9ad1c42@gadolum18z9hrn> Message-ID: <001601c6769d$9edd8ae0$210110ac@YOURBACE1BB2CF> Bean: Yes that is perfect! I am learning c# s any help is going to be appreciated. I will add you. I think I am under mmaslo64 at swbell.net Oh yes my name is Michael Maslo. lol _____ From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Richard Bennett Sent: Saturday, May 13, 2006 9:50 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Chapter 5 done! hey Mike, I know how to write a switch code in C, C++, and in VB6 I don't know if this will help but if you are interested, if you have windows messenger my name is: ichabodsparrow at hotmail.com I will be on there later today or maybe we could meet in a room on F-T-P just let me know if you are interested maybe I can help you. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbennett at southlink.us Sat May 13 16:16:59 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 13 May 2006 11:16:59 -0400 Subject: [AGDev-newbies] Chapter 5 done! References: <001601c6769d$9edd8ae0$210110ac@YOURBACE1BB2CF> Message-ID: <00db01c676a0$47ba3b70$c9ad1c42@gadolum18z9hrn> Hey Michael, I will be on later this afternoon and do my best to help you with this. Like I have said, I don't know C#, but I am thinking that there can't be that much of a difference between C++ and C#. I would get on now to discuss this with you, but I am having to go to a meeting at my school today. They have recruited or volunteered me to do the audio portion of a game they are creating for some kind of function at school later this year and I have to go to this meeting. But I will catch you on later today man. I hope I can help you, but maybe between us both, we can get it figured out, lol. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From z2004a1 at columbus.rr.com Sat May 13 17:51:35 2006 From: z2004a1 at columbus.rr.com (Tim) Date: Sat, 13 May 2006 12:51:35 -0400 Subject: [AGDev-newbies] Re: What Language Is Good For A Beginner? In-Reply-To: <5.1.0.14.0.20060513082950.012e5af0@mail.sasktel.net> References: <5.1.0.14.0.20060513082950.012e5af0@mail.sasktel.net> Message-ID: <7.0.1.0.2.20060513124919.02268510@columbus.rr.com> I got that also, but when I tried it later. The site opened up for me. When I added the Web Dev2005. The stuff showed up right after registering. Guess they be a bit slow sometimes. At 10:34 AM 5/13/2006, you wrote: >Hi, > Thanks for the information. I got the language installed on my > laptop last night, but I think I screwed up the registration > somehow. When I got the final email, I clicked on the Registration > Benefits Portal link, and got a page saying "Error: this page is > either unavailable or you don't have access to it". I'm going to > get a new passport account and try registering the product again, > if it will let me that is. > Thanks. > > >Yours Sincerely, >Kelly John Sapergia >For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and >Global Fusion music, listen to "Northern Lights", Thursdays from >01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American >Council of the Blind) Radio Interactive at http://interactive.acbradio.org >Visit the show's web site at http://www.ksapergia.net/northernlights.html >For high-quality audio productions at affordable prices, visit KJS >Productions at: http://www.kjsproductions.com >You can also visit my personal web site at: >http://www.ksapergia.net > >_______________________________________________ >AGDev-newbies mailing list >AGDev-newbies at lists.agdev.org >http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Sat May 13 19:16:56 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 13 May 2006 13:16:56 -0500 Subject: [AGDev-newbies] Chapter 5 done! In-Reply-To: <00db01c676a0$47ba3b70$c9ad1c42@gadolum18z9hrn> Message-ID: <002a01c676b9$6b912720$210110ac@YOURBACE1BB2CF> Not a problem. Heading towards shopping. I will be available. Where you from?? What state or country? _____ From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Richard Bennett Sent: Saturday, May 13, 2006 10:17 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Chapter 5 done! Hey Michael, I will be on later this afternoon and do my best to help you with this. Like I have said, I don't know C#, but I am thinking that there can't be that much of a difference between C++ and C#. I would get on now to discuss this with you, but I am having to go to a meeting at my school today. They have recruited or volunteered me to do the audio portion of a game they are creating for some kind of function at school later this year and I have to go to this meeting. But I will catch you on later today man. I hope I can help you, but maybe between us both, we can get it figured out, lol. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Sat May 13 22:44:53 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 13 May 2006 17:44:53 -0400 Subject: [AGDev-newbies] Chapter 5 done! In-Reply-To: <000001c67696$2fd8ff00$210110ac@YOURBACE1BB2CF> References: <000001c67696$2fd8ff00$210110ac@YOURBACE1BB2CF> Message-ID: <44665355.4070801@earthlink.net> Hi, Mike. I am glad youmade it that far. You are doing well. About your switch command here is the general format. switch(variable) { case something: break; case something: break; default: break; } Mike Maslo wrote: > > Hi guys: > > Well finally finished Chapter 5 of learning c# by Jesse Liberty. They > throw a lot of stuff at you. > > I am working on he exercises now and need to refresh myself with the > ?switch? command code and how to write it correctly but I am learning. > > I just wish I had more time to work on it. > > Was wondering if there is anyone on the list working on this also and > e interested in a voice chat somewhere so we can talk abbot it and > share there problems and/or experiences. > > Just a idea. > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From rbennett at southlink.us Sat May 13 23:08:06 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 13 May 2006 18:08:06 -0400 Subject: [AGDev-newbies] Chapter 5 done! References: <002a01c676b9$6b912720$210110ac@YOURBACE1BB2CF> Message-ID: <015601c676d9$b6e883b0$c9ad1c42@gadolum18z9hrn> I am from Georgia, United States. So I am on the Eastern Time Zone. Pretty much anytime is good for me. Except when there is around 100 laps or so to go in a NASCAR race or I am at school. BEAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmaslo1964 at swbell.net Sun May 14 04:29:38 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 13 May 2006 22:29:38 -0500 Subject: [AGDev-newbies] help please someone Message-ID: <005901c67706$a1d7ee70$210110ac@YOURBACE1BB2CF> Hi List: Here is a program I am trying to write. I am trying to count to 10 and then at the time it reaches 10 it stops. I keep getting errors up the nose. Not only that, but when I run it it prints 0 and then nothing else. What am I doing wrong?? namespace Notepad { class function { static void Main() { int valueOne = 0; System.Console.WriteLine("This is the beginning"); if (valueOne < 10) { System.Console.WriteLine("Print value: {0} ", valueOne); valueOne++; else system.console.WriteLine("This is the end of the program!"); } } } } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From raul at audyssey.org Sun May 14 04:54:19 2006 From: raul at audyssey.org (Raul A. Gallegos) Date: Sat, 13 May 2006 21:54:19 -0600 Subject: [AGDev-newbies] moderator's friendly suggestion Message-ID: <20060514035419.GR21243@asmodean.asmotec.com> Hi folks. Just a friendly suggestion that when posting a message try to make the subject line mention what you need help with or what you have a question about. Since the major reason for this list is getting help or discussing AG development from a newbie's standpoint then I'm sure a lot of messages will be due to needing help. Thanks much. -- The secret of happiness is total disregard of everybody. Raul A. Gallegos ... IliwSsmc From mmaslo1964 at swbell.net Sun May 14 05:38:04 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sat, 13 May 2006 23:38:04 -0500 Subject: [AGDev-newbies] (no subject) Message-ID: <006701c67710$319a0f80$210110ac@YOURBACE1BB2CF> Do.While statement and forever loop List: Well I tried another program and it just ran and ran and an and ran. It did not stop. What did I do wrong with this one? namespace Notepad { class function { static void Main( ) { int valueOne = 0; do { System.Console.WriteLine("This prints variable: {0} ", valueOne); } while (valueOne < 10); valueOne++; } } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Sun May 14 06:03:00 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 14 May 2006 01:03:00 -0400 Subject: [AGDev-newbies] help please someone In-Reply-To: <005901c67706$a1d7ee70$210110ac@YOURBACE1BB2CF> References: <005901c67706$a1d7ee70$210110ac@YOURBACE1BB2CF> Message-ID: <4466BA04.1030208@earthlink.net> Hi, Mike. Ok, the first major error I see in your logic is there is no loops in the code. You need something like a while or for loop for this case and not a if-else statement. It prints 0, and then dies out. I can think of several ways this app can be rewritten to solve this issue. If you don't mind I will show you how my main function would look in your position. I will use a for loop to count the numbers and print out the messages. class Count { static void Main() { // Display start of program. System.Console.WriteLine("Starting to count"); // Enter a for loop. // This will count to 10 and break. for(int value = 0; value < 11; value++) System.Console.WriteLine("Print value: {0} ", value); // Program is over // so display the exit message. System.Console.WriteLine("Done counting"); } } Hope this helps. From tward1978 at earthlink.net Sun May 14 06:05:10 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 14 May 2006 01:05:10 -0400 Subject: [AGDev-newbies] moderator's friendly suggestion In-Reply-To: <20060514035419.GR21243@asmodean.asmotec.com> References: <20060514035419.GR21243@asmodean.asmotec.com> Message-ID: <4466BA86.8090401@earthlink.net> Hi, Raul. Agreed. There have been allot of messages on list that had generic type subjects, but some good discussions in them. As the lists grows we need to break the habbit of having good content with poor subject lines. Thanks, for the reminder. Raul A. Gallegos wrote: > Hi folks. Just a friendly suggestion that when posting a message try to > make the subject line mention what you need help with or what you have a > question about. Since the major reason for this list is getting help or > discussing AG development from a newbie's standpoint then I'm sure a lot > of messages will be due to needing help. > > Thanks much. > > From tward1978 at earthlink.net Sun May 14 06:18:53 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 14 May 2006 01:18:53 -0400 Subject: [AGDev-newbies] (no subject) Problem with while loop. In-Reply-To: <006701c67710$319a0f80$210110ac@YOURBACE1BB2CF> References: <006701c67710$319a0f80$210110ac@YOURBACE1BB2CF> Message-ID: <4466BDBD.1070103@earthlink.net> Hi, Mike. You are getting on the right track with this attempt, but the major problem hear is the structure of your while loop. I'd start by removing the do loop. All you need is the while loop. Here is a quick rewrite of main using the while loop correctly. static void Main() { int value = 0; while(value != 10) { // update value. value ++; // Print out value. System.Console.WriteLine("Number: {0} ", value); } } Mike Maslo wrote: > > Do?While statement and forever loop List: > > Well I tried another program and it just ran and ran and an and ran. > > It did not stop. > > What did I do wrong with this one? > > namespace Notepad > > { > > class function > > { > > static void Main( ) > > { > > int valueOne = 0; > > do > > { > > System.Console.WriteLine("This prints variable: {0} ", valueOne); > > } while (valueOne < 10); > > valueOne++; > > } > > } > > } > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > From mmaslo1964 at swbell.net Sun May 14 16:06:12 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 14 May 2006 10:06:12 -0500 Subject: [AGDev-newbies] (no subject) Problem with while loop. In-Reply-To: <4466BDBD.1070103@earthlink.net> Message-ID: <000101c67767$f28c36d0$210110ac@YOURBACE1BB2CF> I got it. I thank you for that. If I wanted to count to 10 using the do..while statement, what would I do differently? -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Sunday, May 14, 2006 12:19 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] (no subject) Problem with while loop. Hi, Mike. You are getting on the right track with this attempt, but the major problem hear is the structure of your while loop. I'd start by removing the do loop. All you need is the while loop. Here is a quick rewrite of main using the while loop correctly. static void Main() { int value = 0; while(value != 10) { // update value. value ++; // Print out value. System.Console.WriteLine("Number: {0} ", value); } } Mike Maslo wrote: > > Do.While statement and forever loop List: > > Well I tried another program and it just ran and ran and an and ran. > > It did not stop. > > What did I do wrong with this one? > > namespace Notepad > > { > > class function > > { > > static void Main( ) > > { > > int valueOne = 0; > > do > > { > > System.Console.WriteLine("This prints variable: {0} ", valueOne); > > } while (valueOne < 10); > > valueOne++; > > } > > } > > } > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From mmaslo1964 at swbell.net Sun May 14 16:04:07 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Sun, 14 May 2006 10:04:07 -0500 Subject: [AGDev-newbies] help please someone In-Reply-To: <4466BA04.1030208@earthlink.net> Message-ID: <000001c67767$a691fd00$210110ac@YOURBACE1BB2CF> Hi, Mike. Ok, the first major error I see in your logic is there is no loops in the code. You need something like a while or for loop for this case and not a if-else statement. It prints 0, and then dies out. I can think of several ways this app can be rewritten to solve this issue. If you don't mind I will show you how my main function would look in your position. I will use a for loop to count the numbers and print out the messages. class Count { static void Main() { // Display start of program. System.Console.WriteLine("Starting to count"); // Enter a for loop. // This will count to 10 and break. for(int value = 0; value < 11; value++) System.Console.WriteLine("Print value: {0} ", value); // Program is over // so display the exit message. System.Console.WriteLine("Done counting"); } } Hope this helps. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies Thomas: I see and understand this. What did I do wrong? How is your returning to the loop where mine didn't? Please explain what I did wrong. I am a little confused because your's look similar to mine. -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Sunday, May 14, 2006 12:03 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] help please someone Hi, Mike. Ok, the first major error I see in your logic is there is no loops in the code. You need something like a while or for loop for this case and not a if-else statement. It prints 0, and then dies out. I can think of several ways this app can be rewritten to solve this issue. If you don't mind I will show you how my main function would look in your position. I will use a for loop to count the numbers and print out the messages. class Count { static void Main() { // Display start of program. System.Console.WriteLine("Starting to count"); // Enter a for loop. // This will count to 10 and break. for(int value = 0; value < 11; value++) System.Console.WriteLine("Print value: {0} ", value); // Program is over // so display the exit message. System.Console.WriteLine("Done counting"); } } Hope this helps. _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Mon May 15 03:03:56 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 14 May 2006 22:03:56 -0400 Subject: [AGDev-newbies] help please someone In-Reply-To: <000001c67767$a691fd00$210110ac@YOURBACE1BB2CF> References: <000001c67767$a691fd00$210110ac@YOURBACE1BB2CF> Message-ID: <4467E18C.6070902@earthlink.net> Hi, Mike. What you did wrong in your original application was there was no for loop in it. It only had an if statement and an else statement. That is why it only showed 0. In my version the for loop actually looped around to 10 and then exited. From tward1978 at earthlink.net Mon May 15 03:06:18 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 14 May 2006 22:06:18 -0400 Subject: [AGDev-newbies] (no subject) Problem with while loop. In-Reply-To: <000101c67767$f28c36d0$210110ac@YOURBACE1BB2CF> References: <000101c67767$f28c36d0$210110ac@YOURBACE1BB2CF> Message-ID: <4467E21A.2080209@earthlink.net> Hi, Mike. First off don't use the do statement. A while or for loop is all you need to count to 10, or to count down. Compare your versions to mine, and then perhaps you can see what was wrong with your method, and how mine looks. Mike Maslo wrote: > I got it. I thank you for that. > > If I wanted to count to 10 using the do..while statement, what would I do > differently? > From ksapergia at sasktel.net Mon May 15 04:19:42 2006 From: ksapergia at sasktel.net (Kelly Sapergia) Date: Sun, 14 May 2006 21:19:42 -0600 Subject: [AGDev-newbies] Need Help Getting Product Key for Visual C# Express Message-ID: <5.1.0.14.0.20060514211717.012c7180@mail.sasktel.net> Hi, I can now get onto the Registration Benefits Portal, but when I click on the link to get a product key, it says "none available". I then clicked on "Request product key" and was told that there are no keys available. Is there something else I need to do to get the key? Thanks. Yours Sincerely, Kelly John Sapergia For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and Global Fusion music, listen to "Northern Lights", Thursdays from 01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American Council of the Blind) Radio Interactive at http://interactive.acbradio.org Visit the show's web site at http://www.ksapergia.net/northernlights.html For high-quality audio productions at affordable prices, visit KJS Productions at: http://www.kjsproductions.com You can also visit my personal web site at: http://www.ksapergia.net From k4nkz at comcast.net Mon May 15 11:37:21 2006 From: k4nkz at comcast.net (K4NKZ Jim Ardin) Date: Mon, 15 May 2006 06:37:21 -0400 Subject: [AGDev-newbies] looking for up to date books 4 c sharp 2005 Message-ID: <001901c6780b$8c3c4010$6401a8c0@DH305Q91> hi everybody, I am looking for up to date books 4 c sharp 2005 I downloaded and installed, and registered Visual C# 2005 Express Edition! but I now need some easy books to read! and money is kina of tight!I can't even pay Safari the $10.00 a month to read their books! I just moved to Florida 2 months ago, and when you got a new house, money goes out before it comes in!We are all looking for jobs, but no luck yet! so I am asking Please, can anybody help me with getting 1 or more up to date books? all the books I have are for the first version of c sharp, vs.net. books like: 1 C sharp.NET Bible 2 direct x9 3 Mastering Visual Studio NET 4 programming c Sharp 5 sams learn cSharpIn24hours and some books on vb.net some of these books are good for anything up to vs.net 2003 and if anybody would like a copy of them, just ask! and I will zipped it right out to you. *** --- *** --- *** Have A Nice Day, From Jim Ardin eMail = K4NKZ at comcast.net From z2004a1 at columbus.rr.com Mon May 15 11:52:57 2006 From: z2004a1 at columbus.rr.com (Tim) Date: Mon, 15 May 2006 06:52:57 -0400 Subject: [AGDev-newbies] Need Help Getting Product Key for Visual C# Express In-Reply-To: <5.1.0.14.0.20060514211717.012c7180@mail.sasktel.net> References: <5.1.0.14.0.20060514211717.012c7180@mail.sasktel.net> Message-ID: <7.0.1.0.2.20060515064755.0230e690@columbus.rr.com> So you did get the registration key to take it off the 30 day thing? Without that nothing will show up there. Do you have msn or skipe? Might be able to help you better. At 11:19 PM 5/14/2006, you wrote: >Hi, > I can now get onto the Registration Benefits Portal, but when I > click on the link to get a product key, it says "none available". I > then clicked on "Request product key" and was told that there are > no keys available. Is there something else I need to do to get the key? > Thanks. > > >Yours Sincerely, >Kelly John Sapergia >For a mix of New Age, Ambient, Easy Listening, Smooth Jazz and >Global Fusion music, listen to "Northern Lights", Thursdays from >01:00 to 03:00 GMT (Wednesdays in North America) on ACB (American >Council of the Blind) Radio Interactive at http://interactive.acbradio.org >Visit the show's web site at http://www.ksapergia.net/northernlights.html >For high-quality audio productions at affordable prices, visit KJS >Productions at: http://www.kjsproductions.com >You can also visit my personal web site at: >http://www.ksapergia.net > >_______________________________________________ >AGDev-newbies mailing list >AGDev-newbies at lists.agdev.org >http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From richard at audiogames.net Mon May 15 20:41:11 2006 From: richard at audiogames.net (AudioGames.net) Date: Mon, 15 May 2006 21:41:11 +0200 Subject: [AGDev-newbies] Accessible Game Coding Contest! Message-ID: <00b901c67857$84f144d0$8e8b2ed5@Delletje> (also see: http://www.game-accessibility.com and http://www.igda.org/accessibility) *Accessibility Game Coding Contest (May 15, 2006)* Donationcoder.com (http://www.donationcoder.com/) holds an accessible game design contest from Jun. 1, 2006 to Sep. 1, 2006. The task is to invent and program a game in one of two possible categories: audio games and a one-switch game. Prize-winners can gain over $5,000 worth of prizes! More information about the contest here: http://www.donationcoder.com/Contests/agame/ (first draft of the website is currently online, changes may apply) Greets, Richard (http://www.audiogames.net) -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Tue May 16 02:52:01 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 15 May 2006 21:52:01 -0400 Subject: [AGDev-newbies] Accessible Game Coding Contest! In-Reply-To: <00b901c67857$84f144d0$8e8b2ed5@Delletje> References: <00b901c67857$84f144d0$8e8b2ed5@Delletje> Message-ID: <44693041.4020006@earthlink.net> Hi, Richard. It will be interesting to find out what the prises will be. It would be nice to have some cash prizes for this contest. For example my company USA Games is trying to get started, and extra cash to buy this or that wouldn't hurt if we won. This contest sounds interesting. Keep us posted. From mmaslo1964 at swbell.net Tue May 16 01:15:12 2006 From: mmaslo1964 at swbell.net (Mike Maslo) Date: Mon, 15 May 2006 19:15:12 -0500 Subject: [AGDev-newbies] (no subject) Problem with while loop. In-Reply-To: <4466BDBD.1070103@earthlink.net> Message-ID: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF> Thomas: static void Main() { int value = 0; while(value != 10) { // update value. value ++; // Print out value. System.Console.WriteLine("Number: {0} ", value); } } If I wanted to add a departing statement, how would I achieve this?? I had it as follows but it did not work the way I thought it would. using System; using System.Collections.Generic; using System.Text; namespace exercise5_3 { class Program { static void Main(string[] args) { int number = 0; while (number < 21) { number++; Console.WriteLine("Counting to 20: {0} ", number); { Console.WriteLine("The end"); } } } } } -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Sunday, May 14, 2006 12:19 AM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] (no subject) Problem with while loop. Hi, Mike. You are getting on the right track with this attempt, but the major problem hear is the structure of your while loop. I'd start by removing the do loop. All you need is the while loop. Here is a quick rewrite of main using the while loop correctly. static void Main() { int value = 0; while(value != 10) { // update value. value ++; // Print out value. System.Console.WriteLine("Number: {0} ", value); } } Mike Maslo wrote: > > Do.While statement and forever loop List: > > Well I tried another program and it just ran and ran and an and ran. > > It did not stop. > > What did I do wrong with this one? > > namespace Notepad > > { > > class function > > { > > static void Main( ) > > { > > int valueOne = 0; > > do > > { > > System.Console.WriteLine("This prints variable: {0} ", valueOne); > > } while (valueOne < 10); > > valueOne++; > > } > > } > > } > > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006 > _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From tward1978 at earthlink.net Tue May 16 06:59:40 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 16 May 2006 01:59:40 -0400 Subject: [AGDev-newbies] Accessible Game Coding Contest! In-Reply-To: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF> References: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF> Message-ID: <44696A4C.6050409@earthlink.net> Hi, Michelle. Well, the prizes sound pretty good from my angle, but I am concerned about the books. The Game Gems series is a very awesome set of books, but none of them to my knolege has been put in to an accessible format. I'm wondering if the publisher can be asked to provide accessible copies if a blind developer were to win that prize. I've had portions and articles read to me, but I would rather have a text copy I can look up stuff I would like to read. They don't scan well at all either. hinn at uiuc.edu wrote: > I can answer that question based on what we're lining up now > (I'm with the Game Accessibility SIG and DonationCoder). Right > now the prizes are mostly in the form of development software > packages, gaming stuff (consoles, head trackers, etc), gaming > book series (like a complete set of game gems series), > speakers (for better sounding audio games!), a big variety of > stuff to aid in game development. But we're hoping to get a > few cash prizes too -- as the contest goes on, we'll be adding > to the prize pot. The last contest brought in about $15k worth > of prizes so it'd be great if we came near that! :) > > Michelle > From tward1978 at earthlink.net Tue May 16 07:22:27 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 16 May 2006 02:22:27 -0400 Subject: [AGDev-newbies] Problem with while loop. In-Reply-To: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF> References: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF> Message-ID: <44696FA3.3020003@earthlink.net> Hi, Mike.. Ok, It looks like you have an extra left and right brace in the program that does not belong there. I'll show you your own main function, and show you the correction. Your main function. static void Main(string[] args) { int number = 0; while (number < 21) { number++; Console.WriteLine("Counting to 20: {0} ", number); { Console.WriteLine("The end"); } } Here is my main function. static void Main(string[] args) { int number = 0; while (number < 21) { number++; Console.WriteLine("Counting to 20: {0} ", number); } Console.WriteLine("The end"); } I will say here part of a programmer though is learning to find out what went wrong. In your next attempt see if you can find out the solution to the bugs you created, and then mail the list the problem and the solution. That is part of the growing experience. I am here of course to give counsel, but debugging is one of the biggest skills to learn. Trust me the bigger the program the harder the problems and bugs are to find and solve. STFC is about 30000 lines of code, and Monty is at least 15000 already. That's several hundred pages of typed text to locate code in. So be prepared for the big time. Smile. From tward1978 at earthlink.net Tue May 16 13:40:21 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 16 May 2006 08:40:21 -0400 Subject: [AGDev-newbies] looking for up to date books 4 c sharp 2005 In-Reply-To: <001901c6780b$8c3c4010$6401a8c0@DH305Q91> References: <001901c6780b$8c3c4010$6401a8c0@DH305Q91> Message-ID: <4469C835.5040005@earthlink.net> Hello, Jim. If you can hang on a few days I am currently compiling a list of C# books for newbies I might be able to post using the same kind of polacy Book Share uses. I am currently grabbing Programming C# 4th eddition, Managed DirectX 9 in C#, and a book on the .net framework 2.0. I think those books will cover the general basics of what people need to know. Then, I will get started on the specific tutorials for the wiki which will explain on specialised game topics that you can and can often not find in books. K4NKZ Jim Ardin wrote: > hi everybody, > I am looking for up to date books 4 c sharp 2005 > I downloaded and installed, and registered Visual C# 2005 Express > Edition! but I now need some easy books to read! and money is kina of > tight!I can't even pay Safari the $10.00 a month to read their books! > I just moved to Florida 2 months ago, and when you got a new house, > money goes out before it comes in!We are all looking for jobs, but no > luck yet! > so I am asking Please, can anybody help me with getting 1 or more up > to date books? > all the books I have are for the first version of c sharp, vs.net. > books like: > 1 C sharp.NET Bible > 2 direct x9 > 3 Mastering Visual Studio NET > 4 programming c Sharp > 5 sams learn cSharpIn24hours > and some books on vb.net > some of these books are good for anything up to vs.net 2003 > and if anybody would like a copy of them, just ask! and I will zipped > it right out to you. > > *** --- *** --- *** > Have A Nice Day, From Jim Ardin > eMail = K4NKZ at comcast.net > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From k4nkz at comcast.net Tue May 16 13:47:35 2006 From: k4nkz at comcast.net (K4NKZ Jim Ardin) Date: Tue, 16 May 2006 08:47:35 -0400 Subject: [AGDev-newbies] looking for up to date books 4 c sharp 2005 References: <001901c6780b$8c3c4010$6401a8c0@DH305Q91> <4469C835.5040005@earthlink.net> Message-ID: <000b01c678e6$e859d390$6401a8c0@DH305Q91> thanks Tom! ----- Original Message ----- From: "Thomas Ward" To: "Friendly informal list for those new to AG development" Sent: Tuesday, May 16, 2006 8:40 AM Subject: Re: [AGDev-newbies] looking for up to date books 4 c sharp 2005 > Hello, Jim. > If you can hang on a few days I am currently compiling a list of C# books > for newbies I might be able to post using the same kind of polacy Book > Share uses. > I am currently grabbing Programming C# 4th eddition, Managed DirectX 9 in > C#, and a book on the .net framework 2.0. I think those books will cover > the general basics of what people need to know. > Then, I will get started on the specific tutorials for the wiki which will > explain on specialised game topics that you can and can often not find in > books. > > > K4NKZ Jim Ardin wrote: >> hi everybody, >> I am looking for up to date books 4 c sharp 2005 >> I downloaded and installed, and registered Visual C# 2005 Express >> Edition! but I now need some easy books to read! and money is kina of >> tight!I can't even pay Safari the $10.00 a month to read their books! I >> just moved to Florida 2 months ago, and when you got a new house, money >> goes out before it comes in!We are all looking for jobs, but no luck yet! >> so I am asking Please, can anybody help me with getting 1 or more up to >> date books? >> all the books I have are for the first version of c sharp, vs.net. >> books like: >> 1 C sharp.NET Bible >> 2 direct x9 >> 3 Mastering Visual Studio NET >> 4 programming c Sharp >> 5 sams learn cSharpIn24hours >> and some books on vb.net >> some of these books are good for anything up to vs.net 2003 >> and if anybody would like a copy of them, just ask! and I will zipped it >> right out to you. >> >> *** --- *** --- *** >> Have A Nice Day, From Jim Ardin >> eMail = K4NKZ at comcast.net >> _______________________________________________ >> AGDev-newbies mailing list >> AGDev-newbies at lists.agdev.org >> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies >> >> > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > __________ NOD32 1.1541 (20060516) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > From che at tridigitalbb.com Tue May 16 15:07:14 2006 From: che at tridigitalbb.com (Che) Date: Tue, 16 May 2006 09:07:14 -0500 Subject: [AGDev-newbies] Booga booga Message-ID: <027f01c678f2$088599f0$6401a8c0@Flash> Hi all, I just joined the list here. My name is Che Martin pronounced Shay, named after Che Guevera for you history buffs out there. I am currently developing a racing game called Rail Racer which I hope to have in public beta in a few weeks. Anyhow, thought I would stick my beak in here and see what is what. Ciao, Che From rbennett at southlink.us Tue May 16 19:25:03 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 16 May 2006 14:25:03 -0400 Subject: [AGDev-newbies] menus Message-ID: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn> Hey listers, I am trying to create a project in my game programming class(my partner and I) and want to be able to scroll through the menu to pick out what kind of spell to cast onto the other wizard. How exactly would you write a menu like that? It wouldn't be a normal switch statement would it? Again, this is in C++. Any help will be apprecinated. BEAN Richard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbennett at southlink.us Tue May 16 19:28:30 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 16 May 2006 14:28:30 -0400 Subject: [SPAM] Re: [AGDev-newbies] Accessible Game Coding Contest! References: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF> <44696A4C.6050409@earthlink.net> Message-ID: <004801c67916$88eb4800$c9ad1c42@gadolum18z9hrn> here is a question for you. Does the game have to be developed by a single person, or can it be developed by a team of individuals? From richard at audiogames.net Tue May 16 19:56:31 2006 From: richard at audiogames.net (AudioGames.net) Date: Tue, 16 May 2006 20:56:31 +0200 Subject: [SPAM] Re: [AGDev-newbies] Accessible Game Coding Contest! References: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF><44696A4C.6050409@earthlink.net> <004801c67916$88eb4800$c9ad1c42@gadolum18z9hrn> Message-ID: <005b01c6791a$7284e360$8e8b2ed5@Delletje> I think you can have a team develop the game... ? ----- Original Message ----- From: "Richard Bennett" To: "Friendly informal list for those new to AG development" Sent: Tuesday, May 16, 2006 8:28 PM Subject: Re: [SPAM] Re: [AGDev-newbies] Accessible Game Coding Contest! > here is a question for you. Does the game have to be developed by a single > person, or can it be developed by a team of individuals? > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Tue May 16 20:20:43 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 16 May 2006 15:20:43 -0400 Subject: [SPAM] Re: [AGDev-newbies] Accessible Game Coding Contest! References: <000001c6787d$cd90ecb0$210110ac@YOURBACE1BB2CF><44696A4C.6050409@earthlink.net><004801c67916$88eb4800$c9ad1c42@gadolum18z9hrn> <005b01c6791a$7284e360$8e8b2ed5@Delletje> Message-ID: <012701c6791d$d3ee9a80$c9ad1c42@gadolum18z9hrn> that will be cool. I may talk to the team designing a game at school to see if they want to join, although it is only in 2d graphics, it could be worth it From che at tridigitalbb.com Tue May 16 20:40:55 2006 From: che at tridigitalbb.com (Che) Date: Tue, 16 May 2006 14:40:55 -0500 Subject: [AGDev-newbies] menus References: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn> Message-ID: <037501c67920$a6b19c90$6401a8c0@Flash> Are you wanting to scroll the menu items with the keyboard or what? ----- Original Message ----- From: "Richard Bennett" To: "AGDevNewbies" Sent: Tuesday, May 16, 2006 1:25 PM Subject: [AGDev-newbies] menus Hey listers, I am trying to create a project in my game programming class(my partner and I) and want to be able to scroll through the menu to pick out what kind of spell to cast onto the other wizard. How exactly would you write a menu like that? It wouldn't be a normal switch statement would it? Again, this is in C++. Any help will be apprecinated. BEAN Richard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------------------------------------------------------------------------- > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > From rbennett at southlink.us Tue May 16 20:44:35 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 16 May 2006 15:44:35 -0400 Subject: [AGDev-newbies] menus References: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn> <037501c67920$a6b19c90$6401a8c0@Flash> Message-ID: <014801c67921$29d56390$c9ad1c42@gadolum18z9hrn> yeah I am wanting to scroll the menu with say my arrow keys. Sort of how Bavisoft games does when you are wanting to talk to someone. for instance: 1 fire spell 2. shock spell 3. laugh spell and to be able to move to say the 3rd spell from the 1st spell, I want to hit the "down" arrow key then be able to hit enter on the menu item. BEAN From che at tridigitalbb.com Wed May 17 00:32:35 2006 From: che at tridigitalbb.com (Che) Date: Tue, 16 May 2006 18:32:35 -0500 Subject: [AGDev-newbies] menus References: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn><037501c67920$a6b19c90$6401a8c0@Flash> <014801c67921$29d56390$c9ad1c42@gadolum18z9hrn> Message-ID: <055201c67941$03141240$6401a8c0@Flash> Ok, here is the basic outline of how I do it: After the menu class is activated, I loop inside the class, checking for any change in my current menu selection. If the up or down arrow key is hit, the current menu selection variable goes up or down one digit. If the arrow key is hit, then you will do whatever to highlight or the current selection, or play a sound or whatever. What I am doing is I have a boolean set up that is triggered if the arrow key is hit, the boolean flips and plays my sapi voice to let the player know where they are in the menus. Then if the arrow key is hit again, the boolean flips again, and reads the new selection. Inside the loop is a check for the return key, so that if the return key is hit, actions are determined by what the current menu selection is. In your case, if the menu selection is 3 indicating a Head shrinking spell, when the return key is hit, the menu selection variable returns 3 and you can trigger a function to do whatever you need for that spell. This is the basic idea. You can make this as simple or as complex as you want. If you need to layer the menus for sub menus, just throw another variable in there to indicate which set of menus you are in. Good luck, Che ----- Original Message ----- From: "Richard Bennett" To: "Friendly informal list for those new to AG development" Sent: Tuesday, May 16, 2006 2:44 PM Subject: Re: [AGDev-newbies] menus > yeah I am wanting to scroll the menu with say my arrow keys. Sort of how > Bavisoft games does when you are wanting to talk to someone. for instance: > 1 fire spell > 2. shock spell > 3. laugh spell > and to be able to move to say the 3rd spell from the 1st spell, I want to > hit the "down" arrow key then be able to hit enter on the menu item. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > From tward1978 at earthlink.net Wed May 17 02:41:48 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 16 May 2006 21:41:48 -0400 Subject: [AGDev-newbies] menus In-Reply-To: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn> References: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn> Message-ID: <446A7F5C.7010500@earthlink.net> Hi, Richard. I guess this would largely depend on how you want the menu designed. For example, are you going to use wav files to self voice your menus, or are using a Win32 type application and want a basic Windows pull down menu. I am guessing you want the former. How I do it is I enumerate the list of menus or screen names I will be using in my game. Then, I have a SpeakMenu function, a SelectMenu function, and a MenuUp and MenuDown function. Once I created them I use a switch statement which captures the key press for that menu or screen, and activates the select, menu down, or menu up functions. Richard Bennett wrote: > Hey listers, I am trying to create a project in my game programming > class(my partner and I) and want to be able to scroll through the menu > to pick out what kind of spell to cast onto the other wizard. How > exactly would you write a menu like that? It wouldn't be a normal > switch statement would it? Again, this is in C++. Any help will be > apprecinated. > BEAN > Richard Bennett *BEAN* > Georgia State Phi Beta Lambda(PBL) Secretary > personal e-mail: > rbennett at southlink.us > Windows Messenger(or MSN messenger): > ichabodsparrow at hotmail.com > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.5.6/340 - Release Date: 5/15/2006 > From rbennett at southlink.us Wed May 17 02:59:33 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 16 May 2006 21:59:33 -0400 Subject: [AGDev-newbies] menus References: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn><037501c67920$a6b19c90$6401a8c0@Flash><014801c67921$29d56390$c9ad1c42@gadolum18z9hrn> <055201c67941$03141240$6401a8c0@Flash> Message-ID: <020b01c67955$8b493690$c9ad1c42@gadolum18z9hrn> Hey Che, thanks for that, I apprecinate that. I think I understand. BEAN From rbennett at southlink.us Wed May 17 03:05:33 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 16 May 2006 22:05:33 -0400 Subject: [AGDev-newbies] menus References: <003f01c67916$0d7683b0$c9ad1c42@gadolum18z9hrn> <446A7F5C.7010500@earthlink.net> Message-ID: <022a01c67956$61f71950$c9ad1c42@gadolum18z9hrn> Hey tom, thanks for your version and info as well. You are right, I am wanting to play wav files for my menu choices. From rbennett at southlink.us Wed May 17 23:33:38 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 17 May 2006 18:33:38 -0400 Subject: [AGDev-newbies] menus again Message-ID: <00f601c67a01$f1b673a0$c9ad1c42@gadolum18z9hrn> Hey Tom and Che I do appreciate ya'll's help on the menu thing, but I am still not getting it. I thought I was but it just isn't clicking in my full head. Would I have to assign a variable for each menu item? EXAMPLE: fs=fire spell as=alteration spell ls=laugh spell and then make it iterate through the menu choices? Tom, I don't understand what you are talking about when you mentioned having the different functions about menu up and menu down and the others you mentioned. I am sorry for asking this again, I just don't understand. I might could figure it out if I had time on this project, but it is due in like 3 weeks and time is running out. BEAN Richard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Thu May 18 00:19:53 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 17 May 2006 19:19:53 -0400 Subject: [AGDev-newbies] menus again In-Reply-To: <00f601c67a01$f1b673a0$c9ad1c42@gadolum18z9hrn> References: <00f601c67a01$f1b673a0$c9ad1c42@gadolum18z9hrn> Message-ID: <446BAF99.3030107@earthlink.net> Hi, Richard. No. You don't have to use a variable for every menu choice. Actually I recommend against it as it can make conding harder than easier in complex programs. However, let me show you a very simple menu system. // Global variables. int g_menu = 0; int g_location = 0; // Constants. const int g_spells = 1; // Select menu option. // Selects the menu option which has focus. void SelectMenuOption() { if(g_screen == g_spells) { if(g_location == 1) { SelectFire(); } if(g_location == 2) { SelectLightning(); } if(g_location == 3) { SelectInvisible(); } } } // Speak menu option. // Speaks the current menu option. void SpeakMenuOption() { if(g_screen == g_spells) { if(g_location == 0) { SpeakSelectSpell.Play(0, BufferPlayFlags.Default); } if(g_location == 1) { SpeakFire.Play(0, BufferPlayFlags.Default); } if(g_location == 2) { SpeakLightning.Play(0, BufferPlayFlags.Default); } if(g_location == 3) { SpeakInvisible.Play(0, BufferPlayFlags.Default); } } } // Menu down. // Move down through the menus. void MenuDown() { g_location = g_location + 1; if(screen == g_spells && g_location > 3) { g_location = 1; } SpeakMenuOption(); } // Menu up. // Move up through the menus. void MenuUp() { g_location = g_location - 1; if(screen == g_spells && g_location < 1) { g_location = 3; } SpeakMenuOption(); } // Open spells menu. void OpenSpellsMenu() { g_screen = g_spells; g_location = 0; SpeakMenuOption(); } // At this point you have a working menu system except for hot keys. If you attatch the Menu up and down to arrow keys, and SelectMenuOption() to enter or space you will have a working menu. Does this explain things. Hth.' From tward1978 at earthlink.net Thu May 18 00:40:24 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Wed, 17 May 2006 19:40:24 -0400 Subject: [AGDev-newbies] menus again In-Reply-To: <446BAF99.3030107@earthlink.net> References: <00f601c67a01$f1b673a0$c9ad1c42@gadolum18z9hrn> <446BAF99.3030107@earthlink.net> Message-ID: <446BB468.1080104@earthlink.net> Oops! Made kind of a major mistake. Anyone else catch it? Ok, here is what I did wrong. I declared a variable g_menu and didn't use it. the lines if(g_screen == g_spells) should be if(g_menu == g_spells). Thomas Ward wrote: > Hi, Richard. > No. You don't have to use a variable for every menu choice. Actually I > recommend against it as it can make conding harder than easier in > complex programs. However, let me show you a very simple menu system. > > // Global variables. > int g_menu = 0; > int g_location = 0; > > // Constants. > const int g_spells = 1; > > // Select menu option. > // Selects the menu option which has focus. > void SelectMenuOption() > { > > if(g_screen == g_spells) > { > if(g_location == 1) > { > SelectFire(); > } > if(g_location == 2) > { > SelectLightning(); > } > if(g_location == 3) > { > SelectInvisible(); > } > } > } > > > // Speak menu option. > // Speaks the current menu option. > void SpeakMenuOption() > { > > if(g_screen == g_spells) > { > if(g_location == 0) > { > SpeakSelectSpell.Play(0, BufferPlayFlags.Default); > } > if(g_location == 1) > { > SpeakFire.Play(0, BufferPlayFlags.Default); > } > if(g_location == 2) > { > SpeakLightning.Play(0, BufferPlayFlags.Default); > } > if(g_location == 3) > { > SpeakInvisible.Play(0, BufferPlayFlags.Default); > } > } > } > > > // Menu down. > // Move down through the menus. > void MenuDown() > { > > g_location = g_location + 1; > > if(screen == g_spells && > g_location > 3) > { > g_location = 1; > } > > SpeakMenuOption(); > } > > // Menu up. > // Move up through the menus. > void MenuUp() > { > > g_location = g_location - 1; > > if(screen == g_spells && > g_location < 1) > { > g_location = 3; > } > > SpeakMenuOption(); > } > > > // Open spells menu. > void OpenSpellsMenu() > { > g_screen = g_spells; > g_location = 0; > SpeakMenuOption(); > } > > > // At this point you have a working menu system except for hot keys. > If you attatch the Menu up and down to arrow keys, and > SelectMenuOption() to enter or space you will have a working menu. > Does this explain things. > Hth.' > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Thu May 18 03:09:33 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 17 May 2006 22:09:33 -0400 Subject: [AGDev-newbies] menus again References: <00f601c67a01$f1b673a0$c9ad1c42@gadolum18z9hrn> <446BAF99.3030107@earthlink.net> Message-ID: <001401c67a20$1b47cbb0$c9ad1c42@gadolum18z9hrn> Hey Tom, I think it explains things. For now it does anyways. I just read over it once before I go to bed, and I will have more time to read over it tomorrow during our class time while we work on our program and if I have any questions, hopefully my teacher can answer them I do apprecinate this man. Thanks alot BEAN From rbennett at southlink.us Thu May 18 03:12:54 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 17 May 2006 22:12:54 -0400 Subject: [AGDev-newbies] menus again References: <00f601c67a01$f1b673a0$c9ad1c42@gadolum18z9hrn><446BAF99.3030107@earthlink.net> <446BB468.1080104@earthlink.net> Message-ID: <001f01c67a20$92e178b0$c9ad1c42@gadolum18z9hrn> nah, I didn't catch it, cause I wasn't looking for it, lol. Even experts make mistakes Tom, I was taught that was being part of a programmer is finding your errors when you write code, thanks for the fix. BEAN From rbennett at southlink.us Mon May 22 00:48:55 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sun, 21 May 2006 19:48:55 -0400 Subject: [AGDev-newbies] audio game menus Message-ID: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> Hey listers, since I am creating my first actual audio game, I have yet another question about menus. The question is this: Should there be quite a few menus in there since the game has many choices? Let me explain a little bit. At the start of the game I have the choice of do you want to play and I want the players to have the choice of "Yes" or "no"(I have this in a menu) and if they click no they get a file saying something about they must be chicken or something like that, anyhow, for "yes" I want them to have the choice of the mage they want to be such as 1 choice is "White" and the other choice is "Black"(this is a menu as well). Then from there they have the choice of which spells to cast in menus such as White: laugh, fire, etc. Dark: mystify, darkFire, etc.(all of these are in menus as well) I am guessing that I am doing this right by having alot of menu choice in this game since it is already preselected options and the player cannot enter their own choices by typing in something they want to do. Please let me know if audio games like this have lots of menus in them. BEAN Richard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Mon May 22 02:11:56 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sun, 21 May 2006 21:11:56 -0400 Subject: [AGDev-newbies] audio game menus In-Reply-To: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> References: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> Message-ID: <44710FDC.3040900@earthlink.net> Hi, Richard. You are on the right track with your thinking. My games have quite a few menus in them in them as well. For example when you press f6 in Jedi Strike it presents a menu of available force powers for your character. Once you choose it when the force key c is pressed it takes the action like speed run, jump, etc. Richard Bennett wrote: > Hey listers, since I am creating my first actual audio game, I have > yet another question about menus. The question is this: > Should there be quite a few menus in there since the game has many > choices? > Let me explain a little bit. At the start of the game I have the > choice of do you want to play and I want the players to have the > choice of "Yes" or "no"(I have this in a menu) and if they click no > they get a file saying something about they must be chicken or > something like that, anyhow, for "yes" I want them to have the choice > of the mage they want to be such as 1 choice is "White" and the other > choice is "Black"(this is a menu as well). Then from there they have > the choice of which spells to cast in menus such as > White: laugh, fire, etc. > Dark: mystify, darkFire, etc.(all of these are in menus as well) > I am guessing that I am doing this right by having alot of menu choice > in this game since it is already preselected options and the player > cannot enter their own choices by typing in something they want to do. > Please let me know if audio games like this have lots of menus in them. > BEAN > Richard Bennett *BEAN* > Georgia State Phi Beta Lambda(PBL) Secretary > personal e-mail: > rbennett at southlink.us > Windows Messenger(or MSN messenger): > ichabodsparrow at hotmail.com > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.6.1/343 - Release Date: 5/18/2006 > From rbennett at southlink.us Mon May 22 08:21:00 2006 From: rbennett at southlink.us (Richard Bennett) Date: Mon, 22 May 2006 03:21:00 -0400 Subject: [AGDev-newbies] audio game menus References: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> <44710FDC.3040900@earthlink.net> Message-ID: <000501c67d70$4911a4a0$c9ad1c42@gadolum18z9hrn> alright!, That means I am doing something right then, lol. I appreciate that. I thought that is how it should work, but before I actually got deep into the actual coding instead of the planning(pseudocode), I wanted to make sure, lol, didn't want to be making things harder on myself. BEAN From tward1978 at earthlink.net Mon May 22 12:46:58 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 22 May 2006 07:46:58 -0400 Subject: [AGDev-newbies] audio game menus In-Reply-To: <000501c67d70$4911a4a0$c9ad1c42@gadolum18z9hrn> References: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> <44710FDC.3040900@earthlink.net> <000501c67d70$4911a4a0$c9ad1c42@gadolum18z9hrn> Message-ID: <4471A4B2.5070307@earthlink.net> Hi, Richard. For some things like spells you could save yourself some coding by setting up a cycle as well. I remember in the Star Wars Jedi Knight series you could press I think it was the e key to toggle through a cycle of available force powers and f to activate it. You could do s to cycle through spells, and use c to cast, or space to cast. Richard Bennett wrote: > alright!, That means I am doing something right then, lol. I > appreciate that. I thought that is how it should work, but before I > actually got deep into the actual coding instead of the > planning(pseudocode), I wanted to make sure, lol, didn't want to be > making things harder on myself. > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Mon May 22 20:39:47 2006 From: rbennett at southlink.us (Richard Bennett) Date: Mon, 22 May 2006 15:39:47 -0400 Subject: [AGDev-newbies] audio game menus References: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> <44710FDC.3040900@earthlink.net><000501c67d70$4911a4a0$c9ad1c42@gadolum18z9hrn> <4471A4B2.5070307@earthlink.net> Message-ID: <000d01c67dd7$7c44c480$c9ad1c42@gadolum18z9hrn> Hey Tom, I appreciate that, but since I am just learning how to do the audio menus, I prefer to do the long way first, till I get that down pat good enough, then look for easier ways to do things. That is the way I have always been, do things the hard and long way first till you get it right, then look for easier and shorter ways to do the same thing. Bullheaded I know but it has always worked for me. Can you give an example of how you would code a scroll? That is interesting. The way you explained the menus worked perfectly. BEAN From tward1978 at earthlink.net Tue May 23 06:49:37 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 23 May 2006 01:49:37 -0400 Subject: [AGDev-newbies] audio game menus In-Reply-To: <000d01c67dd7$7c44c480$c9ad1c42@gadolum18z9hrn> References: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> <44710FDC.3040900@earthlink.net><000501c67d70$4911a4a0$c9ad1c42@gadolum18z9hrn> <4471A4B2.5070307@earthlink.net> <000d01c67dd7$7c44c480$c9ad1c42@gadolum18z9hrn> Message-ID: <4472A271.5040605@earthlink.net> Hi, Richard. Oh, this is a piece of cake. Here is a toggle for spells. // Global spell variable. int g_spell = 0; // Toggle spell. // Toggles through all the player's spells. void ToggleSpells() { g_spell ++; if(g_spell > 3) { g_spell = 1; } if(g_spell == 1) { SetSpellFire(); } if(g_spell == 2) { SetSpellMyst(); } if(g_spell == 3) { SetSpellVanish(); } } From rbennett at southlink.us Tue May 23 21:04:16 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 23 May 2006 16:04:16 -0400 Subject: [AGDev-newbies] audio game menus References: <008001c67d31$1fd8cfd0$c9ad1c42@gadolum18z9hrn> <44710FDC.3040900@earthlink.net><000501c67d70$4911a4a0$c9ad1c42@gadolum18z9hrn> <4471A4B2.5070307@earthlink.net><000d01c67dd7$7c44c480$c9ad1c42@gadolum18z9hrn> <4472A271.5040605@earthlink.net> Message-ID: <003101c67ea4$12974e40$c9ad1c42@gadolum18z9hrn> Hey Tom, that seems to be alot less coding to do, that may be the way to go on some games. Hmmm.... that is definitely something to ponder there. BEAN From rbennett at southlink.us Sat May 27 04:09:37 2006 From: rbennett at southlink.us (Richard Bennett) Date: Fri, 26 May 2006 23:09:37 -0400 Subject: [AGDev-newbies] goint through a list of sounds Message-ID: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> Hey listers, I am almost finished writing the pseudocode for the main module of my game project and am stumped on something. Here is the question: I have a credits module for when the game is over to play everyone who has helped me on the game. The names are in voice files, and I want it to play each name individually. How would I write that? I think I have it, but there has gots to be an easier way than what I have done. I will send the code. Can someone help me make this easier? I had thought of doing a for loop, but I am woried that each sound will play all at the same time, which would be a mess. I also was worried that the same thing would happen for a while loop. Any help would be apprecinated. Thanks, BEAN CODE: /* credits module */ void Credits() { if devs == 0 { play title devs++; } else if devs == 1 { play developers devs++; } if devs == 2 { play Richard devs++; else if devs == 3 { play Ron devs++; } else if devs == 4 { play voices devs++; } else if devs == 5 { play allison devs++; else if devs == 6 { play sarah devs++; } else if devs == 7 { play Chris devs++; } else if devs == 8 { play Tom } else if devs == 9 { play thanks } } Richard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Sat May 27 06:56:09 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 27 May 2006 01:56:09 -0400 Subject: [AGDev-newbies] goint through a list of sounds In-Reply-To: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> References: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> Message-ID: <4477E9F9.3090706@earthlink.net> Hi, Richard. I can think of two solutions for this problem. 1. this is the easiest. Put all of the credits in one wav file and play it, and you know there is no problems with it. 2. This is more involved, but find out how to check the play status of the wav file and use a while loop to wait on that file before loading the next. Here is a c++ example using DirectX 8. g_credit1->Play(0, BufferPlayFlags.Default); while(g_credit1->Status->Playing() == true) { Application->DoEvents(); } // Continue with credit 2. Richard Bennett wrote: > Hey listers, I am almost finished writing the pseudocode for the main > module of my game project and am stumped on something. Here is the > question: > I have a credits module for when the game is over to play everyone who > has helped me on the game. The names are in voice files, and I want it > to play each name individually. How would I write that? I think I have > it, but there has gots to be an easier way than what I have done. I > will send the code. Can someone help me make this easier? > I had thought of doing a for loop, but I am woried that each sound > will play all at the same time, which would be a mess. I also was > worried that the same thing would happen for a while loop. Any help > would be apprecinated. > Thanks, > BEAN > CODE: > > /* credits module */ > > void Credits() > > { > > if devs == 0 > > { > > play title > > devs++; > > } > > else if devs == 1 > > { > > play developers > > devs++; > > } > > if devs == 2 > > { > > play Richard > > devs++; > > else if devs == 3 > > { > > play Ron > > devs++; > > } > > else if devs == 4 > > { > > play voices > > devs++; > > } > > else if devs == 5 > > { > > play allison > > devs++; > > else if devs == 6 > > { > > play sarah > > devs++; > > } > > else if devs == 7 > > { > > play Chris > > devs++; > > } > > else if devs == 8 > > { > > play Tom > > } > > else if devs == 9 > > { > > play thanks > > } > > } > Richard Bennett *BEAN* > Georgia State Phi Beta Lambda(PBL) Secretary > personal e-mail: > rbennett at southlink.us > Windows Messenger(or MSN messenger): > ichabodsparrow at hotmail.com > ------------------------------------------------------------------------ > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > ------------------------------------------------------------------------ > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: 5/19/2006 > From rbennett at southlink.us Sat May 27 15:09:11 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 27 May 2006 10:09:11 -0400 Subject: [AGDev-newbies] goint through a list of sounds References: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> <4477E9F9.3090706@earthlink.net> Message-ID: <004001c68197$216638f0$c9ad1c42@gadolum18z9hrn> Hey Tom, I am going to check into that. I would put them all in 1 single wav file, but I am only able to use the Windows sound recorder since I couldn't get my version of JAWS to work with goldwave. So this is the only other way that I can think to do it until you mentioned this in this e-mail. I appreciate your help tom, and thanks BEAN From rbennett at southlink.us Sat May 27 18:01:34 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 27 May 2006 13:01:34 -0400 Subject: [AGDev-newbies] goint through a list of sounds References: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> <4477E9F9.3090706@earthlink.net> Message-ID: <007101c681af$35f1b250$c9ad1c42@gadolum18z9hrn> Hey Tom, I had asked about using the if statements to play the different wav files in the credits() function. Do you think that would work for the meantime. I mean I don't have much time to look for Allegro's way of doing things, and I think that if statements would play each file separately. I mean if that will work, I will use it for now, but later on, I can do it the way you suggested. Actually, I will get it to where the different credits are in one big file. But anyways would all of those if statements work for now? BEAN From tward1978 at earthlink.net Sat May 27 21:36:58 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 27 May 2006 16:36:58 -0400 Subject: [AGDev-newbies] goint through a list of sounds In-Reply-To: <004001c68197$216638f0$c9ad1c42@gadolum18z9hrn> References: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> <4477E9F9.3090706@earthlink.net> <004001c68197$216638f0$c9ad1c42@gadolum18z9hrn> Message-ID: <4478B86A.60904@earthlink.net> Hi, richard. I really have troubles seeing JFW or Window Eyes having any problems with Goldwav 5. I have used both with Goldwav 5 without any sets/scripts of any kind and it worked great out of the box. Are you familiar with all the various hot keys? You see if you know Goldwav well enough screen reader support is only there to check the status of something, but beyond that unnecessary. Richard Bennett wrote: > Hey Tom, I am going to check into that. I would put them all in 1 > single wav file, but I am only able to use the Windows sound recorder > since I couldn't get my version of JAWS to work with goldwave. So this > is the only other way that I can think to do it until you mentioned > this in this e-mail. I appreciate your help tom, and thanks > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From tward1978 at earthlink.net Sat May 27 22:09:38 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Sat, 27 May 2006 17:09:38 -0400 Subject: [AGDev-newbies] goint through a list of sounds In-Reply-To: <007101c681af$35f1b250$c9ad1c42@gadolum18z9hrn> References: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> <4477E9F9.3090706@earthlink.net> <007101c681af$35f1b250$c9ad1c42@gadolum18z9hrn> Message-ID: <4478C012.9050105@earthlink.net> Hi, Richard. No, using if statements wouldn't work I am afraid. The reason is you have to stop the clock, the processing of your program, until the wav sample finishes playing, and if statements won't do that. There is only two work arounds for your problem. The first I already mentioned is use a while loop to check the play status on the file while the clock is running. The second is more crude, but use the pause function in C++. I believe it is in ustd.h or something like that. You would pass the length of the file to the pause function immediately after you start the file, and the game would freeze for that amount of time until the wav finishes. I guess there is one other way which is more complex than you would like to use is multithread your application and use a wait handle on the thread to wait for the file to finish. Since you are not using Visual C++ multithreading for Windows handles is out of your scope. Richard Bennett wrote: > Hey Tom, I had asked about using the if statements to play the > different wav files in the credits() function. Do you think that would > work for the meantime. I mean I don't have much time to look for > Allegro's way of doing things, and I think that if statements would > play each file separately. I mean if that will work, I will use it for > now, but later on, I can do it the way you suggested. Actually, I will > get it to where the different credits are in one big file. But anyways > would all of those if statements work for now? > BEAN > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Sat May 27 23:33:43 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 27 May 2006 18:33:43 -0400 Subject: [AGDev-newbies] goint through a list of sounds References: <01c501c6813b$04ead430$c9ad1c42@gadolum18z9hrn> <4477E9F9.3090706@earthlink.net><004001c68197$216638f0$c9ad1c42@gadolum18z9hrn> <4478B86A.60904@earthlink.net> Message-ID: <00b901c681dd$9d09d2a0$c9ad1c42@gadolum18z9hrn> Yeah I know the hot key commands for goldwave. I also have jfw 4.51 and don't know if this makes a difference, but when I try to record something, a script error comes up saying that that particular script isn't for the current version. So I recompiled the script with the same result. Now, the fact that my version of JFW is so old may be the problem, but I can't afford to purchase a newer version at the present. So I am having to do things a different way than I would like to do them. Although I do appreciate your help with this. BEAN From rbennett at southlink.us Sun May 28 01:09:11 2006 From: rbennett at southlink.us (Richard Bennett) Date: Sat, 27 May 2006 20:09:11 -0400 Subject: [AGDev-newbies] finished, I think Message-ID: <00ed01c681ea$f4ffc110$c9ad1c42@gadolum18z9hrn> Hey listers, I think I have finished actually coding the game I have been developing. Of course, that was the "easy" part, now comes the compiling and error checking phase, which I am not exactly looking forward to. Hopefully, I will have one of the few programs that when compiled will have no errors, wouldn't that make me extremely blessed? But I am 99.9% sure that I will have at least 30 errors, but I can hope not. Anyways talk at ya'll later and just wanted to let ya'll know with ya'll's help I have at least gotten to this point. I will let everyone know how many errors I got, if it isn't too many, when I get the nerve to compile the game. Again thanks for all the help in this. Also Tom, would you do me a huge favor and record a wav file with your name in it so that I can play it in the credits? If ot, I understand, just wanted to give credit is due, because you did help in this process with your suggestions. BEANRichard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tward1978 at earthlink.net Tue May 30 01:17:50 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 29 May 2006 20:17:50 -0400 Subject: [AGDev-newbies] Introduction to ship classes. Message-ID: <447B8F2E.5010801@earthlink.net> Hi, all. I was revising the Star Trek game engine basic ship class, and I thought I would share this with you guys as a template for building objects in your future games. One important thing you will note about this class not only does it hold and store data about the ships, but has update and repair functions which can be called for the object to update it's shields, damage, power, etc. One thing to be careful of is the Calculation object used is specific to my game engine, and the functions it uses for directions, distance, updating x, y, z etc is apartof my engine, and source is not included here for that stuff. However, the rest of it is functionally useful info. For those of you extremely new to programming this class might seam funny having a [Serializable] tag before the public modifier. This is there to announce to my Star Trek game that all data in this class can be saved to a saved game in a binary stream. Since I don't think you guys are up to making saved games you can ignore that serializable stuff for now. Here you go. Enjoy. // Star Trek: // File: Ship.cs. // Version: 1.0. // Last updated on: 5/29/2006. // Author: USA Games Entertainment. using System; namespace Trek { // Ship class. // Generic class for constructing ship objects. // Contains basic power, shield, and location info. [Serializable] public class Ship { // Global class calculation object. private Calculation g_calculation = new Calculation(); // Global class variables. private float g_course; private bool g_destroyed; private int g_launcherDamage; private float g_power; private int g_powerDamage; private int g_sensorDamage; private float g_shields; private int g_shieldDamage; private int g_torpedoes; private float g_x; private float g_y; private float g_warp; private int g_warpDamage; // Get course. // Gets the course of the ship. public float GetCourse() { return g_course; } // Set Course. // Sets the ship's course. public void SetCourse(float course) { // If course is less than // 0 degrees // set course to 360. if(course < 0) { course = 360; } // If course is greater than // 360 degrees // set course to 0 degrees. if(course > 360) { course = 0; } // Set new course. g_course = course; } // Get destroyed. // Gets the ship's destroyed status. public bool GetDestroyed() { return g_destroyed; } // Set destroyed. // Sets the ship's destroyed flag. public void SetDestroyed(bool state) { g_destroyed = state; } // Add launcher damage. // Adds damage to the ship's // torpedo launchers. public void AddLauncherDamage(int damage) { g_launcherDamage = g_launcherDamage + damage; } // Get launcher damage. // Gets the amount of damage to the ship's // torpedo launchers. public int GetLauncherDamage() { return g_launcherDamage; } // Set launcher damage. // Sets damage to the // torpedo launchers. public void SetLauncherDamage(int damage) { g_launcherDamage = damage; } // Subtract launcher damage. // Subtracts damage from the ship's // torpedo launchers. public void SubtractLauncherDamage(int damage) { // Subtract launcher damage. damage = g_launcherDamage - damage; // If launcher damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set launcher damage. g_launcherDamage = damage; } // Add power. // Adds power to the ship's // warp core. public void AddPower(float power) { g_power = g_power + power; } // Get power. // Gets the amount of power in the ship's // warp core. public float GetPower() { return g_power; } // Set power. // Sets power in the // ship's warp core. public void SetPower(float power) { g_power = power; } // Subtract power. // Subtracts power from the ship's // warp core. public void SubtractPower(float power) { // Subtract power. power = g_power - power; // If power is less than 0 // set to 0. if(power < 0) { power = 0; } // Set power. g_power = power; } // Add power damage. // Adds damage to the ship's // main power. public void AddPowerDamage(int damage) { g_powerDamage = g_powerDamage + damage; } // Get power damage. // Gets the amount of damage to the ship's // main power. public int GetPowerDamage() { return g_powerDamage; } // Set power damage. // Sets damage to the // main power. public void SetPowerDamage(int damage) { g_powerDamage = damage; } // Subtract power damage. // Subtracts damage from the ship's // main power. public void SubtractPowerDamage(int damage) { // Subtract power damage. damage = g_powerDamage - damage; // If power damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set power damage. g_powerDamage = damage; } // Add sensor damage. // Adds damage to the ship's // sensor array. public void AddSensorDamage(int damage) { g_sensorDamage = g_sensorDamage + damage; } // Get sensor damage. // Gets the amount of damage to the ship's // sensor array. public int GetSensorDamage() { return g_sensorDamage; } // Set sensor damage. // Sets damage to the // sensor array. public void SetSensorDamage(int damage) { g_sensorDamage = damage; } // Subtract sensor damage. // Subtracts damage from the ship's // sensor array. public void SubtractSensorDamage(int damage) { // Subtract sensor damage. damage = g_sensorDamage - damage; // If sensor damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set sensor damage. g_sensorDamage = damage; } // Add shield damage. // Adds damage to the ship's // shield generators. public void AddShieldDamage(int damage) { g_shieldDamage = g_shieldDamage + damage; } // Get shield damage. // Gets the amount of damage to the ship's // shield generators. public int GetShieldDamage() { return g_shieldDamage; } // Set shield damage. // Sets damage to the // shield generators. public void SetShieldDamage(int damage) { g_shieldDamage = damage; } // Subtract shield damage. // Subtracts damage from the ship's // shield generators. public void SubtractShieldDamage(int damage) { // Subtract shield damage. damage = g_shieldDamage - damage; // If shield damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set shield damage. g_shieldDamage = damage; } // Add shields. // Adds shields to the ship. public void AddShields(float shields) { g_shields = g_shields + shields; } // Get shields. // Gets the amount of shields on the ship. public float GetShields() { return g_shields; } // Set shields. // Sets shields for the ship. public void SetShields(float shields) { g_shields = shields; } // Subtract shields. // Subtracts shields from the ship. public void SubtractShields(float shields) { // Subtract shields. shields = g_shields - shields; // If shields is less than 0 // set to 0. if(shields < 0) { shields = 0; } // Set shields. g_shields = shields; } // Add torpedoes. // Adds torpedoes to the ship's // torpedo bay. public void AddTorpedoes(int torpedoes) { g_torpedoes = g_torpedoes + torpedoes; } // Get torpedoes. // Gets the amount of torpedoes in the ship's // torpedo bay. public int GetTorpedoes() { return g_torpedoes; } // Set torpedoes. // Sets torpedoes in the // torpedo bay. public void SetTorpedoes(int torpedoes) { g_torpedoes = torpedoes; } // Subtract torpedoes. // Subtracts torpedoes from the ship's // torpedo bay. public void SubtractTorpedoes(int torpedoes) { // Subtract torpedoes. torpedoes = g_torpedoes - torpedoes; // If torpedoes is less than 0 // set to 0. if(torpedoes < 0) { torpedoes = 0; } // Set torpedoes. g_torpedoes = torpedoes; } // Add warp damage. // Adds damage to the ship's // warp engines. public void AddWarpDamage(int damage) { g_warpDamage = g_warpDamage + damage; } // Get warp damage. // Gets the amount of damage to the ship's // warp engines. public int GetWarpDamage() { return g_warpDamage; } // Set warp damage. // Sets damage to the // warp engines. public void SetWarpDamage(int damage) { g_warpDamage = damage; } // Subtract warp damage. // Subtracts damage from the ship's // warp engines. public void SubtractWarpDamage(int damage) { // Subtract warp damage. damage = g_warpDamage - damage; // If warp damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set warp damage. g_warpDamage = damage; } // Add warp speed. // Adds warp speed to the ship's // warp engines. public void AddWarpSpeed(float warp) { warp = g_warp + warp; // Restrict the ship from // passing warp 10. // Actual maximum warp will be // set in the update location method. if(warp > 10) { warp = 10; } // Set warp speed. g_warp = warp; } // Get warp speed. // Gets the amount of warp speed in the ship's // warp engines. public float GetWarpSpeed() { return g_warp; } // Set warp speed. // Sets the warp speed of the ship. public void SetWarpSpeed(float warp) { g_warp = warp; } // Subtract warp speed. // Subtracts warp speed from the ship's // warp engines. public void SubtractWarpSpeed(float warp) { // Subtract warp. warp = g_warp - warp; // If warp is less than 0 // set to 0. if(warp < 0) { warp = 0; } // Set warp. g_warp = warp; } // Set location. // Sets the ship's x and y location. public void SetLocation(float x, float y) { g_x = x; g_y = y; } // Get X. // Gets the ship's x location. public float GetX() { return g_x; } // Get Y. // Gets the ship's y location. public float GetY() { return g_y; } // Update launcher damage. // Updates the damage to the ship's // torpedo launchers. public void UpdateLauncherDamage() { if(g_destroyed == false && g_launcherDamage > 0) { g_launcherDamage = g_launcherDamage - 1; } } // Update location. // Updates the ship's location // on the game grid. public void UpdateLocation(float max) { if(g_destroyed == false) { // Subtract main power. float power = g_warp * 200.0f; // Update power. SubtractPower(power); // If there is no power, // power is damaged, // or warp is damaged // set warp to 0. if(g_power == 0 || g_powerDamage > 0 || g_warpDamage > 0) { g_warp = 0; } float warp = g_warp; // If ship's warp speed // is greater than max then // set warp to maximum warp. if(warp > max) { warp = max; } // update x. g_x = g_calculation.X(g_course, g_x, warp); // Update y. g_y = g_calculation.Y(g_course, g_y, warp); // If ship slid off the grid // stop it // at the edge. if(g_x < 1) { g_x = 1; } if(g_x > 1000) { g_x = 1000; } if(g_y < 1) { g_y = 1; } if(g_y > 1000) { g_y = 1000; } } } // Update power. // Updates the power in the // ship's warp core. public void UpdatePower(int max) { float charge = 0.10f * max; // Update power if // it is less than maximum power, // and the main power is not off line. if(g_destroyed == false && g_power < max && g_powerDamage == 0) { g_power = g_power + charge; } // If power is greater than // maximum power set power to // the maximum power setting. if(g_power > max) { g_power = max; } // If main power is damaged // reset power to 0. if(g_powerDamage > 0) { g_power = 0; } } // Update power damage. // Updates the damage to the ship's // main power. public void UpdatePowerDamage() { if(g_destroyed == false && g_powerDamage > 0) { g_powerDamage = g_powerDamage - 1; } } // Update sensor damage. // Updates the damage to the ship's // sensor array. public void UpdateSensorDamage() { if(g_destroyed == false && g_sensorDamage > 0) { g_sensorDamage = g_sensorDamage - 1; } } // Update shields. // Updates the ship's shields. public void UpdateShields(float max) { // Get amount of charge. float charge = 0.10f * max; if(g_destroyed == false && g_power > charge && g_powerDamage == 0 && g_shields < max && g_shieldDamage == 0) { g_shields = g_shields + charge; } // If shields are greater than max shields // set maximum shields. if(g_shields > max) { g_shields = max; } // If power is damaged or // shields are damaged // set shields to 0. if(g_powerDamage > 0 || g_shieldDamage > 0) { g_shields = 0; } } // Update shield damage. // Updates the damage to the ship's // shield generators. public void UpdateShieldDamage() { if(g_destroyed == false && g_shieldDamage > 0) { g_shieldDamage = g_shieldDamage - 1; } } // Update warp damage. // Updates the damage to the ship's // warp engines. public void UpdateWarpDamage() { if(g_destroyed == false && g_warpDamage > 0) { g_warpDamage = g_warpDamage - 1; } } } } From tward1978 at earthlink.net Tue May 30 01:19:37 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Mon, 29 May 2006 20:19:37 -0400 Subject: [AGDev-newbies] Introduction to ship classes. Message-ID: <447B8F99.7010907@earthlink.net> Hi, all. I was revising the Star Trek game engine basic ship class, and I thought I would share this with you guys as a template for building objects in your future games. One important thing you will note about this class not only does it hold and store data about the ships, but has update and repair functions which can be called for the object to update it's shields, damage, power, etc. One thing to be careful of is the Calculation object used is specific to my game engine, and the functions it uses for directions, distance, updating x, y, z etc is apartof my engine, and source is not included here for that stuff. However, the rest of it is functionally useful info. For those of you extremely new to programming this class might seam funny having a [Serializable] tag before the public modifier. This is there to announce to my Star Trek game that all data in this class can be saved to a saved game in a binary stream. Since I don't think you guys are up to making saved games you can ignore that serializable stuff for now. Here you go. Enjoy. // Star Trek: // File: Ship.cs. // Version: 1.0. // Last updated on: 5/29/2006. // Author: USA Games Entertainment. using System; namespace Trek { // Ship class. // Generic class for constructing ship objects. // Contains basic power, shield, and location info. [Serializable] public class Ship { // Global class calculation object. private Calculation g_calculation = new Calculation(); // Global class variables. private float g_course; private bool g_destroyed; private int g_launcherDamage; private float g_power; private int g_powerDamage; private int g_sensorDamage; private float g_shields; private int g_shieldDamage; private int g_torpedoes; private float g_x; private float g_y; private float g_warp; private int g_warpDamage; // Get course. // Gets the course of the ship. public float GetCourse() { return g_course; } // Set Course. // Sets the ship's course. public void SetCourse(float course) { // If course is less than // 0 degrees // set course to 360. if(course < 0) { course = 360; } // If course is greater than // 360 degrees // set course to 0 degrees. if(course > 360) { course = 0; } // Set new course. g_course = course; } // Get destroyed. // Gets the ship's destroyed status. public bool GetDestroyed() { return g_destroyed; } // Set destroyed. // Sets the ship's destroyed flag. public void SetDestroyed(bool state) { g_destroyed = state; } // Add launcher damage. // Adds damage to the ship's // torpedo launchers. public void AddLauncherDamage(int damage) { g_launcherDamage = g_launcherDamage + damage; } // Get launcher damage. // Gets the amount of damage to the ship's // torpedo launchers. public int GetLauncherDamage() { return g_launcherDamage; } // Set launcher damage. // Sets damage to the // torpedo launchers. public void SetLauncherDamage(int damage) { g_launcherDamage = damage; } // Subtract launcher damage. // Subtracts damage from the ship's // torpedo launchers. public void SubtractLauncherDamage(int damage) { // Subtract launcher damage. damage = g_launcherDamage - damage; // If launcher damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set launcher damage. g_launcherDamage = damage; } // Add power. // Adds power to the ship's // warp core. public void AddPower(float power) { g_power = g_power + power; } // Get power. // Gets the amount of power in the ship's // warp core. public float GetPower() { return g_power; } // Set power. // Sets power in the // ship's warp core. public void SetPower(float power) { g_power = power; } // Subtract power. // Subtracts power from the ship's // warp core. public void SubtractPower(float power) { // Subtract power. power = g_power - power; // If power is less than 0 // set to 0. if(power < 0) { power = 0; } // Set power. g_power = power; } // Add power damage. // Adds damage to the ship's // main power. public void AddPowerDamage(int damage) { g_powerDamage = g_powerDamage + damage; } // Get power damage. // Gets the amount of damage to the ship's // main power. public int GetPowerDamage() { return g_powerDamage; } // Set power damage. // Sets damage to the // main power. public void SetPowerDamage(int damage) { g_powerDamage = damage; } // Subtract power damage. // Subtracts damage from the ship's // main power. public void SubtractPowerDamage(int damage) { // Subtract power damage. damage = g_powerDamage - damage; // If power damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set power damage. g_powerDamage = damage; } // Add sensor damage. // Adds damage to the ship's // sensor array. public void AddSensorDamage(int damage) { g_sensorDamage = g_sensorDamage + damage; } // Get sensor damage. // Gets the amount of damage to the ship's // sensor array. public int GetSensorDamage() { return g_sensorDamage; } // Set sensor damage. // Sets damage to the // sensor array. public void SetSensorDamage(int damage) { g_sensorDamage = damage; } // Subtract sensor damage. // Subtracts damage from the ship's // sensor array. public void SubtractSensorDamage(int damage) { // Subtract sensor damage. damage = g_sensorDamage - damage; // If sensor damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set sensor damage. g_sensorDamage = damage; } // Add shield damage. // Adds damage to the ship's // shield generators. public void AddShieldDamage(int damage) { g_shieldDamage = g_shieldDamage + damage; } // Get shield damage. // Gets the amount of damage to the ship's // shield generators. public int GetShieldDamage() { return g_shieldDamage; } // Set shield damage. // Sets damage to the // shield generators. public void SetShieldDamage(int damage) { g_shieldDamage = damage; } // Subtract shield damage. // Subtracts damage from the ship's // shield generators. public void SubtractShieldDamage(int damage) { // Subtract shield damage. damage = g_shieldDamage - damage; // If shield damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set shield damage. g_shieldDamage = damage; } // Add shields. // Adds shields to the ship. public void AddShields(float shields) { g_shields = g_shields + shields; } // Get shields. // Gets the amount of shields on the ship. public float GetShields() { return g_shields; } // Set shields. // Sets shields for the ship. public void SetShields(float shields) { g_shields = shields; } // Subtract shields. // Subtracts shields from the ship. public void SubtractShields(float shields) { // Subtract shields. shields = g_shields - shields; // If shields is less than 0 // set to 0. if(shields < 0) { shields = 0; } // Set shields. g_shields = shields; } // Add torpedoes. // Adds torpedoes to the ship's // torpedo bay. public void AddTorpedoes(int torpedoes) { g_torpedoes = g_torpedoes + torpedoes; } // Get torpedoes. // Gets the amount of torpedoes in the ship's // torpedo bay. public int GetTorpedoes() { return g_torpedoes; } // Set torpedoes. // Sets torpedoes in the // torpedo bay. public void SetTorpedoes(int torpedoes) { g_torpedoes = torpedoes; } // Subtract torpedoes. // Subtracts torpedoes from the ship's // torpedo bay. public void SubtractTorpedoes(int torpedoes) { // Subtract torpedoes. torpedoes = g_torpedoes - torpedoes; // If torpedoes is less than 0 // set to 0. if(torpedoes < 0) { torpedoes = 0; } // Set torpedoes. g_torpedoes = torpedoes; } // Add warp damage. // Adds damage to the ship's // warp engines. public void AddWarpDamage(int damage) { g_warpDamage = g_warpDamage + damage; } // Get warp damage. // Gets the amount of damage to the ship's // warp engines. public int GetWarpDamage() { return g_warpDamage; } // Set warp damage. // Sets damage to the // warp engines. public void SetWarpDamage(int damage) { g_warpDamage = damage; } // Subtract warp damage. // Subtracts damage from the ship's // warp engines. public void SubtractWarpDamage(int damage) { // Subtract warp damage. damage = g_warpDamage - damage; // If warp damage is less than 0 // set to 0. if(damage < 0) { damage = 0; } // Set warp damage. g_warpDamage = damage; } // Add warp speed. // Adds warp speed to the ship's // warp engines. public void AddWarpSpeed(float warp) { warp = g_warp + warp; // Restrict the ship from // passing warp 10. // Actual maximum warp will be // set in the update location method. if(warp > 10) { warp = 10; } // Set warp speed. g_warp = warp; } // Get warp speed. // Gets the amount of warp speed in the ship's // warp engines. public float GetWarpSpeed() { return g_warp; } // Set warp speed. // Sets the warp speed of the ship. public void SetWarpSpeed(float warp) { g_warp = warp; } // Subtract warp speed. // Subtracts warp speed from the ship's // warp engines. public void SubtractWarpSpeed(float warp) { // Subtract warp. warp = g_warp - warp; // If warp is less than 0 // set to 0. if(warp < 0) { warp = 0; } // Set warp. g_warp = warp; } // Set location. // Sets the ship's x and y location. public void SetLocation(float x, float y) { g_x = x; g_y = y; } // Get X. // Gets the ship's x location. public float GetX() { return g_x; } // Get Y. // Gets the ship's y location. public float GetY() { return g_y; } // Update launcher damage. // Updates the damage to the ship's // torpedo launchers. public void UpdateLauncherDamage() { if(g_destroyed == false && g_launcherDamage > 0) { g_launcherDamage = g_launcherDamage - 1; } } // Update location. // Updates the ship's location // on the game grid. public void UpdateLocation(float max) { if(g_destroyed == false) { // Subtract main power. float power = g_warp * 200.0f; // Update power. SubtractPower(power); // If there is no power, // power is damaged, // or warp is damaged // set warp to 0. if(g_power == 0 || g_powerDamage > 0 || g_warpDamage > 0) { g_warp = 0; } float warp = g_warp; // If ship's warp speed // is greater than max then // set warp to maximum warp. if(warp > max) { warp = max; } // update x. g_x = g_calculation.X(g_course, g_x, warp); // Update y. g_y = g_calculation.Y(g_course, g_y, warp); // If ship slid off the grid // stop it // at the edge. if(g_x < 1) { g_x = 1; } if(g_x > 1000) { g_x = 1000; } if(g_y < 1) { g_y = 1; } if(g_y > 1000) { g_y = 1000; } } } // Update power. // Updates the power in the // ship's warp core. public void UpdatePower(int max) { float charge = 0.10f * max; // Update power if // it is less than maximum power, // and the main power is not off line. if(g_destroyed == false && g_power < max && g_powerDamage == 0) { g_power = g_power + charge; } // If power is greater than // maximum power set power to // the maximum power setting. if(g_power > max) { g_power = max; } // If main power is damaged // reset power to 0. if(g_powerDamage > 0) { g_power = 0; } } // Update power damage. // Updates the damage to the ship's // main power. public void UpdatePowerDamage() { if(g_destroyed == false && g_powerDamage > 0) { g_powerDamage = g_powerDamage - 1; } } // Update sensor damage. // Updates the damage to the ship's // sensor array. public void UpdateSensorDamage() { if(g_destroyed == false && g_sensorDamage > 0) { g_sensorDamage = g_sensorDamage - 1; } } // Update shields. // Updates the ship's shields. public void UpdateShields(float max) { // Get amount of charge. float charge = 0.10f * max; if(g_destroyed == false && g_power > charge && g_powerDamage == 0 && g_shields < max && g_shieldDamage == 0) { g_shields = g_shields + charge; } // If shields are greater than max shields // set maximum shields. if(g_shields > max) { g_shields = max; } // If power is damaged or // shields are damaged // set shields to 0. if(g_powerDamage > 0 || g_shieldDamage > 0) { g_shields = 0; } } // Update shield damage. // Updates the damage to the ship's // shield generators. public void UpdateShieldDamage() { if(g_destroyed == false && g_shieldDamage > 0) { g_shieldDamage = g_shieldDamage - 1; } } // Update warp damage. // Updates the damage to the ship's // warp engines. public void UpdateWarpDamage() { if(g_destroyed == false && g_warpDamage > 0) { g_warpDamage = g_warpDamage - 1; } } } } From rbennett at southlink.us Tue May 30 08:16:31 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 30 May 2006 03:16:31 -0400 Subject: [AGDev-newbies] Introduction to ship classes. References: <447B8F2E.5010801@earthlink.net> Message-ID: <004f01c683b8$fa6d0e30$c9ad1c42@gadolum18z9hrn> Hey Tom, I appreciate these examples for class modules, I have gotten these from you before, but as the saying goes if you practice right, practice then makes perfect. also, repitition always help you when you don't fully know something. Thanks again, BEAN From tward1978 at earthlink.net Tue May 30 11:10:35 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 30 May 2006 06:10:35 -0400 Subject: [AGDev-newbies] Introduction to ship classes. In-Reply-To: <004f01c683b8$fa6d0e30$c9ad1c42@gadolum18z9hrn> References: <447B8F2E.5010801@earthlink.net> <004f01c683b8$fa6d0e30$c9ad1c42@gadolum18z9hrn> Message-ID: <447C1A1B.4020801@earthlink.net> Hi, Richard and all. The previous example was in C# .net. If you wanted to do it in C++ the class would look quite a bit different. For one thing the updates for shields, setting shield power, etc would go in it's own *.cpp file, the class itself would go in a *.h header file, and reference the class variables like: #include "Ship.h" void Ship::SetShields(float shields) { g_shields = shields; } In other words would look completely different from C# .net. If you know the differences you can convert the class to be used in a C++ engine. From seanpm at triad.rr.com Tue May 30 21:46:37 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Tue, 30 May 2006 16:46:37 -0400 Subject: [AGDev-newbies] Random number in C++ Message-ID: <000001c6842a$2a926d50$0505a8c0@music17> Hi everyone! I have a question about generating random numbers in C++. The simple version of the question is; HOW??? The long version of the question is; How do I generate a random number in C++? This is a really stupid question and I am sorry for it. It's just that I thought that because I wanted to use it in a game, this would be the list to ask! Thanks very much for your help! Check out the Blind Trek list at: blindtrek-subscribe at googlegroups.com Write back soon Sean Mealin seanpm at triad.rr.com From tward1978 at earthlink.net Tue May 30 22:16:41 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 30 May 2006 17:16:41 -0400 Subject: [AGDev-newbies] Random number in C++ In-Reply-To: <000001c6842a$2a926d50$0505a8c0@music17> References: <000001c6842a$2a926d50$0505a8c0@music17> Message-ID: <447CB639.5070903@earthlink.net> Hi, Sean. To start with you need to include the stdlib.h header to your project with the #include statement with the rest of your headers. Here is a simple function you can use to randomly generate a number. However, to generate a number you have to seed it with an integer number. Typically, to emulate something truly random you will want to seed it with the system time of the clock, but you can seed it with anything you want. Just remember if you supply the same seed you will get the same results. // Random number generator. // Takes three integers, seed, low number, and high number, // and returns a random number. int RandomNumber(int seed, int low, int high) { // Create an integer variable to hold the number. int number; // Seed the random generator. srand (seed); // Calculate results. number = low + rand() % (high - low + 1); // Return random number. return number; } From seanpm at triad.rr.com Wed May 31 00:05:50 2006 From: seanpm at triad.rr.com (Sean Mealin) Date: Tue, 30 May 2006 19:05:50 -0400 Subject: [AGDev-newbies] Random number in C++ In-Reply-To: <447CB639.5070903@earthlink.net> Message-ID: <000501c6843d$97d5a3b0$0505a8c0@music17> Ok, thanks! that helps. :-) -----Original Message----- From: agdev-newbies-bounces at lists.agdev.org [mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Thomas Ward Sent: Tuesday, May 30, 2006 5:17 PM To: Friendly informal list for those new to AG development Subject: Re: [AGDev-newbies] Random number in C++ Hi, Sean. To start with you need to include the stdlib.h header to your project with the #include statement with the rest of your headers. Here is a simple function you can use to randomly generate a number. However, to generate a number you have to seed it with an integer number. Typically, to emulate something truly random you will want to seed it with the system time of the clock, but you can seed it with anything you want. Just remember if you supply the same seed you will get the same results. // Random number generator. // Takes three integers, seed, low number, and high number, // and returns a random number. int RandomNumber(int seed, int low, int high) { // Create an integer variable to hold the number. int number; // Seed the random generator. srand (seed); // Calculate results. number = low + rand() % (high - low + 1); // Return random number. return number; } _______________________________________________ AGDev-newbies mailing list AGDev-newbies at lists.agdev.org http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies From rbennett at southlink.us Wed May 31 01:47:49 2006 From: rbennett at southlink.us (Richard Bennett) Date: Tue, 30 May 2006 20:47:49 -0400 Subject: [AGDev-newbies] Random number in C++ References: <000001c6842a$2a926d50$0505a8c0@music17> Message-ID: <00a801c6844b$d7952fd0$c9ad1c42@gadolum18z9hrn> Hey Sean, here is a small example of a random number generation in a die rolling program. //include files //the standard library of C #include //to get the time to help generate a random number #include using namespace std; int main() { // seed random number generator based on current time srand(time(0)); //generate random number int randomNumber = rand(); // get a number between 1 and 6 //the way I remember how to get numbers is where the "6" is is how //numbers you //actually want, and it will //start at 0 unless you do the +1 so if you want 6 numbers //and you want the number to start at 10, you would do +10 instead of +1 int die = (randomNumber % 6) + 1; cout << "You rolled a " << die << endl; return 0; } hope this helps man, BEAN From tward1978 at earthlink.net Wed May 31 02:23:33 2006 From: tward1978 at earthlink.net (Thomas Ward) Date: Tue, 30 May 2006 21:23:33 -0400 Subject: [AGDev-newbies] Random number in C++ In-Reply-To: <00a801c6844b$d7952fd0$c9ad1c42@gadolum18z9hrn> References: <000001c6842a$2a926d50$0505a8c0@music17> <00a801c6844b$d7952fd0$c9ad1c42@gadolum18z9hrn> Message-ID: <447CF015.7020708@earthlink.net> Hi, Richard. Nice job. For once I have been out classed. Grin. I just looked back and I was using older C style headers rather than the newer headers of ctime and cstdlib. Yours would be more in line with modern programs and compilers. I guess maybe I should update my programs to use ctime and cstdlib rather than time.h and stdlib.h. Thanks for the tip. I learned something from your example. Richard Bennett wrote: > Hey Sean, here is a small example of a random number generation in a > die rolling program. > //include files > > //the standard library of C > > #include > > //to get the time to help generate a random number > > #include > > > > using namespace std; > > > > int main() > > { > > // seed random number generator based on current time > > srand(time(0)); > > //generate random number > > int randomNumber = rand(); > > // get a number between 1 and 6 > > //the way I remember how to get numbers is where the "6" is is how > //numbers you > > //actually want, and it will > > //start at 0 unless you do the +1 so if you want 6 numbers > > //and you want the number to start at 10, you would do +10 instead of +1 > > int die = (randomNumber % 6) + 1; > > cout << "You rolled a " << die << endl; > > > > return 0; > > } > > > > hope this helps man, > > BEAN > > _______________________________________________ > AGDev-newbies mailing list > AGDev-newbies at lists.agdev.org > http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies > > From rbennett at southlink.us Wed May 31 21:44:48 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 31 May 2006 16:44:48 -0400 Subject: [AGDev-newbies] Random number in C++ References: <000001c6842a$2a926d50$0505a8c0@music17><00a801c6844b$d7952fd0$c9ad1c42@gadolum18z9hrn> <447CF015.7020708@earthlink.net> Message-ID: <000801c684f3$120ab9d0$c9ad1c42@gadolum18z9hrn> Hey Tom, glad that you learned something, lol. It is like I always say, you learn something new everyday. I didn't mean to out class you, *grin*, all it was is a little die roller game that we had to create last quarter when I began taking the game programming classes, and when Sean asked about random numbers, I thought that this simple little program would be the best way to show him how to do it. No neeed to fear, you are still a member of the Jedi Programming Council,and I am still one of the little people who clean out the Jedi waste lol. BEAN From rbennett at southlink.us Wed May 31 22:58:54 2006 From: rbennett at southlink.us (Richard Bennett) Date: Wed, 31 May 2006 17:58:54 -0400 Subject: [AGDev-newbies] battle of the mages game errors Message-ID: <012a01c684fd$69e27940$c9ad1c42@gadolum18z9hrn> Hey listers, I just wanted to let ya'll know that I finally compiled my game and have 135 errors now, or at least I think that is what my compiler is telling me, lol. I am currently going through the list and trying to figure out the errors. I just wanted to let everyone know an update to my progress and thank everyone for their help and support. Hopefully I can get it down to 0 errors soon, but who knows. I am getting frustrated with it because I can't seem to find some of the errors and it would be too much to put out here and ask for help. But anyways just wanted to update everyone. BEAN Richard Bennett *BEAN* Georgia State Phi Beta Lambda(PBL) Secretary personal e-mail: rbennett at southlink.us Windows Messenger(or MSN messenger): ichabodsparrow at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: