A Worked Example of a Video Game
In this chapter we examine the limits of BASIC programming for animated video games. We have found that games written in BASIC are expensive, and in general the players’ interest short-lived. If users can achieve a reasonable result themselves then they far prefer to write their own simple video games, and spend their money only on sophisticated games written in machine-code. Listing 14.1 is an example of the sort of game that most competent BASIC programmers can reasonably expect to write, without resorting to machine-code routines. The game, ISLAND DEFENCE (48K machines only), is a typical ‘shoot-em up’ game, but the techniques we discuss could just as easily be applied to ‘bat and ball’ (for example, TENNIS) or ‘tactical’ games (for example, PAC MAN).
Unable to display preview. Download preview PDF.