Hi. Same here, python's all right, but those line things really screw me up bad. I have a heck of a time developing the simplest test apps with it, I find it difficult to figure out which part of the code I'm in and such, and I don't have a braille display yet. If I ever get it, I'll have a brailliant 24 or 32before long, which probably isn't long enough for such a thing. ----- Original Message ----- From: "Bryan Mckinnish" <[EMAIL PROTECTED]> To: "Gamers Discussion list" <gamers@audyssey.org> Sent: Monday, January 07, 2008 10:41 AM Subject: Re: [Audyssey] programming games
> Hi everyone. > Remember when I told you I chose python? That's still an option, but I > also > wonder about java. That's a new option I thought of. Is java easy to learn > as well? > Does java have the formatting specification stuff? > That's the only thing that's keeping me from exploring python more. I'm > not > used to formatting code. > Thanks. > Bryan Mckinnish > > ----- Original Message ----- > From: "Thomas Ward" <[EMAIL PROTECTED]> > To: "Gamers Discussion list" <gamers@audyssey.org> > Sent: Tuesday, January 01, 2008 4:57 PM > Subject: Re: [Audyssey] programming games > > >> Hi Bryan, >> If you want to really get to know Python I suggest signing up for a >> Safari Books subscription at >> http://safari.oreilly.com >> and reading the book >> Python In A Nutshell >> which walks you step by sstep through the language and how to use the >> Python tools. >> As for building a Windows application, (win32 *.exe file,) you need to >> run a program called py2exe on your Python source code. It will compile >> your Python source code into a standard Win32 application. >> As far as formatting goes the basic rule of thumb is this. Function >> definition lines are not indented. New statement blocks like an if or >> try is indented 4 spaces and any statements inside those if or try >> statements is indented 8 spaces. Here is an example with comments >> included so you can see what I am doing below. If you don't have >> punctuation set to full on your screen reader now would be a good time >> to set it to full. >> >> #Function definition line. >> #This is never indented. >> def KillEnemy(enemy) >> >> #Begin an if statement. >> #Will be indented 4 spaces in from the left. >> if enemy == 1: >> #Statement line. >> #Will be indented 8 spaces from the left. >> enemy1.Killed(True) >> #End if comment. >> #Is here just to tell the developer >> #that we have ended an if statement. >> #Is indented 4 spaces to be in >> #line with the if statement above. >> #Press enter twice to >> #begin a new function definition. >> >> As you can see above I have included lots of comments using the # sign >> to mark off text that instructs you how to format the function above. Of >> course a seasoned developer probably wouldn't add so many comments in a >> real Python application, but that is the jist of formatting a Python >> script. Important notes to remember here is that you need to add 2 new >> line characters after the end of one function and the beginning of a new >> one or Python will assume they are both apart of the same function. I >> always like to put a comment after each statement block such as >> #End if >> #End function >> #End try >> and so on so that I can easily come back and see where one function or >> block of ends and where a new one begins. This is optional of course, >> but as a new Python developer I think you will need them very much. >> Cheers. >> >> >> Bryan Mckinnish wrote: >>> Hi. >>> I have a couple of questions. >>> What are the formatting specifications with python, and where can I find >>> a >>> good tutorial? I can't find that bite of python one. >>> Also, once I made a little program, how do I compile it and stuf? >>> >>> Thanks. >>> Bryan Mckinnish >>> >> >> >> --- >> Gamers mailing list __ Gamers@audyssey.org >> If you want to leave the list, send E-mail to >> [EMAIL PROTECTED] >> You can make changes or update your subscription via the web, at >> http://audyssey.org/mailman/listinfo/gamers_audyssey.org. >> All messages are archived and can be searched and read at >> http://www.mail-archive.com/[EMAIL PROTECTED] >> If you have any questions or concerns regarding the management of the >> list, >> please send E-mail to [EMAIL PROTECTED] > > > --- > Gamers mailing list __ Gamers@audyssey.org > If you want to leave the list, send E-mail to > [EMAIL PROTECTED] > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/[EMAIL PROTECTED] > If you have any questions or concerns regarding the management of the > list, > please send E-mail to [EMAIL PROTECTED] --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to [EMAIL PROTECTED] You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/[EMAIL PROTECTED] If you have any questions or concerns regarding the management of the list, please send E-mail to [EMAIL PROTECTED]