-
Notifications
You must be signed in to change notification settings - Fork 0
/
Carregador.agc
56 lines (45 loc) · 1.1 KB
/
Carregador.agc
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Carregador:
// Trapézio
LoadImage(1, "trapezio.png")
ResizeImage(1, 25, 300)
CreateSprite(1, 1)
SetSpriteShape(1, 3)
barraX = GetVirtualWidth() / 2 - GetSpriteWidth(1) / 2
barraY = GetVirtualHeight() - GetSpriteHeight(1)
SetSpritePosition(1, barraX, barraY)
SetSpritePhysicsOn(1, 3)
hit = LoadSound("hit.wav")
// Bola
LoadImage(2, "ball_gray.png")
CreateSprite(2, 2)
SetSpritePhysicsOn(2, 2)
SetSpriteShape(2, 1)
xVermelho = 0
xLaranja = 0
xDourado = 0
// Tijolos vermelhos
for i = 3 to 13
CreateImageColor(i, 255, 0, 0, 255)
ResizeImage(i, 100, 100)
CreateSprite(i, i)
SetSpritePosition(i, xVermelho, 75)
xVermelho = xVermelho + 120
next i
// Tijolos laranjas
for i = 14 to 24
CreateImageColor(i, 255, 69, 0, 255)
ResizeImage(i, 100, 100)
CreateSprite(i, i)
SetSpritePosition(i, xLaranja, 180)
xLaranja = xLaranja + 120
next i
// Tijolos dourados
for i = 25 to 35
CreateImageColor(i, 255, 215, 0, 255)
ResizeImage(i, 100, 100)
CreateSprite(i, i)
SetSpritePosition(i, xDourado, 285)
xDourado = xDourado + 120
next i
SetPhysicsWallBottom(0)
Return