Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47333 > unrolled thread
| Started by | letsplaysforu@gmail.com |
|---|---|
| First post | 2013-06-07 08:53 -0700 |
| Last post | 2013-06-11 19:27 -0700 |
| Articles | 16 — 12 participants |
Back to article view | Back to comp.lang.python
Python Game Development? letsplaysforu@gmail.com - 2013-06-07 08:53 -0700
Re: Python Game Development? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-07 10:21 -0600
Re: Python Game Development? Eam onn <letsplaysforu@gmail.com> - 2013-06-07 09:28 -0700
Re: Python Game Development? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-07 10:35 -0600
Re: Python Game Development? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-07 10:36 -0600
Re: Python Game Development? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-07 16:39 +0000
Re: Python Game Development? Larry Hudson <orgnut@yahoo.com> - 2013-06-07 22:04 -0700
Re: Python Game Development? Eam onn <letsplaysforu@gmail.com> - 2013-06-07 10:53 -0700
Re: Python Game Development? Matty Sarro <msarro@gmail.com> - 2013-06-07 14:00 -0400
Re: Python Game Development? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-07 12:42 -0600
Re: Python Game Development? Dan Stromberg <drsalists@gmail.com> - 2013-06-07 14:50 -0700
Re: Python Game Development? Ian Foote <ian@feete.org> - 2013-06-08 07:30 +0100
Re: Python Game Development? Jan Riechers <janpeterr@freenet.de> - 2013-06-08 14:52 +0300
Re: Python Game Development? Nobody <nobody@nowhere.com> - 2013-06-08 15:17 +0100
Re: Python Game Development? Fábio Santos <fabiosantosart@gmail.com> - 2013-06-08 17:01 +0100
Re: Python Game Development? alex23 <wuwei23@gmail.com> - 2013-06-11 19:27 -0700
| From | letsplaysforu@gmail.com |
|---|---|
| Date | 2013-06-07 08:53 -0700 |
| Subject | Python Game Development? |
| Message-ID | <25a7393d-f8dd-4f75-925f-89df31930d71@googlegroups.com> |
I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: • Pygame - As far as I know it's dead and has been for almost a year • PyOgre - Linux and Windows only(I do have those, but I want multi-platform) • Cocos2D - Won't install and cant find any support • PyCap - Can't find any documentation • Panda3D - Dead since 2011 + overkill for what I need • PyOpenGL - Overkill Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks!
[toc] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-06-07 10:21 -0600 |
| Message-ID | <mailman.2854.1370622147.3114.python-list@python.org> |
| In reply to | #47333 |
On Fri, Jun 7, 2013 at 9:53 AM, <letsplaysforu@gmail.com> wrote: > I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: > > • Pygame - As far as I know it's dead and has been for almost a year > • PyOgre - Linux and Windows only(I do have those, but I want multi-platform) > • Cocos2D - Won't install and cant find any support > • PyCap - Can't find any documentation > • Panda3D - Dead since 2011 + overkill for what I need > • PyOpenGL - Overkill > > Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks! Pygame is still quite commonly used, and the most recent commit was in April, so I think it's too early to pronounce it dead (although pgreloaded, which at one point was intended to be a successor to pygame, is looking a bit dormant now). A lot of folks also like pyglet, but I've never used it myself. I suspect it might also be overkill for you. And yes, it's definitely possible to make games in Python. Go to pyweek.org and check out many of the awesome games that have been developed in Python in only one week.
[toc] | [prev] | [next] | [standalone]
| From | Eam onn <letsplaysforu@gmail.com> |
|---|---|
| Date | 2013-06-07 09:28 -0700 |
| Message-ID | <0de65ebd-2141-4dd3-b091-88ef972a6db8@googlegroups.com> |
| In reply to | #47334 |
On Friday, June 7, 2013 5:21:36 PM UTC+1, Ian wrote: > On Fri, Jun 7, 2013 at 9:53 AM, <letsplaysforu@gmail.com> wrote: > > > I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: > > > > > > • Pygame - As far as I know it's dead and has been for almost a year > > > • PyOgre - Linux and Windows only(I do have those, but I want multi-platform) > > > • Cocos2D - Won't install and cant find any support > > > • PyCap - Can't find any documentation > > > • Panda3D - Dead since 2011 + overkill for what I need > > > • PyOpenGL - Overkill > > > > > > Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks! > > > > Pygame is still quite commonly used, and the most recent commit was in > > April, so I think it's too early to pronounce it dead (although > > pgreloaded, which at one point was intended to be a successor to > > pygame, is looking a bit dormant now). > > > > A lot of folks also like pyglet, but I've never used it myself. I > > suspect it might also be overkill for you. > > > > And yes, it's definitely possible to make games in Python. Go to > > pyweek.org and check out many of the awesome games that have been > > developed in Python in only one week. Do you know of any tutorial for PyGame? Preferably a video tutorial but any tutorial at all is fine! I can't seem to find any, even on pygame.org!!!
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-06-07 10:35 -0600 |
| Message-ID | <mailman.2855.1370622974.3114.python-list@python.org> |
| In reply to | #47335 |
On Fri, Jun 7, 2013 at 10:28 AM, Eam onn <letsplaysforu@gmail.com> wrote: > Do you know of any tutorial for PyGame? Preferably a video tutorial but any tutorial at all is fine! I can't seem to find any, even on pygame.org!!! I'd start here: http://www.pygame.org/wiki/tutorials
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-06-07 10:36 -0600 |
| Message-ID | <mailman.2856.1370623035.3114.python-list@python.org> |
| In reply to | #47335 |
On Fri, Jun 7, 2013 at 10:35 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote: > On Fri, Jun 7, 2013 at 10:28 AM, Eam onn <letsplaysforu@gmail.com> wrote: >> Do you know of any tutorial for PyGame? Preferably a video tutorial but any tutorial at all is fine! I can't seem to find any, even on pygame.org!!! > > I'd start here: http://www.pygame.org/wiki/tutorials Also the section under the "Tutorials" heading at http://www.pygame.org/docs/
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-06-07 16:39 +0000 |
| Message-ID | <51b20cdc$0$29966$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #47335 |
On Fri, 07 Jun 2013 09:28:09 -0700, Eam onn wrote: > Do you know of any tutorial for PyGame? Preferably a video tutorial but > any tutorial at all is fine! I can't seem to find any, even on > pygame.org!!! https://duckduckgo.com/html/?q=pygame+tutorial -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Larry Hudson <orgnut@yahoo.com> |
|---|---|
| Date | 2013-06-07 22:04 -0700 |
| Message-ID | <fJSdncg2_ffHJi_MnZ2dnUVZ_gydnZ2d@giganews.com> |
| In reply to | #47335 |
On 06/07/2013 09:28 AM, Eam onn wrote:
> On Friday, June 7, 2013 5:21:36 PM UTC+1, Ian wrote:
>> On Fri, Jun 7, 2013 at 9:53 AM, <letsplaysforu@gmail.com> wrote:
<snip>
> Do you know of any tutorial for PyGame? Preferably a video tutorial but any tutorial at all is fine! I can't seem to find any, even on pygame.org!!!
>
Check out:
http://inventwithpython.com/pygame/
for the book "Making Games with Python & Pygame"
You can buy it, read it on-line for free, or download the pdf or eReader versions for free.
(Totally irrelevant side-comment: PyGame and all the games from this book come pre-loaded on
the Raspberry Pi.)
-=- Larry -=-
[toc] | [prev] | [next] | [standalone]
| From | Eam onn <letsplaysforu@gmail.com> |
|---|---|
| Date | 2013-06-07 10:53 -0700 |
| Message-ID | <c2268c76-6b3d-48b6-9037-c821df8bfb68@googlegroups.com> |
| In reply to | #47333 |
On Friday, June 7, 2013 4:53:03 PM UTC+1, Eam onn wrote: > I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: > > > > • Pygame - As far as I know it's dead and has been for almost a year > > • PyOgre - Linux and Windows only(I do have those, but I want multi-platform) > > • Cocos2D - Won't install and cant find any support > > • PyCap - Can't find any documentation > > • Panda3D - Dead since 2011 + overkill for what I need > > • PyOpenGL - Overkill > > > > Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks! Pygame isn't too good. You still need a lot of other libraries from what I understand(like for physics). Is there any alternative for 2D?
[toc] | [prev] | [next] | [standalone]
| From | Matty Sarro <msarro@gmail.com> |
|---|---|
| Date | 2013-06-07 14:00 -0400 |
| Message-ID | <mailman.2857.1370628025.3114.python-list@python.org> |
| In reply to | #47342 |
[Multipart message — attachments visible in raw view] — view raw
You could make a fantastic turtle based game with pyturtle! On Fri, Jun 7, 2013 at 1:53 PM, Eam onn <letsplaysforu@gmail.com> wrote: > On Friday, June 7, 2013 4:53:03 PM UTC+1, Eam onn wrote: > > I was planning on making a small 2D game in Python. Are there any > libraries for this? I know of: > > > > > > > > • Pygame - As far as I know it's dead and has been for almost a year > > > > • PyOgre - Linux and Windows only(I do have those, but I want > multi-platform) > > > > • Cocos2D - Won't install and cant find any support > > > > • PyCap - Can't find any documentation > > > > • Panda3D - Dead since 2011 + overkill for what I need > > > > • PyOpenGL - Overkill > > > > > > > > Any help on what to do with this would be appreciated. I am making games > mainly in Lua but I'd like to make one in Python for fun. I also understand > that Python isn't exactly the *BEST* choice programming a game, but I have > heard it is possible. Tell me if it's true. Thanks! > > Pygame isn't too good. You still need a lot of other libraries from what I > understand(like for physics). Is there any alternative for 2D? > -- > http://mail.python.org/mailman/listinfo/python-list >
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-06-07 12:42 -0600 |
| Message-ID | <mailman.2859.1370630577.3114.python-list@python.org> |
| In reply to | #47342 |
On Fri, Jun 7, 2013 at 11:53 AM, Eam onn <letsplaysforu@gmail.com> wrote: > Pygame isn't too good. You still need a lot of other libraries from what I understand(like for physics). Is there any alternative for 2D? I don't know of any Python libraries that provide both a rendering engine and a physics engine. I'm not sure why you say pyame "isn't too good". A library that only does one thing shouldn't be considered a bad library if it does it well. I hear that pygame doesn't scale very well to large games, and it certainly wouldn't be my first choice for a 3D game, but I've never had any major issues with it myself. There's a largish list of alternative libraries that you might consider here: http://wiki.python.org/moin/PythonGameLibraries
[toc] | [prev] | [next] | [standalone]
| From | Dan Stromberg <drsalists@gmail.com> |
|---|---|
| Date | 2013-06-07 14:50 -0700 |
| Message-ID | <mailman.2866.1370641839.3114.python-list@python.org> |
| In reply to | #47333 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jun 7, 2013 at 8:53 AM, <letsplaysforu@gmail.com> wrote: > I also understand that Python isn't exactly the *BEST* choice programming > a game, but I have heard it is possible. Tell me if it's true. Thanks! > One of the Blizzard people told me that it's very common to program game logic in Python, with the 3D stuff done in C wrapped up to be callable from Python. But I've since heard that Blizzard mostly uses Lua, from someone who doesn't work at Blizzard. Maybe Blizzard use both Python and Lua, or maybe they changed, I don't know.
[toc] | [prev] | [next] | [standalone]
| From | Ian Foote <ian@feete.org> |
|---|---|
| Date | 2013-06-08 07:30 +0100 |
| Message-ID | <mailman.2877.1370673068.3114.python-list@python.org> |
| In reply to | #47333 |
On 07/06/13 16:53, letsplaysforu@gmail.com wrote: > I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: > > • Pygame - As far as I know it's dead and has been for almost a year > • PyOgre - Linux and Windows only(I do have those, but I want multi-platform) > • Cocos2D - Won't install and cant find any support > • PyCap - Can't find any documentation > • Panda3D - Dead since 2011 + overkill for what I need > • PyOpenGL - Overkill > > Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks! > You might also wish to consider Kivy (kivy.org). Regards, Ian F
[toc] | [prev] | [next] | [standalone]
| From | Jan Riechers <janpeterr@freenet.de> |
|---|---|
| Date | 2013-06-08 14:52 +0300 |
| Message-ID | <mailman.2884.1370694642.3114.python-list@python.org> |
| In reply to | #47333 |
On 07.06.2013 18:53, letsplaysforu@gmail.com wrote:
> I was planning on making a small 2D game in Python. Are there any libraries for this? I know of:
>
> • Pygame - As far as I know it's dead and has been for almost a year
> • PyOgre - Linux and Windows only(I do have those, but I want multi-platform)
> • Cocos2D - Won't install and cant find any support
> • PyCap - Can't find any documentation
> • Panda3D - Dead since 2011 + overkill for what I need
> • PyOpenGL - Overkill
>
> Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks!
>
Hi,
I only have looked closer in pygame. But before asking for an general
overview of possible gaming libraries, I would start to answer the
question of what kind of game you want to make and what features do you
really need.
For some space game for example it is most unlikely that you will face
the requirement of having a bleeding edge physics engine. Especially if
you make use of 2d objects versus 3d models of any type. I guess you can
expand the latter to any extend here.
Also it is a common thing I might guess bravely, that the basics of game
programming are done similar in all game engines.
- Setting up a game loop
- Calculation present and future ob objects
- Handling user input by using events
- Redraw the screen
And this is in pygame quite simply, but I also had trouble finding the
right entrance to it, as you have to read a bit up on how components fit
together in that library.
An example basic setup looks like (with classing), I remove my code and
limited it to basic event/input handling and also the drawing of a
screen object in which you can add images and stuff.
Sorry for the formatting, I copied from idle and formatted in my email
client.
#----------------------------------------
class gameApp:
def __init__(self):
pygame.init()
self.clock = pygame.time.Clock()
self.screen = pygame.display.set_mode( (640, 480),
DOUBLEBUF|SRCALPHA )
self.run()
def run(self):
while not self.close_app:
self.clock.tick(60)
for event in pygame.event.get():
#print event
if event.type == KEYUP:
# Press tab for player info
if event.key == 9:
pass # Do something in tab key
elif event.type == MOUSEBUTTONDOWN:
if event.button == 1:
pass # Left click, mouse button is pressend
elif event.type == MOUSEMOTION:
mx = event.rel[0]
my = event.rel[1]
continue
elif event.type == QUIT:
self.close_app = True
self.screen.fill( (0,0,0) )
# Self interaction is a screen drawing object
self.screen.blit(self.interactions, (0,0),
special_flags=BLEND_RGBA_ADD)
pygame.display.flip()
pygame.quit()
if __name__ == '__main__':
import pygame
from pygame.locals import *
gameApp()
#----------------------------------------
Regards
Jan
[toc] | [prev] | [next] | [standalone]
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Date | 2013-06-08 15:17 +0100 |
| Message-ID | <pan.2013.06.08.14.17.13.800000@nowhere.com> |
| In reply to | #47333 |
On Fri, 07 Jun 2013 08:53:03 -0700, letsplaysforu wrote: > I was planning on making a small 2D game in Python. Are there any > libraries for this? I know of: [snip] There's also Pyglet.
[toc] | [prev] | [next] | [standalone]
| From | Fábio Santos <fabiosantosart@gmail.com> |
|---|---|
| Date | 2013-06-08 17:01 +0100 |
| Message-ID | <mailman.2886.1370707775.3114.python-list@python.org> |
| In reply to | #47381 |
[Multipart message — attachments visible in raw view] — view raw
> On Fri, 07 Jun 2013 08:53:03 -0700, letsplaysforu wrote: > > > I was planning on making a small 2D game in Python. Are there any > > libraries for this? I know of: It wasn't your question, but I was happy to find out that box2d exists for python.
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-06-11 19:27 -0700 |
| Message-ID | <62d820ad-75e0-4005-82a7-a1d65e5ba75a@v10g2000pbv.googlegroups.com> |
| In reply to | #47333 |
On Jun 8, 1:53 am, letsplaysf...@gmail.com wrote: > I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: > • Cocos2D - Won't install and cant find any support Cocos2D is what I tend to recommend. What issues did you have with installing it? For support, you can try their Google group, which is active: https://groups.google.com/group/cocos-discuss
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web