-
Notifications
You must be signed in to change notification settings - Fork 0
/
Loader.agc
74 lines (51 loc) · 1.28 KB
/
Loader.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//Load menu images
loade_images:
backdropme=LoadImage("Background 1023x768-Menu.png")
logo_image=loadimage("logo.png")
start_image=loadimage("start.png")
backdrop_image=loadimage("Background.png")
return
//Load sounds
Load_sound:
LoadMusic(1,"Undertale OST_ 068 - Death by Glamour_160k.mp3")
LoadMusic(6,"musicback.mp3")
LoadSound(2,"Shoot_01.wav")
LoadSound(3,"Jump_03.wav")
LoadSound(4,"Hit_02.wav")
LoadSound(5,"Menu Selection Click.wav")
return
//Load backdrop
Load_titles:
backspritem=CreateSprite(backdropme)
SetSpritePosition(backspritem,0,0)
SetSpriteDepth(backspritem,200)
backsprite=CreateSprite(backdrop_image)
SetSpritePosition(backsprite,0,0)
SetSpriteDepth(backsprite,200)
SetSpriteVisible(backsprite,0)
//Load Logo
logosprite=CreateSprite(logo_image)
SetSpritePosition(logosprite,150,0)
SetSpriteScale(logosprite,1.5,1.5)
SetSpriteDepth(logosprite,199)
return
//Load Font
Load_menu:
LoadFont(1,"04B_30__.ttf")
CreateText(1,"Start Game")
SetTextSize(1,40)
SetTextFont(1,1)
SetTextPosition(1,360,480)
SetTextColor(1,0,0,0,255)
CreateText(3,"Exit")
SetTextSize(3,40)
SetTextFont(3,1)
SetTextPosition(3,450,580)
SetTextColor(3,0,0,0,255)
CreateText(4,"Score: ")
SetTextSize(4,30)
SetTextFont(4,1)
SetTextPosition(4,20,10)
SetTextColor(4,0,0,0,255)
SetTextVisible(4,0)
return