salut

Avec la fonction call drawblockinarray, offset blok, [dword ptr current_position] j'ai envie de dessiner le blok_I_0 par exemple, mais je sais pas comment faire.

Merci d'avance
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
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
97
98
99
100
101
102
103
104
105
 
blok_I_0    db 0, 1, 0, 0
			db 0, 1, 0, 0
			db 0, 1, 0, 0
			db 0, 1, 0, 0
 
blok_I_1	db 0, 0, 0, 0
			db 1, 1, 1, 1
			db 0, 0, 0, 0
			db 0, 0, 0, 0
 
blok_J_0	db 0, 0, 0, 0
			db 0, 40, 0, 0
			db 0, 40, 40, 40
			db 0, 0, 0, 0
 
blok_J_1	db 0, 40, 40, 0
			db 0, 40, 0, 0
			db 0, 40, 0, 0
			db 0, 0, 0, 0
 
blok_J_2	db 0, 0, 0, 0
			db 40, 40, 40, 0
			db 0, 0, 40, 0
			db 0, 0, 0, 0
 
blok_J_3	db 0, 0, 40, 0
			db 0, 0, 40, 0
			db 0, 40, 40, 0
			db 0, 0, 0, 0
 
blok_O_0	db 0, 0, 0, 0
			db 0, 50, 50, 0
			db 0, 50, 50, 0
			db 0, 0, 0, 0
 
blok_L_0	db 0, 60, 0, 0
			db 0, 60, 0, 0
			db 0, 60, 60, 0
			db 0, 0, 0, 0
 
blok_L_1	db 0, 0, 0, 0
			db 0, 60, 60, 60
			db 0, 60, 0, 0
			db 0, 0, 0, 0
 
blok_L_2	db 0, 60, 60, 0
			db 0, 0, 60, 0
			db 0, 0, 60, 0
			db 0, 0, 0, 0
 
blok_L_3	db 0, 0, 0, 0
			db 0, 0, 60, 0
			db 60, 60, 60, 0
			db 0, 0, 0, 0
 
blok_S_0	db 0, 0, 0, 0
			db 0, 80, 80, 0
			db 80, 80, 0, 0
			db 0, 0, 0, 0
 
blok_S_1	db 0, 80, 0, 0
			db 0, 80, 80, 0
			db 0, 0, 80, 0
			db 0, 0, 0, 0
 
blok_Z_0	db 0, 0, 0, 0
			db 0, 90, 90, 0
			db 0, 0, 90, 90
			db 0, 0, 0, 0
 
blok_Z_1	db 0, 0, 90, 0
			db 0, 90, 90, 0
			db 0, 90, 0, 0
			db 0, 0, 0, 0
 
blok_T_0	db 0, 0, 0, 0
			db 0, 100, 100, 100
			db 0, 0, 100, 0
			db 0, 0, 0, 0
 
blok_T_1	db 0, 100, 0, 0
			db 0, 100, 100, 0
			db 0, 100, 0, 0
			db 0, 0, 0, 0
 
blok_T_2	db 0, 0, 0, 0
			db 0, 0, 100, 0
			db 0, 100, 100, 100
			db 0, 0, 0, 0
 
blok_T_3	db 0, 0, 100, 0
			db 0, 100, 100, 0
			db 0, 0, 100, 0
			db 0, 0, 0, 0
 
blok_I      dd offset blok_I_0, offset blok_I_1, offset blok_I_0, offset blok_I_1
blok_Z 		dd offset blok_Z_0, offset blok_Z_1, offset blok_Z_0, offset blok_Z_1
blok_S 		dd offset blok_S_0, offset blok_S_1, offset blok_S_0, offset blok_S_1
blok_L 		dd offset blok_L_0, offset blok_L_1, offset blok_L_2, offset blok_L_3
blok_T 		dd offset blok_T_0, offset blok_T_1, offset blok_T_2, offset blok_T_3
blok_J 		dd offset blok_J_0, offset blok_J_1, offset blok_J_2, offset blok_J_3
blok_O		dd offset blok_O_0, offset blok_O_0, offset blok_O_0, offset blok_O_0
 
blok		dd offset blok_I, offset blok_J, offset blok_L, offset blok_O, offset blok_S, offset blok_T, offset blok_Z