Game Development Reference
In-Depth Information
3. Add the following code in bold to the ejep method. These directives will initialize the buttons
for us when the game starts.
bqj_pekjejep$%6rke`
w
++Ejepe]hevar]ne]^hao
op]npIaoo]ca9E]ipdejgejckb]jqi^an^apsaaj-]j`-,,7
iuopanuJqi^an9I]pd*_aeh$I]pd*n]j`ki$%&-,,%7
cqaooaoNai]ejejc9-,7
cqaooaoI]`a9,7
c]iaOp]pqo97
c]iaSkj9b]hoa7
++Pn]_apdaiuopanujqi^an
pn]_a$Pdaiuopanujqi^an6'iuopanuJqi^an%7
++Ejepe]hevapatpbeah`o
kqplqp*patp9op]npIaoo]ca7
ejlqp*patp97
ejlqp*^]_gcnkqj`?khkn9,tBB??????7
ejlqp*naopne_p9,)57
op]ca*bk_qo9ejlqp7
++Ejepe]heva^qppkjo
cqaoo>qppkj*aj]^ha`9pnqa7
cqaoo>qppkj*]hld]9-7
lh]u=c]ej>qppkj*reoe^ha9b]hoa7
++=``]jarajpheopajanpkpda^qppkj
cqaoo>qppkj*]``ArajpHeopajan$IkqoaArajp*?HE?G( ±
kjCqaoo>qppkj?he_g%7
y
4. You also need to add some more code to the aj`C]ia method:
bqj_pekjaj`C]ia$%6rke`
w
eb$c]iaSkj%
w
kqplqp*patp9Uao(ep#o'iuopanuJqi^an''Xj' ±
Epkjhupkkgukq'cqaooaoI]`a'cqaooao*7
y
ahoa
w
kqplqp*patp9E#ioknnu(ukq#ranqjkqpkbcqaooao*'Xj ±
'Pda_knna_pjqi^ans]o'iuopanuJqi^an'*7
y
++@eo]^hapdacqaoo^qppkj
cqaoo>qppkj*naikraArajpHeopajan$IkqoaArajp*?HE?G( ±
kjCqaoo>qppkj?he_g%7
 
Search Nedrilad ::




Custom Search