Tweetable MSX Basic game

Page 1/2
| 2

Par 0x5f3759df

Supporter (3)

Portrait de 0x5f3759df

09-10-2011, 13:47

For those of you who love type-in programs I share an oneliner MSX Basic game that I wrote in 1991; and two derived versions, which I tried to fit in the 140 character limit of a tweet.

This is the oneliner that I wrote in 1991 for publication in MSX Computer Magazine:

1screen1:keyoff:input"1-32";b:width32:fori=0to0step0:s=s+1:ifvpeek(6144+x)=42thenscreen0:print"score:"selsevpoke6144+x,2:locaternd(1)*b,23:print"*":a=stick(0):ifa=7thenx=x-1-(x<1):nextelseifa=3thenx=x+1+(x>b-2):nextelsenext

Below are the two tweetable versions:

- An oneliner with a length of 119 characters and a hyperlink that consumes the remaining 21 characters of the tweet:

1screen1:width32:fori=9to9:locaternd(1)*32,23:?"*":x=x+(i=8)-(i=4)and31or6144:ifvpeek(x)=32thenvpokex,2:i=stick(0):next

You can find a tweet of this version, including a screenshot over here: twitter.com/#!/blaset/status/122598805081305088 .

- A slightly more polished version that uses all the available 140 characters:

1screen1:width32:x=16:fori=9to9:locaternd(1)*32,23:?"*":x=x+(i=8)-(i=4)and31or6144:ifvpeek(x)=32thenvpokex,2:s=s+1:i=stick(0):nextelsecls:?s

Please, don't take this too seriously: it is just for fun. Enjoy! :-)

!login ou Inscrivez-vous pour poster

Par Latok

msx guru (3841)

Portrait de Latok

09-10-2011, 18:56

Hahaha, this is an iconic one-liner! I remember typing it back in 1991. I was so surprised one could actually make something like this in just one line of MSX-BASIC.

So you coming to the MRC forums 20 years later and publishing a tweet-version of exactly this one-liner is, for me, MIND BLOWING!

Thank you Smile

Par pitpan

Prophet (3145)

Portrait de pitpan

09-10-2011, 19:21

Cool!

Par Manuel

Ascended (18239)

Portrait de Manuel

09-10-2011, 19:46

I don't remember the one liner, in which issue was it published?

Par 0x5f3759df

Supporter (3)

Portrait de 0x5f3759df

09-10-2011, 20:16

Hahaha, this is an iconic one-liner! I remember typing it back in 1991. I was so surprised one could actually make something like this in just one line of MSX-BASIC.

So you coming to the MRC forums 20 years later and publishing a tweet-version of exactly this one-liner is, for me, MIND BLOWING!

Thank you Smile

Thanks mate, I really appreciate your reply! :-)

Par 0x5f3759df

Supporter (3)

Portrait de 0x5f3759df

09-10-2011, 20:17

I don't remember the one liner, in which issue was it published?

MSX Computer Magazine issue 45.

Par wolf_

Ambassador_ (9903)

Portrait de wolf_

09-10-2011, 20:20

The issue with the turbo R and the Tyzack. (from the head)

Par Evhor

Resident (54)

Portrait de Evhor

11-10-2011, 18:21

Wow! Mostly a danmaku shooter in just a line of BASIC!! O_Od

Par DerZocker

Resident (49)

Portrait de DerZocker

25-06-2014, 22:24

This game just got a recent republishing in the BASIC special issue of the German mag Retro Smile Though it did not work at first because a typo sneaked into their listing. But because of this I also made my very first debugging experience Big smile
Anyway, it's cool I'm able to use my MSX like an actual computer and not only as a console with a build-in keyboard^^

Par NYYRIKKI

Enlighted (5889)

Portrait de NYYRIKKI

19-10-2014, 19:16

This is not a game, but a Twiitable Mandelbrot fractal that I made today: (Use MSX-BASIC kun compiler aka X-BASIC)

1SCREEN5:FORO=0TO27135:Z=0:I=0:A=17:FORQ=0TO0:S=Z*Z-I*I-2+(OAND127)/50:I=2*I*Z-1+(O\128)/99:Z=S:A=A-1:Q=A>1ANDZ*Z+I*I<4:VPOKEO,A*17:NEXTQ,O

Par ARTRAG

Enlighted (6567)

Portrait de ARTRAG

19-10-2014, 19:52

Awesome!! If you run it in standard basic you need VPOKE O,A*17 AND 255
Xbasic truncates silently the result into a byte

Page 1/2
| 2