You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
306 B
16 lines
306 B
2 years ago
|
|
||
|
import pygame as pg
|
||
|
|
||
|
PINK = (255,0,255)
|
||
|
|
||
|
class Sprite(pg.sprite.Sprite):
|
||
|
|
||
|
def __init__(self, size):
|
||
|
super().__init__()
|
||
|
self.image = pg.Surface(size)
|
||
|
self.image.fill(PINK)
|
||
|
self.image.set_colorkey(PINK)
|
||
|
self.rect = self.image.get_rect()
|
||
|
|
||
|
|