|
2011-02-15
, 16:43
|
|
Posts: 298 |
Thanked: 341 times |
Joined on Aug 2010
@ This world :)
|
#12
|
|
2011-02-15
, 16:48
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#13
|
apt-cache search pygame
The Following User Says Thank You to epage For This Useful Post: | ||
|
2011-02-15
, 17:27
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#14
|
|
2011-02-15
, 17:30
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#15
|
./gorilla.py: line 19: Hello, and welcome to the source code of Gorillas.py. This program is meant to be very well documented so that a novice programmer can follow along. This program was written by Al Sweigart as a companion for his free, Creative Commons-licensed book Invent: File name too long : not foundy: line 20: ./gorilla.py: line 21: import: not found ./gorilla.py: line 22: from: not found ./gorilla.py: line 25: We'll import quite a few modules for this game. pygame has all the graphics & game-related functions that the Pygame game engine provides. sys has the exit() function. time has the sleep() function. random has the randint() : File name too longontains the pi constant. : not foundy: line 26: : not foundy: line 27: ./gorilla.py: line 32: All of the variables below in CAPS LETTERS are constants, that is, they are only supposed to be read and not modified. (There's nothing to keep the program from modifying them, but it's just a convention programmers use. The constants are a bit more descriptive than just using the numbers by themselves. And if you ever want to change some value (such as the size of the explosions or the color of the gorillas), you only have to change it in one : File name too long : not foundy: line 33: ./gorilla.py: line 34: SCR_WIDTH: not found ./gorilla.py: line 35: SCR_HEIGHT: not found ./gorilla.py: line 36: FPS: not found ./gorilla.py: line 37: syntax error: "(" unexpected
|
2011-02-15
, 18:37
|
|
Posts: 298 |
Thanked: 341 times |
Joined on Aug 2010
@ This world :)
|
#16
|
|
2011-02-16
, 03:59
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#17
|
I remember messing around with Gorillas when I was a kid in QBASIC - and Python is not very difficult, if I can just get it working!!!Code:./gorilla.py: line 19: Hello, and welcome to the source code of Gorillas.py. This program is meant to be very well documented so that a novice programmer can follow along. This program was written by Al Sweigart as a companion for his free, Creative Commons-licensed book Invent: File name too long : not foundy: line 20: ./gorilla.py: line 21: import: not found ./gorilla.py: line 22: from: not found ./gorilla.py: line 25: We'll import quite a few modules for this game. pygame has all the graphics & game-related functions that the Pygame game engine provides. sys has the exit() function. time has the sleep() function. random has the randint() : File name too longontains the pi constant. : not foundy: line 26: : not foundy: line 27: ./gorilla.py: line 32: All of the variables below in CAPS LETTERS are constants, that is, they are only supposed to be read and not modified. (There's nothing to keep the program from modifying them, but it's just a convention programmers use. The constants are a bit more descriptive than just using the numbers by themselves. And if you ever want to change some value (such as the size of the explosions or the color of the gorillas), you only have to change it in one : File name too long : not foundy: line 33: ./gorilla.py: line 34: SCR_WIDTH: not found ./gorilla.py: line 35: SCR_HEIGHT: not found ./gorilla.py: line 36: FPS: not found ./gorilla.py: line 37: syntax error: "(" unexpected
|
2011-02-16
, 06:30
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#18
|
|
2011-02-17
, 09:40
|
|
Posts: 298 |
Thanked: 341 times |
Joined on Aug 2010
@ This world :)
|
#19
|
The Following User Says Thank You to StefanL For This Useful Post: | ||
|
2011-02-17
, 12:06
|
|
Posts: 298 |
Thanked: 341 times |
Joined on Aug 2010
@ This world :)
|
#20
|
The Following 5 Users Say Thank You to StefanL For This Useful Post: | ||
next you can try to find a DONKEY.BAS for n900