Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active February 12, 2021 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fu-sen/7274443 to your computer and use it in GitHub Desktop.
Save fu-sen/7274443 to your computer and use it in GitHub Desktop.
' picture of PONG screen | MSX-BASIC
' Copyright (c) 2003 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2003
100 R=RND(-TIME)*1
110 COLOR 15,1,1:SCREEN 3
120 FOR Y=8 TO 191 STEP 32
130 LINE (124,Y)-STEP(7,15),15,BF
140 NEXT Y
150 U1=((RND(1)*160)\8)*8
160 U2=((RND(1)*160)\8)*8
170 LINE (0,U1)-STEP(7,31),15,BF
180 LINE (248,U2)-STEP(7,31),15,BF
190 X=((RND(1)*248)\8)*8
200 Y=((RND(1)*178)\8)*8
210 LINE (X,Y)-STEP(7,7),15,BF
220 I$=INPUT$(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment