Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active February 12, 2021 12:05
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/32153338522de91aefab103612cf7bb1 to your computer and use it in GitHub Desktop.
Save fu-sen/32153338522de91aefab103612cf7bb1 to your computer and use it in GitHub Desktop.
' Balloons (MSX JAPAN top page program 6 Jun, 2019) | MSX-BASIC
' Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
100 DEFINT A-Z:DIM B(15)
110 COLOR 15,1,1:SCREEN 1
120 KEY OFF:WIDTH 32
130 FOR L=0 TO 15
140 READ B(L):NEXT L
150 FOR C=2 TO 15
160 FOR L=0 TO 7
170 VPOKE (120+C*8)*8+L,B(L)
180 NEXT L
190 VPOKE &H2000+(120/8)+C,1+C*16
200 NEXT C
210 FOR L=0 TO 7
220 VPOKE 248*8+L,B(L+8)
230 NEXT
240 C=RND(1)*14+1
250 X=RND(1)*30+1
260 LOCATE X,23:PRINT CHR$(128+C*8)
270 LOCATE X,23:PRINT CHR$(248);
280 TIME=0
290 IF TIME<2 GOTO 290 ELSE GOTO 240
300 DATA &H38,&H74,&HFA,&HFE
310 DATA &HFE,&H7C,&H38,&H10
320 DATA &H10,&H08,&H08,&H10
330 DATA &H10,&H08,&H08,&H10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment