FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
-python/data/components/checkpoint.py at master · TobyfoxpurePython/-python · GitHub
TobyfoxpurePython
-python
Repository navigation
Code
Issues
1
(1)
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
-python
/
data
/
components
/
checkpoint.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (14 loc) · 529 Bytes
Breadcrumbs
-python
/
data
/
components
/
checkpoint.py
Copy path
File metadata and controls
21 lines (14 loc) · 529 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
__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
Back
|
FazBrowse Home
|
New Git URL