-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.lua
97 lines (78 loc) · 2.04 KB
/
script.lua
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
--***********************************--
--* *--
--* By quent31 And Samir88Nasri *--
--* *--
--* *--
--* SURVIVAL REFLEX *--
--* *--
--* *--
--* Version H *--
--* *--
--***********************************--
dofile("systeme/data.lua")
dofile("systeme/fonctions.lua")
Splash() -- Lancement SplashScreen --
------------*Chargement*-------------
while true do
pad = Controls.read()
screen:clear(Color.new(91,178,68))
screen:blit(0,0,chargement)
screen:print(193,242,"PRESS [START]")
if pad:start() then
break
end
screen.flip()
screen.waitVblankStart()
end
-----------*Menu*----------------
while true do
screen:clear()
pad = Controls.read()
screen:blit(0,0,background)
screen:blit(165,0,Menu)
if pad:up() and not oldpad:up() then
Choix = Choix - 1
end
if pad:down() and not oldpad:down() then
Choix = Choix + 1
end
if Choix > 5 then
Choix = 1
end
if Choix < 1 then
Choix = 5
end
if Choix == 1 then
screen:blit(126,10,selecteur)
end
if Choix == 2 then
screen:blit(126,62,selecteur)
end
if Choix == 3 then
screen:blit(126,117,selecteur)
end
if Choix == 4 then
screen:blit(126,172,selecteur)
end
if Choix == 5 then
screen:blit(126,237,selecteur)
end
if pad:cross() and not oldpad:cross() then
if Choix == 1 then
Jeu()
elseif Choix == 2 then
Options()
elseif Choix == 3 then
Credits()
elseif Choix == 4 then
CompteRebour(300000000)
screen:clear()
elseif Choix == 5 then
break
end
end
oldpad = pad
screen.flip()
screen.waitVblankStart()
end
------------