-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchargementcogoh.lua
More file actions
70 lines (64 loc) · 4.68 KB
/
chargementcogoh.lua
File metadata and controls
70 lines (64 loc) · 4.68 KB
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
local t={}--chargement necessaire au lancement du menu principal
function lechargementco(action)
-- premiere coroutine de chargement de ficghier
--print(coroutine.running())
-- imagemenu.chalengefond=graphics.newImageSheet("chalenge/fond.png",{width=100,height=50,numFrames=1})
-- imagemenu.chalengebouton=graphics.newImageSheet("chalenge/chalenge.png",{width=100,height=50,numFrames=1})
imagemenu.arriereplan=graphics.newImageSheet("goh/menudevnew/arriereplan.jpg",{width=960,height=540,numFrames=1,sheetContentWidth=960,sheetContentHeight=540})
-- imagemenu.bandeau=graphics.newImageSheet("menudevnew/bandeau.png",{width=1000,height=120,numFrames=1,sheetContentWidth=1000,sheetContentHeight=120})
imagemenu.barver=graphics.newImageSheet("goh/menudevnew/barver.png",{width=686,height=1152,numFrames=1,sheetContentWidth=686,sheetContentHeight=1152})
imagemenu.bouton=graphics.newImageSheet("goh/menudevnew/bouton.png",{width=158,height=163,numFrames=6,sheetContentWidth=316,sheetContentHeight=489})
imagemenu.boutoncarte=graphics.newImageSheet("goh/menudevnew/boutoncarte.png",{width=152,height=316,numFrames=4,sheetContentWidth=304,sheetContentHeight=632})
--coroutine.yield()
--imagemenu.bouton1=graphics.newImageSheet("menudevnew/bouton1.png",{width=500,height=250,numFrames=2,sheetContentWidth=500,sheetContentHeight=500})
imagemenu.bpconf=graphics.newImageSheet("goh/menudevnew/bpconf.png",{width=538,height=193,numFrames=1,sheetContentWidth=538,sheetContentHeight=193})
-- imagemenu.elfe=graphics.newImageSheet("menudevnew/elfe.png",{width=125,height=75,numFrames=1,sheetContentWidth=125,sheetContentHeight=75})
-- imagemenu.geant=graphics.newImageSheet("menudevnew/geant.png",{width=125,height=75,numFrames=1,sheetContentWidth=125,sheetContentHeight=75})
-- imagemenu.humain=graphics.newImageSheet("menudevnew/humain.png",{width=250,height=40,numFrames=1,sheetContentWidth=250,sheetContentHeight=40})
imagemenu.race=graphics.newImageSheet("goh/menudevnew/choixraces.png",{width=199,height=199,numFrames=4,sheetContentWidth=398,sheetContentHeight=398}) --,sheetContentWidth=250,sheetContentHeight=40})
imagemenu.imbandeau=graphics.newImageSheet("goh/menudevnew/imbandeau.png",{width=50,height=25,numFrames=1,sheetContentWidth=50,sheetContentHeight=25})
imagemenu.onglet=graphics.newImageSheet("goh/menudevnew/onglet.png",{width=315,height=123,numFrames=2,sheetContentWidth=315,sheetContentHeight=246})
imagemenu.bpmenuprin=graphics.newImageSheet("goh/choniveau/menuprin.png", { width=200, height=175, numFrames=3,sheetContentWidth=200,sheetContentHeight=525 } )
--imagemenu.torchebat=graphics.newImageSheet("goh/menudevnew/torche.png", { width=216, height=948, numFrames=1,sheetContentWidth=216,sheetContentHeight=948 } )
if imbouton==nil then
imbouton={}
end
imbouton.vaguesui=graphics.newImageSheet("goh/bouton/vaguesui.png",{width=291,height=292,numFrames=1,sheetContentWidth=291,sheetContentHeight=292})
--imbouton.vie=graphics.newImageSheet("bouton/vaguesui.png",{width=126,height=126,numFrames=1})
effetexplo={}
effetexplo.fl1=graphics.newImageSheet("goh/effets/fl1.png",{width=250,height=344,numFrames=17,sheetContentWidth=1250,sheetContentHeight=1376})
effetexplo.fl1seq={
name="levelup",
frames={1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17},--frames= {1,4,5,3}, -- frame indexes of animation, in image sheet
time=1200,
loopCount=0, -- Optional. Default is 0.
}
effetexplo.torche=effetexplo.fl1 --graphics.newImageSheet("effets/torche.png",{width=45,height=149,numFrames=20,sheetContentWidth=225,sheetContentHeight=596})
effetexplo.torcheseq=effetexplo.fl1seq --{
-- name="levelup",
-- frames={20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1},--frames= {1,4,5,3}, -- frame indexes of animation, in image sheet
-- time=1000,
-- loopCount=0, -- Optional. Default is 0.
-- }
effetexplo.torche1=effetexplo.torche --graphics.newImageSheet("effets/torche1.png",{width=45,height=70,numFrames=5})
effetexplo.torche1seq=effetexplo.fl1seq
-- {
-- name="levelup",
-- frames={1,2,3,4,5},--frames= {1,4,5,3}, -- frame indexes of animation, in image sheet
-- time=300,
-- loopCount=0, -- Optional. Default is 0.
-- }
effetexplo.fl=effetexplo.fl1 --graphics.newImageSheet("effets/fl.png",{width=220,height=240,numFrames=4,sheetContentWidth=880,sheetContentHeight=240})
effetexplo.flseq=effetexplo.fl1seq --{
-- name="levelup",
-- frames={1,2,3,4,3,2},--frames= {1,4,5,3}, -- frame indexes of animation, in image sheet
-- time=1000,
-- loopCount=0, -- Optional. Default is 0.
-- }
print("fini du chargementco")
end
t.chargementco= function()
print("on ici chargementco")
local a=1
end
return t