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
Best helpers
Christie
+5
Don Yarber
+5
Mike
+5
Jack Steele
+5
Bossylobster
+5
Tjb1982
+5
Alana
+5
Mythio
+5
Sharp Wit
+5
Rane Chetan
+5
Hongyan
+5
Androider
+5
Ms.Zizmor
+5
Robert Astle
+5
Joshua Burns
+5
Sea shell
+5
Zolani13
+5
Meldie Ching
+5
Nancye S....
+5
Oritatami
+5
FirstLegion
+5