Re: [Tutor] Beginner question

2013-08-12 Thread Ciaran Mooney
On 10 Aug 2013, at 04:30, eschneide...@comcast.net wrote: I've been learning python from the website 'inventwithpython.com', and I'm on a chapter that covers the following code: import random import time def displayIntro(): print('You are in a land full of dragons. In front of you,')

Re: [Tutor] invalid literal for int error in Game loop

2013-01-05 Thread Ciaran Mooney
On 4 Jan 2013, at 19:20, Francesco Loffredo f...@libero.it wrote: Ciaran Mooney wrote: Thanks for the feedback. Steve, If I set the FPS to a default of say 30, the game seems to run at this default FPS=30 regardless of the key pressed in the function. Dave, If I remove the the default

[Tutor] invalid literal for int error in Game loop

2012-12-20 Thread Ciaran Mooney
HI All, Was hoping someone could help me with a problem I am having programming a game using pygame. I am trying to return a variable with a integer value defined by user input from a function. Basically the idea is to allow the player to select the level of difficulty by selecting from a

Re: [Tutor] invalid literal for int error in Game loop

2012-12-20 Thread Ciaran Mooney
/Pythoin Programmes/Aliens Game/dodger ver 3 instructons.py, line 301, in module mainClock.tick(FPS) TypeError: a float is required Cheers Ciaran On 20 Dec 2012, at 21:07, Dave Angel d...@davea.name wrote: On 12/20/2012 03:51 PM, Steven D'Aprano wrote: On 21/12/12 07:40, Ciaran Mooney wrote

[Tutor] Pygame problem with mac

2012-11-17 Thread Ciaran Mooney
Hi, Was hoping u could help me. I can't seem to download a version of pygame that is compatible with python 3.2 on my Mac powerbook with OS tiger. I only seem to he able to get pygame for python 2.7 which i have never used. Thanks Ciaran ___

Re: [Tutor] Questions about classes

2012-11-13 Thread Ciaran Mooney
Hi, Was hoping someone could help me. I have downloaded the latest pygame 1.9.1 i think) to a Mac powerbook OS 10.4.11. Python 3 does not recognise pygame although python 2.7 version does (unfortunately have never programmed python 2.7 and don't no how). Any help would be much appreciated.