File tree Expand file tree Collapse file tree 1 file changed +9
-44
lines changed
Expand file tree Collapse file tree 1 file changed +9
-44
lines changed Original file line number Diff line number Diff line change @@ -20,47 +20,12 @@ init python:
2020
2121screen candle_minigame():
2222 draggroup :
23- drag :
24- child " candle/candle1.png"
25- drag_name " 1"
26- draggable True
27- dragged ondrag
28- droppable True
29- xpos .1
30- ypos .5
31-
32- drag :
33- child " candle/candle2.png"
34- drag_name " 2"
35- draggable True
36- dragged ondrag
37- droppable True
38- xpos .2
39- ypos .5
40-
41- drag :
42- child " candle/candle3.png"
43- drag_name " 3"
44- draggable True
45- dragged ondrag
46- droppable True
47- xpos .3
48- ypos .5
49-
50- drag :
51- child " candle/candle4.png"
52- drag_name " 4"
53- draggable True
54- dragged ondrag
55- droppable True
56- xpos .4
57- ypos .5
58-
59- drag :
60- child " candle/candle5.png"
61- drag_name " 5"
62- draggable True
63- dragged ondrag
64- droppable True
65- xpos .5
66- ypos .5
23+ for index in range (1 , 6 ):
24+ drag :
25+ child f " candle/candle{index} .png"
26+ drag_name index
27+ draggable True
28+ dragged ondrag
29+ droppable True
30+ xpos (index / 10 )
31+ ypos .5
You can’t perform that action at this time.
0 commit comments