What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-15 08:34:06
python pygame
1 # Simple pygame program 2 3 # Import and initialize the pygame library 4 import pygame 5 pygame.init() 6 7 # Set up the drawing window 8 screen = pygame.display.set_mode([500, 500]) 9 10 # Run until the user asks to quit 11 running = True 12... Add solution -
Other 2021-10-01 10:24:05
pygame simple game
1 # Simple pygame program 2 3 # Import and initialize the pygame library 4 import pygame 5 pygame.init() 6 7 # Set up the drawing window 8 screen = pygame.display.set_mode([500, 500]) 9 10 # Run until the user asks to quit 11 running = True 12... Add solution -
Python 2021-09-24 09:21:02
turn pixel on display screen python
# Used this for pygame project just for the entry # turn a specific pixel into another colour on your self made game display change_specific_pixel = game_Display.set_at((x, y), (255, 255, 255)) # coords RGB # e.g. a random star backg... Add solution -
Python 2021-09-06 23:16:02
pygame examples
1 # Simple pygame program 2 3 # Import and initialize the pygame library 4 import pygame 5 pygame.init() 6 7 # Set up the drawing window 8 screen = pygame.display.set_mode([500, 500]) 9 10 # Run until the user asks to quit 11 running = True 12... Add solution -
Other 2021-08-27 21:57:02
pixelart pygame
# Simple pygame project for pixelart import pygame screen = pygame.display.set_mode((1280, 720)) pixelart_surface = pygame.Surface((512, 288)) running = True while running: pixelart_surface.fill((0, 0, 0)) for event in pygame.event.get(): if eve... Add solution
Best helpers
Ranking is empty