MarketPygame
Company Profile

Pygame

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.

History
Pygame was originally written by Pete Shinners to replace PySDL after its development stalled. It has been a community project since 2000 and is released under the free software GNU Lesser General Public License). ==Development of version 2==
Development of version 2
Pygame version 2 was planned as "Pygame Reloaded" in 2009, but development and maintenance of Pygame completely stopped until the end of 2016 with version 1.9.1. After the release of version 1.9.5 in March 2019, development of a new version 2 was active on the roadmap. Pygame 2.0 released on 28 October 2020, Pygame's 20th anniversary. ==Features==
Features
Pygame uses 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. This is based on the assumption that the most expensive functions inside games can be abstracted from the game logic, making it possible to use a high-level programming language, such as Python, to structure the game. Applications using Pygame can run on Android phones and tablets with the use of Pygame Subset for Android (pgs4a). Sound, vibration, keyboard, and accelerometer are supported on Android. ==Community==
Community
Following disagreements between former core developers and the repository owner, a fork known as pygame-ce (Community Edition) was created. There is a regular competition, called PyWeek, to write games using Python (and usually but not necessarily, Pygame). The community has created many tutorials for Pygame. ==Sample code==
Sample code
The following code makes an image of a raccoon("raccoon.png") bounce when hitting an edge. import pygame, sys pygame.init() screen = pygame.display.set_mode((1280, 720)) clock = pygame.time.Clock() clock.tick(30) black = 0, 0, 0 raccoon = pygame.image.load("raccoon.png") raccoon = pygame.transform.scale(raccoon, (200, 140)) raccoonrect = raccoon.get_rect() velocity = [1, 1] while True: raccoonrect = raccoonrect.move(velocity) if raccoonrect.left 1280: velocity[0] = -velocity[0] raccoon = pygame.transform.flip(raccoon, True, False) if raccoonrect.top 720: velocity[1] = -velocity[1] for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() # screen update screen.fill(black) screen.blit(raccoon, raccoonrect) pygame.display.flip() ==Notable games using Pygame==
Notable games using Pygame
tickerdossier.comtickerdossier.substack.com