Game Development Reference
In-Depth Information
bqj_pekjkjCqaoo>qppkj?he_g$arajp6IkqoaArajp%6rke`
w
cqaooaoNai]ejejc))7
cqaooaoI]`a''7
c]iaOp]pqo9CqaooaoNai]ejejc6'cqaooaoNai]ejejc'(CqaooaoI]`a6'cqaooaoI]`a7
_qnnajpCqaoo9qejp$ejlqp*patp%7
eb$_qnnajpCqaoo:iuopanuJqi^an%
w
kqplqp*patp9Pd]p#opkkdecd*'Xj'c]iaOp]pqo7
_da_gC]iaKran$%7
y
ahoaeb$_qnnajpCqaoo8iuopanuJqi^an%
w
kqplqp*patp9Pd]p#opkkhks*'Xj'c]iaOp]pqo7
_da_gC]iaKran$%7
y
ahoa
w
kqplqp*patp9Ukqckpep7
c]iaSkj9pnqa7
aj`C]ia$%7
y
y
bqj_pekj_da_gC]iaKran$%6rke`
w
eb$cqaooaoNai]ejejc8-%
w
aj`C]ia$%7
y
y
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
y
Figure 5-19. Use methods to modularize specific tasks.
Polishing up
In the previous chapter, I mentioned that 30% of the time it takes to program a piece of software goes
into making it work, and the other 70% goes into making it work well. There's no better example of
this principle at work than the number guessing game. It's playable, but there's a lot lacking that most
players would complain about.
Most glaringly, try clicking the Guess button after you've won the game; the game still keeps counting
your guesses! The other problem is that the only way to play the game again is by closing the SWF file
and then running it again. It would be great if there were a “play again” button that you could click.
And how about the mystery number? The game won't have much replay value if it's 50 every time you
play. Roll up your sleeves and see if you can fix these problems!
 
Search Nedrilad ::




Custom Search