未加星标

Programming Games in Python

字体大小 | |
[开发(python) 所属分类 开发(python) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Although not the most famous facet of python, Python is a language with has enough possibilities for programming games in python.On the one hand, it combines the depth and resources of using C / C ++ libraries, and on the other the ease of using Flash, with an average performance between the two.So many times it is a good language to program complex things quickly, although obviously sacrificing performance, being games interpreted and not compiled.


Programming Games in Python

Here is a brief overview of the most useful libraries for developing video games:

Pygame

Undoubtedly the most famous library of Python. Pygame has been developing since 2001 so it has a large community, publishing on its own website a lot of games and demos with more than 1,000 registered projects.It is multi-platform to perfection and the library that gives less problems when porting between linux / windows / Mac, and is famous for its ease of programming.It uses a library of C called SDL, library in which are written the most famous 2D games in Linux like Battle for Wesnoth, SuperTux or StepMania.

PyOpenGL

Speaking of Pygame, it has a fault, and that does not support graphics acceleration based on SDL.Here comes PyOpenGL ,a OpenGL binding that can be combined with Pygame to add the functions that are missing.Of course, it requires a higher level of knowledge of video game programming, since it is a layer of higher abstraction.For those who do not know OpenGL, it is the DirectX competition in the free software world, and all free and closed 3d games run on it including Blizzard and Valve games.

Pyglet

Pyglet is the alternative to Pygame + PyOpenGL enabling graphics acceleration and work in 2D / 3D, all in a single library, without having to resort to cumbersome PyOpenGL difficulty. yes, sacrificing some advanced utilities of pyopengl, and being a little more difficult to use than Pygame. Itis a library with a current development faster than pygame, it gains more followers everyday.Pyglet actually uses OpenGL in most of its functions.

Panda3d

Free Library focused on 3D games written for Python and C ++.It is a 3D-oriented library, and therefore not suitable for beginners.Some Disney games have used this library.

Pymunk

Library Specificallyto create physical 2D, as polygons, collisions, etc.It is based on the famous chipmunk library, you canwatch this video demonstration.

Cocos2d

This framework is an extension that adds a lot of effects to Pyglet, rotate and manipulate sprites, transitions between scenes with styles, etc.Combining Pyglet + Cocos2d you can make games of great quality.

PyOgre

Binding for python Ogre, a popular 3D rendering engine in C ++ with an active community .It should be complemented with other 3D libraries like PyOpenGL.

On official Python website you can find a more extensive collection of programming games in python libraries: http://wiki.python.org/moin/PythonGameLibraries

Need help with python game development ? You cancontact usto hire a dedicated python programmer for games, GUI or other python programming requirements .

本文开发(python)相关术语:python基础教程 python多线程 web开发工程师 软件开发工程师 软件开发流程

主题: OpenGLCocos2dLinuxPythonWindows
分页:12
转载请注明
本文标题:Programming Games in Python
本站链接:http://www.codesec.net/view/521457.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 开发(python) | 评论(0) | 阅读(26)