## City Bomber

In-game screen of City Bomber (Original version)

Program listing on 48K Spectrum (Original Version)

In-game screen of City Bomber (Version much improved by Einar Saukas, See notes at bottom)

Program listing on 48K Spectrum (improved version)

### Text Listing (Improved Version)

 ```1 READ i,j: FOR f=0 TO 39: READ d: POKE USR "a"+f,d: NEXT f: BORDER 5: POKE 23693,41: CLS : FOR m=1 TO 99: FOR a=10 TO 27: FOR b=-9 TO -RND*8: PRINT INK 2*(b>-9);AT 12-b,a;CHR\$ (144+b/17);AT 11-b,a;CHR\$ 145: NEXT b: NEXT a: FOR y=1 TO 20: FOR x=1 TO 25+4*(y<20): LET j=(j+1)*(j>0)*(j<21)+(INKEY\$>"")*(j=0)*y: LET i=i+(x+1-i)*(j=0): LET c=ATTR (y,x+3)>41: PRINT AT j-(j>0),i;" ";AT j,i;CHR\$ 148 AND (j>0)*(j<21);AT y,x;" "; FLASH c;CHR\$ 146;CHR\$ 147: BEEP .01+c,d-j-f*c: IF c=0 THEN NEXT x: PRINT AT y,28,: NEXT y: PRINT INK 0;m;" landed": BEEP .5,14: BEEP .5,16: BEEP .5,18: NEXT m: DATA 0,0,-1,159,d,d,-1,243,d,-1,0,24,60,126,-1,243,d,-1,0,48,120,124,127,d,63,0,0,0,0,0,-4,-2,-4,0,0,60,24,d,60,d,d,24 ```

Another oneliner attempt for the 2007 compo. Based on a game I remember typing in around 20 years ago from a book I borrowed from the local library, an Osborne computer book. My only oneliner game to contain sound and a significant number of UDGs. This game is so simple, it's a natural oneliner. There was no danger of exceeding the allowed space, and as such I was able to be quite liberal with the use of code.

Rules of the Game

• Your aeroplane flies across the screen from left to right, getting lower with each successive pass.
• Press any key to drop a bomb on the city. You can only have one bomb at a time.
• To win the game, destroy all buildings, and land the plane safely.
• If your plane hits the side of a building then the game ends. Try again with the RUN command.

### Notes on improved version

Thanks yet again to Einar Saukas for greatly improving the game as follows:-
• Added a solid ground for the plane to land on.
• After you have landed safely, you now go on to bomb another city, and can increase your score.
• Graphical crash effect using FLASH and a sound effect on crashing.
• Made the BORDER colour cyan to match the in game sky colour.