Re: Python Game Development?
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 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
> 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. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
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. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On 07.06.2013 18:53, letsplaysf...@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 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On 07/06/13 16:53, letsplaysf...@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 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
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, 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!!! 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 -=- -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On Fri, Jun 7, 2013 at 8:53 AM, 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. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On Fri, Jun 7, 2013 at 11:53 AM, Eam onn 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
You could make a fantastic turtle based game with pyturtle! On Fri, Jun 7, 2013 at 1:53 PM, Eam onn 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 > -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
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
Re: Python Game Development?
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 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On Fri, Jun 7, 2013 at 10:35 AM, Ian Kelly wrote: > On Fri, Jun 7, 2013 at 10:28 AM, 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!!! > > I'd start here: http://www.pygame.org/wiki/tutorials Also the section under the "Tutorials" heading at http://www.pygame.org/docs/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On Fri, Jun 7, 2013 at 10:28 AM, 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!!! I'd start here: http://www.pygame.org/wiki/tutorials -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On Friday, June 7, 2013 5:21:36 PM UTC+1, Ian wrote: > On Fri, Jun 7, 2013 at 9:53 AM, 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!!! -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Game Development?
On Fri, Jun 7, 2013 at 9:53 AM, 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. -- http://mail.python.org/mailman/listinfo/python-list
Python Game Development?
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! -- http://mail.python.org/mailman/listinfo/python-list