Not on your Nellie A challenging word game (with elephantine connections) for the Amstrad by Steve Lucas In this game, you will be shown an anagram and will be asked to solve it. Each incorrect letter causes the mouse to move closer to Nellie the Elephant, and this will eventually scare Nellie away! You can add extra data statements containing extra words, provided that the final data item in the list of questions is xxxx (see Line 940). The number of incorrect guesses allowed is half the number of letters in the word plus two. This can be changed in Line 690 (see Rem in Line 700). Program Notes - 10-50 select colours/mode
- 60-330 define characters
- 340-410 define graphics
- 420 titles
- 440 seed random number generator
- 450-470 initialise
- 480-510 define 3 text windows
- 510 select background colours for windows
- 520-820 main control loop
- 630-610 shuffle word
- 610-680 graphics
- 770-810 draw mouse
- 830-940 data for anagrams
- 980-1040 win game
- 1050-1100 lose game
- 1110-1150 instructions
Variables- aa$ graphics
- score% holds score
- x%. y%. x, y counting loops
- a$ read word
- b$ holds anagram
- c$ holds answer
- a% number of blank spaces to centre word
- dd% length of word
- z random number for shuffling
- d keyboard input
PopularComputingWeekly841004 |