What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-13 21:53:02
how to make pygame use float number
'''Pygame cannot adjust the image/rectangle position with floats, because it rounds the float to an integer. But with this method it works''' import pygame pygame.__init__() WIDTH = 300 HEIGHT = 300 screen = pygame.display.set_mode((WIDTH, HEIGHT)) #Cr... 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