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.
22 lines
499 B
22 lines
499 B
9 months ago
|
|
||
|
|
||
|
import pygame as pg
|
||
|
from .. import constants as c
|
||
|
|
||
|
|
||
|
class Checkpoint(pg.sprite.Sprite):
|
||
|
"""Invisible sprite used to add enemies, special boxes
|
||
|
and trigger sliding down the flag pole"""
|
||
|
def __init__(self, x, name, y=0, width=10, height=600):
|
||
|
super(Checkpoint, self).__init__()
|
||
|
self.image = pg.Surface((width, height))
|
||
|
self.image.fill(c.BLACK)
|
||
|
self.rect = self.image.get_rect()
|
||
|
self.rect.x = x
|
||
|
self.rect.y = y
|
||
|
self.name = name
|
||
|
|
||
|
|
||
|
|
||
|
|