A downloadable game


Being an Ukrainian, I was uncertain about the participation in this year's

BASIC 10-liner Contest. While my city of Lviv is considered safe at this

moment, there are several air raid sirens per day, and four russian cruise

missiles hit some facility in the past days.

However, no kremlin's bastard can dictate my schedule, so let me submit an

EXTREME-256 game for MSX2/MSX2+/Turbo R, called NLAW. I dedicate this game

to brave ukrainian soldiers who are defending our freedom.


The Next Generation Light Antitank Weapon is a fire-and-forget, lightweight

shoulder-fired disposable (single-shot) missile system, designed for use by

infantry. The missile is guided by calculation based on Predicted Line of

Sight, and can carry Out a Top Attack or Direct Attack on an armoured

vehicle. NLAW has its origins in a joint British–Swedish project. Today it

is widely used by Ukrainian army fighting against the russian offensive.

You are a brave Ukrainian soldier of Territorial Defense Forces, seeing an

approaching russian tank battalion of "kantemirovskaya" Division. Good news

are that they are out of ammo (supply chains were destroyed by Ukrainians),

and you have got a lot of NLAWs in your trench. Take NLAW from either side,

aim, fire, and repeat again until the last na[Z]i tank is burned out! Next

tank company moves faster than the previous.

Controls: [↑] — move up, [↓] — move down, [SPACE] — fire.


4IFD<X+29ORD>X+51ORM<Y-12ORM>YTHEN2ELSEPUTSPRITE5,,0:FORR=0TO15:CIRCLE(D+8,M+6),R,8:SOUND8,R:NEXT:FORR=15TO0STEP-1:J=RAND3:PUTSPRITEJ,(16*J+X,Y),R/4+8,J:CIRCLE(D+8,M+6),R,1:NEXT:D=0:X=255:Y=160*RND(1)+16:T=T+1:LINE(35,193)-(6*T+35,198),8,BF:IFT<31THEN 2:


Line 0: Screen and variable setup. Sprite decoder (described above) intermixed with the field drawing code, see PSET. D is the horizontal missile coordinate, T is the number of tanks destroyed.

Line 1: Sprite decoder (described above) intermixed with the trench drawing code, see PSET. Draw both NLAW supplies. Draw Ukrainian and russian flags. Initialize variables. C is the player color/visibility, N is the NLAW flag, P is the player's vertical coordinate, X and Y are tank coordinates.

Line 2: Poll joystick (i.e., arrow keys). F is the player step. Draw the player sprite according to direction, step, and NLAW presence. Modify the player position. Draw the missile sprite (transparent if not launched). Play the sound effect. Modify NLAW coordinates D and M. Poll the button (i.e., space bar). Launch the missile if allowed.

Line 3: Draw the T-90 tank (4 sprites) and its trail (see PSET). Modify the tank's position. F is the tank/player collision, hide the player if so. If the left side is approached then play the Game Over music, replace the Ukrainian flag, and wait until [SPACE] is pressed, then restart.

Line 4: Loop to 2 if tank is not hit by the missile. Otherwise hide the missile, draw the explosion (see CIRCLE), and play the sound effect. Burn the tank (i.e., change colors in a loop). Initialize next tank's coordinates. Update the progress bar, loop to 2 if there are tanks left.

Line 5: Play the Game Over music, raise the Ukrainian flag, and wait until [SPACE] is pressed, then restart. DATA for Game Over and Victory music. Sprites (begin).

Line 6: Sprites (continue).

Line 7: Sprites (continue).

Line 8: Sprites (continue).

Line 9: Sprites (end). Ukrainian and russian flag stripes (starting 2,193,2,5)

— x, y, height - 1, color.


NLAW.dsk 720 kB

Install instructions

You can use the online emulator https://webmsx.org/ to play. Select Machine

in Settings (MSX Turbo R for faster gameplay), copy the code to clipboard,

press [Alt]-[V] and [Ctrl]-[V]. Finally press [F5] to RUN

Leave a comment

Log in with itch.io to leave a comment.