SlideShare uma empresa Scribd logo
1 de 10
Python Games
Introduction
• Python is a widely used general-purpose, high-level programming language. Its design
philosophy emphasizes code readability, and its syntax allows programmers to express
concepts in fewer lines of code than would be possible in languages such as C++ or Java. The
language provides constructs intended to enable clear programs on both a small and large
scale.
• Python supports multiple programming paradigms, including object-oriented, imperative and
functional programming or procedural styles. It features a dynamic type system and
automatic memory management and has a large and comprehensive standard library.
• Python interpreters are available for installation on many operating systems, allowing Python
code execution on a wide variety of systems. Using third-party tools, such as Py2exe or
Pyinstaller, Python code can be packaged into stand-alone executable programs for some of
the most popular operating systems, allowing for the distribution of Python-based software
for use on those environments without requiring the installation of a Python interpreter.
• CPython, the reference implementation of Python, is free and open-source software and has
a community-based development model, as do nearly all of its alternative implementations.
CPython is managed by the non-profit Python Software Foundation.
2D Game Programming
• Rabbyt
• Kivy
• Pyglet
Rabbyt
• If rabbyt's just too good for you to let go (I know, it does have some very
cool features, some of which aren't ACCOUNTEDfor yet in lib2d), Ryex has
ported version 0.8.3 to Python 3 over on github.
Rabbyt
Sprites
Sprites are easy! You can create one by just specifying a texture:
car = rabbyt.Sprite("car.png")
2D car sprite
Rotating and scaling are hardware accelerated, and easy!
car.rot = 45
car.scale = 0.5
rotated and scaled car sprite
Kivy
• Kivy is an open source Python library for developing mobile apps and other
multitouch application software with a natural user interface (NUI). It can run on
Android, iOS, Linux, OS X, and Windows. Distributed under the terms of the MIT
license, Kivy is free and open source software.
• Kivy is the main framework developed by the Kivy organization,[2] alongside
Python for Android,[3] Kivy iOS,[4] and several other libraries meant to be used on
all platforms. In 2012, Kivy got a $5000 grant from the Python Software
Foundation for porting it to Python 3.3.[5] Kivy also supports the Raspberry Pi
which was funded through Bountysource.[6]
• The framework contains all the elements for building an application such as:
• extensive input support for mouse, keyboard, TUIO, and OS-specific multitouch
events,
• a graphic library using only OpenGL ES 2, and based on Vertex Buffer Object and
shaders,
• a wide range of Widgets that support multitouch,
• an intermediate language (Kv)[7] used to easily design custom Widgets.
• Kivy is the evolution of the PyMT project, and is recommended for new projects.
Pyglet
• Pyglet is a library for the Python programming language that
provides an object-oriented application programming interface
allowing the creation of games and other multimedia applications.
Pyglet runs on Microsoft Windows, Mac OS X, and Linux; it is
released under BSD Licence.
• It supports windowed and full-screen operation, and multiple
monitors. Images, video, and sound files in a range of formats can
be done natively, with more additional capabilities supplied by the
optional AVbin plugin, which uses the Libav package to provide
support for audio formats including MP3, Ogg/Vorbis, and Windows
Media Audio, and video formats such as DivX, MPEG-2, H.264,
WMV, and XviD.
3D Game Engines written for Python
• Blender
• Panda3D
Blender
• Blender is a professional free and open-source 3D
computer graphics software product used for
creating animated films, visual effects, art, 3D
printed models, interactive 3D applications and
video games. Blender's features include 3D
modeling, UV unwrapping, texturing, raster
graphics editing, rigging and skinning, fluid and
smoke simulation, particle simulation, soft body
simulation, sculpting, animating, match moving,
camera tracking, rendering, video editing and
compositing. Alongside the modeling features it
also has an integrated game engine.
Panda3D• Panda3D is a game engine that includes graphics, audio, I/O, collision
detection, and other abilities relevant to the creation of 3D games.[1]
• Panda3D is open source and is, as of May 28, 2008, free software under the
revised BSD license. Releases prior to that date are not considered Free
Software due to certain errors in the design of the old Panda3D license.
Despite this, those older releases of Panda3D can also be used for both free
and commercial game development at no financial cost.
• Panda3D's intended game-development language is Python. The engine itself
is written in C++, and utilizes an automatic wrapper-generator to expose the
complete functionality of the engine in a Python interface. This approach gives
a developer the advantages of Python development, such as rapid
development and advanced memory management, but keeps the
performance of a compiled language in the engine core. For instance, the
engine is integrated with Python's garbage collector, and engine structures are
automatically managed.
• The manual and the sample programs use Python, although the developers
are working on translating the manual to C++ and providing C++ sample
programs.
Crystal Space
• Crystal Space is a framework for developing 3D
applications written in C++ by Jorrit Tyberghein
and others. The first public release was on August
26, 1997. It is typically used as a game engine but
the framework is more general and can be used
for any kind of 3D visualization. It is very portable
and runs on Microsoft Windows, Linux, UNIX, and
Mac OS X. It is also free software, licensed under
GNU Lesser General Public License, and was
SourceForge.net's Project of the Month for
February 2003.

Mais conteúdo relacionado

Mais procurados

Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Nikhil Kapoor
 
Django Python(2)
Django Python(2)Django Python(2)
Django Python(2)
tomcoh
 

Mais procurados (20)

Python 101 for the .NET Developer
Python 101 for the .NET DeveloperPython 101 for the .NET Developer
Python 101 for the .NET Developer
 
C presentation -python
C presentation -pythonC presentation -python
C presentation -python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python basic
Python basicPython basic
Python basic
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
 
Basics of python
Basics of pythonBasics of python
Basics of python
 
Python Class 1
Python Class 1Python Class 1
Python Class 1
 
Difference between python and cython
Difference between python and cythonDifference between python and cython
Difference between python and cython
 
Python for beginners
Python for beginnersPython for beginners
Python for beginners
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
Ali alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&pythonAli alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&python
 
Introduction to Python - Code Heroku
Introduction to Python - Code HerokuIntroduction to Python - Code Heroku
Introduction to Python - Code Heroku
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Getting Started with Python
Getting Started with PythonGetting Started with Python
Getting Started with Python
 
Why Python Should Be Your First Programming Language
Why Python Should Be Your First Programming LanguageWhy Python Should Be Your First Programming Language
Why Python Should Be Your First Programming Language
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 
Django Python(2)
Django Python(2)Django Python(2)
Django Python(2)
 
Free/Open Source Software for Science & Engineering
Free/Open Source Software for Science & EngineeringFree/Open Source Software for Science & Engineering
Free/Open Source Software for Science & Engineering
 
Welcome to Python Programming Language.pptx
Welcome to Python Programming Language.pptxWelcome to Python Programming Language.pptx
Welcome to Python Programming Language.pptx
 

Semelhante a Python games

Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 
The main Python implementation, named CPython, is written in C meeti.pdf
The main Python implementation, named CPython, is written in C meeti.pdfThe main Python implementation, named CPython, is written in C meeti.pdf
The main Python implementation, named CPython, is written in C meeti.pdf
anudamobileshopee
 

Semelhante a Python games (20)

20 best ide's for python programming in 2018
 20 best ide's for python programming in 2018 20 best ide's for python programming in 2018
20 best ide's for python programming in 2018
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
ppt summer training ug.pptx
ppt summer training ug.pptxppt summer training ug.pptx
ppt summer training ug.pptx
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
Python_basics_tuples_sets_lists_control_loops.ppt
Python_basics_tuples_sets_lists_control_loops.pptPython_basics_tuples_sets_lists_control_loops.ppt
Python_basics_tuples_sets_lists_control_loops.ppt
 
Welcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdfWelcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdf
 
Welcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdfWelcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdf
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
 
Introduction to the Python
Introduction to the PythonIntroduction to the Python
Introduction to the Python
 
Interactive Python PPT with animations
Interactive Python PPT with animationsInteractive Python PPT with animations
Interactive Python PPT with animations
 
The main Python implementation, named CPython, is written in C meeti.pdf
The main Python implementation, named CPython, is written in C meeti.pdfThe main Python implementation, named CPython, is written in C meeti.pdf
The main Python implementation, named CPython, is written in C meeti.pdf
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptx
 
PYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptx
 
The Best Python IDEs and Code Editors.pdf
The Best Python IDEs and Code Editors.pdfThe Best Python IDEs and Code Editors.pdf
The Best Python IDEs and Code Editors.pdf
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Final presentation on python
Final presentation on pythonFinal presentation on python
Final presentation on python
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

Python games

  • 2. Introduction • Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale. • Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library. • Python interpreters are available for installation on many operating systems, allowing Python code execution on a wide variety of systems. Using third-party tools, such as Py2exe or Pyinstaller, Python code can be packaged into stand-alone executable programs for some of the most popular operating systems, allowing for the distribution of Python-based software for use on those environments without requiring the installation of a Python interpreter. • CPython, the reference implementation of Python, is free and open-source software and has a community-based development model, as do nearly all of its alternative implementations. CPython is managed by the non-profit Python Software Foundation.
  • 3. 2D Game Programming • Rabbyt • Kivy • Pyglet
  • 4. Rabbyt • If rabbyt's just too good for you to let go (I know, it does have some very cool features, some of which aren't ACCOUNTEDfor yet in lib2d), Ryex has ported version 0.8.3 to Python 3 over on github. Rabbyt Sprites Sprites are easy! You can create one by just specifying a texture: car = rabbyt.Sprite("car.png") 2D car sprite Rotating and scaling are hardware accelerated, and easy! car.rot = 45 car.scale = 0.5 rotated and scaled car sprite
  • 5. Kivy • Kivy is an open source Python library for developing mobile apps and other multitouch application software with a natural user interface (NUI). It can run on Android, iOS, Linux, OS X, and Windows. Distributed under the terms of the MIT license, Kivy is free and open source software. • Kivy is the main framework developed by the Kivy organization,[2] alongside Python for Android,[3] Kivy iOS,[4] and several other libraries meant to be used on all platforms. In 2012, Kivy got a $5000 grant from the Python Software Foundation for porting it to Python 3.3.[5] Kivy also supports the Raspberry Pi which was funded through Bountysource.[6] • The framework contains all the elements for building an application such as: • extensive input support for mouse, keyboard, TUIO, and OS-specific multitouch events, • a graphic library using only OpenGL ES 2, and based on Vertex Buffer Object and shaders, • a wide range of Widgets that support multitouch, • an intermediate language (Kv)[7] used to easily design custom Widgets. • Kivy is the evolution of the PyMT project, and is recommended for new projects.
  • 6. Pyglet • Pyglet is a library for the Python programming language that provides an object-oriented application programming interface allowing the creation of games and other multimedia applications. Pyglet runs on Microsoft Windows, Mac OS X, and Linux; it is released under BSD Licence. • It supports windowed and full-screen operation, and multiple monitors. Images, video, and sound files in a range of formats can be done natively, with more additional capabilities supplied by the optional AVbin plugin, which uses the Libav package to provide support for audio formats including MP3, Ogg/Vorbis, and Windows Media Audio, and video formats such as DivX, MPEG-2, H.264, WMV, and XviD.
  • 7. 3D Game Engines written for Python • Blender • Panda3D
  • 8. Blender • Blender is a professional free and open-source 3D computer graphics software product used for creating animated films, visual effects, art, 3D printed models, interactive 3D applications and video games. Blender's features include 3D modeling, UV unwrapping, texturing, raster graphics editing, rigging and skinning, fluid and smoke simulation, particle simulation, soft body simulation, sculpting, animating, match moving, camera tracking, rendering, video editing and compositing. Alongside the modeling features it also has an integrated game engine.
  • 9. Panda3D• Panda3D is a game engine that includes graphics, audio, I/O, collision detection, and other abilities relevant to the creation of 3D games.[1] • Panda3D is open source and is, as of May 28, 2008, free software under the revised BSD license. Releases prior to that date are not considered Free Software due to certain errors in the design of the old Panda3D license. Despite this, those older releases of Panda3D can also be used for both free and commercial game development at no financial cost. • Panda3D's intended game-development language is Python. The engine itself is written in C++, and utilizes an automatic wrapper-generator to expose the complete functionality of the engine in a Python interface. This approach gives a developer the advantages of Python development, such as rapid development and advanced memory management, but keeps the performance of a compiled language in the engine core. For instance, the engine is integrated with Python's garbage collector, and engine structures are automatically managed. • The manual and the sample programs use Python, although the developers are working on translating the manual to C++ and providing C++ sample programs.
  • 10. Crystal Space • Crystal Space is a framework for developing 3D applications written in C++ by Jorrit Tyberghein and others. The first public release was on August 26, 1997. It is typically used as a game engine but the framework is more general and can be used for any kind of 3D visualization. It is very portable and runs on Microsoft Windows, Linux, UNIX, and Mac OS X. It is also free software, licensed under GNU Lesser General Public License, and was SourceForge.net's Project of the Month for February 2003.