Beginning Game Programming for Teens with Python

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

Beginning Game Programming for Teens with Python

Postby rwenderlich » Tue Jan 22, 2013 11:00 am

This is the official thread to discuss the following blog post: Beginning Game Programming for Teens with Python
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Team Member
Site Admin
 
Posts: 2155
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 28 times
Been thanked: 338 times

Re: Beginning Game Programming for Teens with Python

Postby melojoy » Tue Jan 22, 2013 5:09 pm

Hi all! I'm a new member and this's my first post... :oops:

I'm Mac user with Mountaing Lion OS X 10.8.2
After installing python-2.7.3-macosx10.6 and pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3 I'have this errore testing pyGame:

Code: Select all
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>
    from pygame.base import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found.  Did find:
   /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper


Thanks! :ugeek:
melojoy
n00b
 
Posts: 1
Joined: Tue Jan 22, 2013 4:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Beginning Game Programming for Teens with Python

Postby jmeyer » Tue Jan 22, 2013 5:18 pm

Hi,
Try using the 32 bit version of python by running the command:
Code: Select all
python2.7-32 blablabla.py

instead of
Code: Select all
python blablabla.py


This will run python in 32-bit mode to match the architecture of 32-bit pygame.
;)
-Julian
jmeyer
Team Member
iOS Tutorial Team Member
 
Posts: 9
Joined: Sun Dec 09, 2012 8:10 pm
Has thanked: 0 time
Been thanked: 2 times

Re: Beginning Game Programming for Teens with Python

Postby ShogunKaramazov » Tue Jan 22, 2013 7:33 pm

Hi Julian! I just wanted to tell you that I am really impressed of your work and I really admire you for what you do. Congratulations for this fabulous tutorial and everything else you do. Keep up the good work! :)

Cosmin
ShogunKaramazov
Team Member
Site Admin
 
Posts: 66
Joined: Sun Jun 10, 2012 7:33 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Beginning Game Programming for Teens with Python

Postby wdflu » Tue Jan 22, 2013 7:58 pm

Great work! I must say I'm really impressed!
Only 12 and already implementing some high school math (I believe).
You will become an amazing developer in the near future! :)

Cheers!

/Eric from Sweden
wdflu
Hacker
 
Posts: 10
Joined: Sun Nov 27, 2011 12:06 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Beginning Game Programming for Teens with Python

Postby izdane » Sun Jan 27, 2013 6:08 pm

Thank you for the great tutorial Julian. I looked on your website, and we have a lot in common. I am also 12 years old, love programming an electronics and also play the cello in an orchestra.
izdane
Baby Hacker
 
Posts: 5
Joined: Sun Jan 27, 2013 6:05 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Beginning Game Programming for Teens with Python

Postby Jack Hard » Mon Jan 28, 2013 3:39 am

I'm also same just wanted to say that I am very impressed with your work and even admire you for what you do. I congratulate you for this fabulous book and everything you do. Keep up the good work!
Jack Hard
Baby Hacker
 
Posts: 6
Joined: Wed Dec 19, 2012 9:11 am
Has thanked: 0 time
Been thanked: 1 time

Re: Beginning Game Programming for Teens with Python

Postby a402192350 » Fri Feb 22, 2013 8:29 pm

Hi,
Thank you for the great tutorial, there's the error that I got. Please tell me where is wrong, thank you =)

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pygame
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>
from pygame.base import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper
a402192350
Hacker
 
Posts: 17
Joined: Thu Nov 29, 2012 12:10 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Beginning Game Programming for Teens with Python

Postby jmeyer » Fri Mar 01, 2013 4:53 am

See above
jmeyer
Team Member
iOS Tutorial Team Member
 
Posts: 9
Joined: Sun Dec 09, 2012 8:10 pm
Has thanked: 0 time
Been thanked: 2 times

Re: Beginning Game Programming for Teens with Python

Postby slemwan » Thu Apr 25, 2013 7:54 am

Hey Buddy,

i'm an old dude getting started in programming. I really appreciate your easy to understand, step through style.

for pygame, getting a bug i can't work out after step 9.

W,A,S moves the player fine, but pressing D quits the program.

any ideas? (code attached as a .zip file

cheers mate
Daz :D
Attachments
game.zip
(761 Bytes) Downloaded 211 times
slemwan
n00b
 
Posts: 1
Joined: Thu Apr 25, 2013 7:45 am
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Official Tutorials

Who is online

Users browsing this forum: Bing [Bot] and 10 guests