Python Games

Embed Size (px)

Citation preview

  1. 1. Python Games By: Fahad Al-Hodaithy
  2. 2. What is Python? 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.
  3. 3. History of Python Python was conceived in the late 1980s and its implementation was started in December 1989 by Guido van Rossum at CWI in the Netherlands as a successor to the ABC language (itself inspired by SETL) capable of exception handling and interfacing with the Amoeba operating system. Van Rossum is Python's principal author, and his continuing central role in deciding the direction of Python is reflected in the title given to him by the Python community, benevolent dictator for life
  4. 4. Python's Philosophy The core philosophy of the language is summarized by the document "PEP 20 (The Zen of Python)", which includes aphorisms such as: 1.Beautiful is better than ugly 2.Explicit is better than implicit 3.Simple is better than complex 4.Complex is better than complicated 5.Readability counts
  5. 5. Python's Libraries Python has a large standard library, commonly cited as one of Python's greatest strengths, providing tools suited to many tasks. This is deliberate and has been described as a "batteries included" Python philosophy. For Internet-facing applications, a large number of standard formats and protocols (such as MIME and HTTP) are supported. Modules for creating graphical user interfaces, connecting to relational databases, pseudorandom number generators, arithmetic with arbitrary precision decimals, manipulating regular expressions, and doing unit testing are also included.
  6. 6. What are PyGames? Pygame is a cross-platform set of Python modules designed for writing video games. It includes computer graphics and sound libraries designed to be used with the Python programming language. It is built over the Simple DirectMedia Layer (SDL) library, with the intention of allowing real- time computer game development without the low-level mechanics of the C programming language and its derivatives.
  7. 7. Python Games Also known as PyGames, are the games made by using the python code. Many people use python to depict all of their creativity onto a blank canvas and add codes that make those characters move in a game and have a purpose.
  8. 8. Example of PyGames Eve Online is probably the most known game that used Stackless Python, a lightweight, microthread version of Python.
  9. 9. Examples of PyGames Another example of a game made using Python is Disney's Pirates of The Caribbean. It was written using Panda3d game engine (which allows both Python and C++ scripting). The engine is in C++, but then again, the Python interpreter itself also uses a lot of C code.
  10. 10. PyGames PyGames can be made by anyone that has a basic knowledge of Python and uses the help of the World Wide Web to perfect their desired games. An example would be this video: https://youtu.be/aUCyfdzP-i8