| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/TobyfoxpurePython/-python/master/data/components/checkpoint.py | [Back] [Original] |
__author__ = 'justinarmstrong'
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
| Web Proxy Viewer | New URL | Original Page |