-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuitleg.py
More file actions
31 lines (24 loc) · 742 Bytes
/
uitleg.py
File metadata and controls
31 lines (24 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
offset = 0
mul = 2
message = "Sleep het speelstuk naar jouw vak wanneer het is geslagen"
piece = loadImage("pawn.png")
cursor = loadImage("mouse.png")
cursor.resize(100, 100)
screenSize = [1080, 720]
def setup():
textFont(loadFont('OpenSans-Bold-48.vlw'), 36)
def draw():
textFont(loadFont('OpenSans-Bold-48.vlw'), 36)
global offset, mul
textAlign(CENTER)
if offset > 150:
mul = -2
elif offset < 0:
mul = 2
background(90)
image(piece, 450, 180 + offset)
image(cursor, 500, 210 + offset)
text(message, 540, 100)
textFont(loadFont('OpenSans-Bold-48.vlw'), 12)
text('(klik op "ga verder" om naar het volgende scherm te gaan)', 540, 120)
offset += mul