Welcome Guest.   Make a donation to an author on the site April 16, 2014, 01:59:26 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Book: Invent Your Own Computer Games with Python  (Read 4454 times)
mouser
First Author
Administrator
*****
Posts: 32,648



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: June 11, 2010, 06:30:52 AM »

I've said it before and i'll say it again, there are few better ways to motivate a young kid to learn to program than the promise of being able to create their games.  Here's a python book written with the same idea in mind:



Invent Your Own Computer Games with Python

http://inventwithpython.com/






from http://www.boingboing.net/
Logged
mnemonic
Supporting Member
**
Posts: 176



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: June 11, 2010, 10:48:51 AM »

This looks like a great find mouser - an intro the python, pygame and the debugger all-in-one.
Logged
Deozaan
Charter Member
***
Posts: 6,085



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: June 12, 2010, 01:11:36 PM »

I just downloaded this about a month ago. I thought it was really old so I didn't bother mentioning it here. embarassed
Logged

ewemoa
Honorary Member
**
Posts: 2,228



View Profile Give some DonationCredits to this forum member
« Reply #3 on: June 12, 2010, 04:26:35 PM »

I noticed the code in the book is black and white.

Does someone know of any (preferably easy) ways one might transform the code content to be syntax-highlighted?  I'd like to carry an offline version on a small device that doesn't have an editor on it so copy-pasting the code to an editor doesn't seem like such a good option.

One rather manual way might be to manually copy-paste into:

  http://colorer.sourceforge.net/php/

and replace the original code with the results.  Oh what fun...

Perhaps trying to apply:

  http://google-code-prettify.googlecode.com/svn/trunk/README.html

would be slightly less work...
« Last Edit: June 12, 2010, 04:28:42 PM by ewemoa » Logged
Deozaan
Charter Member
***
Posts: 6,085



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: June 12, 2010, 09:44:44 PM »

You could always e-mail Al and ask him to incorporate GeSHI into the HTML version of his site.
Logged

ewemoa
Honorary Member
**
Posts: 2,228



View Profile Give some DonationCredits to this forum member
« Reply #5 on: June 12, 2010, 10:10:17 PM »

Thanks for the suggestion.
Logged
ewemoa
Honorary Member
**
Posts: 2,228



View Profile Give some DonationCredits to this forum member
« Reply #6 on: June 13, 2010, 05:21:05 AM »

I've thought about the GeSHi suggestion a bit.  IIUC, GeSHi is PHP-based, so I don't think it's likely to work for an off-line version of the book.  Does that sound right?  Silly me smiley

Unfortunately, the formatting of the source for this book seems to be accomplished using list tags instead of pre or code tags, so it doesn't look trivial to convert.
« Last Edit: June 13, 2010, 06:54:18 AM by ewemoa » Logged
Deozaan
Charter Member
***
Posts: 6,085



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: June 13, 2010, 12:15:11 PM »

Al knows script-fu (he uses something like AHK), and uses a search & replace tool with regex capabilities. With that in mind, the main thing that I think would be hardest in the conversion would be preserving the line numbers, since he often just shows little clips of code from the middle but uses the same line numbers as from the source code. i.e. he'll show a snippet of just lines 9 and 10 but I think GeSHI would just automatically label them 1 and 2.
Logged

ewemoa
Honorary Member
**
Posts: 2,228



View Profile Give some DonationCredits to this forum member
« Reply #8 on: June 14, 2010, 12:59:13 AM »

script-fu
Is this something other than the GIMP-related thing?  Or perhaps some other kind of meaning altogether?

Quote
...the main thing that I think would be hardest in the conversion would be preserving the line numbers, since he often just shows little clips of code from the middle but uses the same line numbers as from the source code. i.e. he'll show a snippet of just lines 9 and 10 but I think GeSHI would just automatically label them 1 and 2.
Good point.

FWIW, I came across this:

  http://qbnz.com/highlighter/geshi-doc.html#starting-line-numbers
Logged
Deozaan
Charter Member
***
Posts: 6,085



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: June 15, 2010, 06:03:58 PM »

script-fu
Is this something other than the GIMP-related thing?  Or perhaps some other kind of meaning altogether?

I'm not sure what script-fu has to do with GIMP. I was just trying to make it sound like martial arts kung-fu.
Logged

ewemoa
Honorary Member
**
Posts: 2,228



View Profile Give some DonationCredits to this forum member
« Reply #10 on: June 15, 2010, 07:41:11 PM »

Thanks for the clarification smiley

FWIW, regarding Script-Fu and GIMP:

  http://docs.gimp.org/en/g...p-concepts-script-fu.html
  http://www.ve3syb.ca/wiki....php?id=software:sf:start
Logged
daddydave
Supporting Member
**
Posts: 816



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: May 24, 2012, 09:10:04 AM »

I know this is an old thread but that book looks awesome, even for non-10 year olds, and now there's a sequel that delves more into pygame. Being able to dive right into small real-world applications is a great motivator.

I was considering using this book myself except that it is using Python 3 which is not the  "status quo" yet according to python.org, and Python 2 seems to be used for any program I've seen that uses Python as its scripting language (Calibre, Plex, etc.). However that should give the book some nice longevity.
Logged
flamerz
Supporting Member
**
Posts: 112



View Profile Give some DonationCredits to this forum member
« Reply #12 on: May 24, 2012, 09:45:55 AM »

i want to add this link:

http://www.basic256.org/index_en

very nice basic ide, with text and graphical outputs in the same window.

edit: sorry, i didnt notice about this is in the python subforum, i just wanted to show some tool for kid learning smiley
« Last Edit: May 24, 2012, 09:47:13 AM by flamerz; Reason: clarification » Logged
daddydave
Supporting Member
**
Posts: 816



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #13 on: May 24, 2012, 10:09:01 AM »


edit: sorry, i didnt notice about this is in the python subforum, i just wanted to show some tool for kid learning smiley

No problem, but you're right, a link for a BASIC IDE could easily get lost in the Python forums, I suggest starting a new thread here so no one misses this nice link!
Logged
wraith808
Supporting Member
**
Posts: 5,808



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: May 24, 2012, 11:08:37 AM »

I know this is an old thread but that book looks awesome, even for non-10 year olds, and now there's a sequel that delves more into pygame. Being able to dive right into small real-world applications is a great motivator.

I was considering using this book myself except that it is using Python 3 which is not the  "status quo" yet according to python.org, and Python 2 seems to be used for any program I've seen that uses Python as its scripting language (Calibre, Plex, etc.). However that should give the book some nice longevity.


If you're trying to learn, I recommend Hello World! Computer Programming for Kids and other Beginners by Warren D. Sande and Carter Sande, and The Quick Python Book by Vernon L. Ceder.  I used the Hello World! book for my Brother-in-Law when he was thinking of getting into programming, and it worked wonders.  He's on to more advanced things now, but that grounding in Python helped him prepare for his college classes.  It also delves into pygame, so you might want to look into it.  The other is just a really good reference.
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.043s | Server load: 0.25 ]