Coucou,
Je vous explique mon problème , en gros le but du jeux et de constituer une table harmonieuse c'est a dire mettre par exemple tous les elements de la tables en rapport avec le theme pik nik ou avec le theme gotik
donc je sais pas comment organiser mon code sachant qu'après on va rajouté des thèmes
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <repas> <assiette> <item theme="piknik">assiettepiknik.png</item> <item theme="gotik">bolgothic.png</item> </assiette> <couteau> <item theme="piknik">assiettepiknik.png</item> <item theme="gotik">bolgothic.png</item> </couteau> <cuillere> <item theme="piknik">cuillere.png</item> <item theme="gotik">cuilleregotik.png</item> </cuillere> <fourchette> <item theme="piknik">fourchette.png</item> <item theme="gotik">fourchettegotik.png</item> </fourchette> <objets> <item theme="piknik">glaciere.png</item> <item theme="gotik">bougieGotik.png</item> </objets> <boissons> <item theme="piknik">gourde.png</item> <item theme="gotik">bouteillegotik.png</item> </boissons> <serviettes> <item theme="piknik">serviettePapier.png</item> <item theme="gotik">serviettegotik.png</item> </serviettes> <verres> <item theme="piknik">gobeletpiknik.png</item> <item theme="gotik">verregothic.png</item> </verres> <fond> <item theme="piknik">fondpiknik.png</item> <item theme="gotik">fondgotik.png</item> </fond> </repas>
Au début je voulais faire un tableau par éléments
TabAssiettes
TabBoissons etc ...
mais je pense que cela fera un peu lourd
Avez vous de idées ?
Partager