BASIC competition

Page 1/2
| 2

Par NYYRIKKI

Enlighted (5939)

Portrait de NYYRIKKI

06-02-2017, 01:34

Hello,

I don't know if you have already noticed, but new round of BASIC 10Liners compo just started on Kanold's page...

Last year it gained total of 11 (!) MSX entries, so this year I decited to participate as well...

It seems that there was no MSX entries on the most restricted "PUR-80" category (10 x 80 characters) so that is where I headed to with my mouse driven "find a pair"-game that I made for Japanese MSX2 + MSX-MUSIC combination.

I would love to attach the source code right here, but since MRC formatting engine hates MSX-BASIC it is better to maybe just link to the source text file instead and leave only screenshot here.

No go and participate to that compo too!

!login ou Inscrivez-vous pour poster

Par ghost_jp

Master (136)

Portrait de ghost_jp

06-02-2017, 11:25

What a cool trick with Kanji-ROM fonts!!
I have never got the idea to use it in this way although I'm much more familiar to Kanji.

Par AxelStone

Prophet (3121)

Portrait de AxelStone

06-02-2017, 20:34

As usual in @NYYRIKKI, brilliant.

Par NYYRIKKI

Enlighted (5939)

Portrait de NYYRIKKI

06-02-2017, 21:56

Actually I just updated the source to add a "game over"-screen. Now the game does not drop to BASIC anymore.

Although I say my self, I'm pretty proud of this entry... Considering how small program this is I think I collected quite remarkable list of little known and unusual tricks together... and this time I don't even mean that missusing of error handler...

Typically MSX-BASIC user functions are considered to be somewhere between ridiculous and useless, but this program actually does all of drawing and flipping of the cards using a single function! And how it that possible? Well, it uses VT-52 emulation that is found still sleeping under the hood... Yes that same VT-52 from 1975 who's emulation has somehow find it's way inside the MSX-BASIC screen handler... This is propably because MSX-DOS wanted to be able to run CP/M software and it would have been stupid to do two screen handlers. How ever I don't think this "ESC+"Y" feature is very well known among BASIC users as normally there is rather little use for it in BASIC programs.

And where do all these pictures come from? Yes, there is indeed a dusty corner in KANJI-font ROM that I tend to call "code page 236". That has a very special place in my heart as it is only place in Japanese MSX that contains also characters like "Ä" and "Ö" that are very important in Finnish language, that I speak natively... If I ie. ask "Näitkö opettajaa?" it means "Did you see the teacher?" but if I write "Naitko opettajaa?" it means "Did you fuck the teacher?"... great difference... anyway back to the point... That "code page" also has all these neat graphics that you can see here.

And how it plots them to screen? Well I POKE the undocumented internal parameters of KANJI PRINT-handler so that I can trick text commands and direct command handler to work on SCREEN 3 as well as in any other graphical screenmode... Please be warned that the experience might be not what you expect if you press CTRL+STOP Smile I don't know if this feature is well known among Japanese users (ghost_jp?) but at least in English documentation I've not seen anything about it except what I've wrote my self. I consider it extremely interesting feature as that enables all this multicolor textmode stuff and executing of graphics commands such as CIRCLE or COPY from direct mode etc... To my eyes it practically changes the whole MSX-BASIC experience to something else, but in a positive way. As I have not seen it used in any program before I decited to put it in to use here.

Par Samor

Prophet (2148)

Portrait de Samor

07-02-2017, 06:58

That looks very good; my skillset is pretty terrible but maybe I could join the competition just for fun.

Par ghost_jp

Master (136)

Portrait de ghost_jp

07-02-2017, 16:03

NYYRIKKI wrote:

I POKE the undocumented internal parameters of KANJI PRINT-handler so that I can trick text commands and direct command handler to work on SCREEN 3 as well as in any other graphical screenmode... Please be warned that the experience might be not what you expect if you press CTRL+STOP Smile I don't know if this feature is well known among Japanese users (ghost_jp?)

At least I have never heard about that.
Till early 90s, an MSX magazine by a major publisher in Japan solicited a short program just like BASIC 10Liners. I don't clearly remember but I wonder a few Japanese MSXers with ripe skill showed his or her trick similar to yours.

What you call "code page 236" is not well-known among us either, I guess. These fonts; picture letters or Emoji, comes from specialized machines for Japanese word-processing in 1980s. Not a few venders competed in fullness of picture letters on their Kanji-ROM. Most of them were also the makers of Japanese MSX computers. Actually some Japanese MSX computer internally had word-processing extension, as you know.

On the one hand, I think Japanese MSXers in those days didn't like that MSX was confused with such specialized machine. Especially programming people hoped that MSX was considered as a pure computer, not a game machine, not a word-processor. Little wonder code page 236 was a stigma for such people. They might know these fonts. But ignored.

NYYRIKKI wrote:

"Ä" and "Ö" that are very important in Finnish language, that I speak natively... If I ie. ask "Näitkö opettajaa?" it means "Did you see the teacher?" but if I write "Naitko opettajaa?" it means "Did you fuck the teacher?"... great difference...

That's a funny example!
I will spread that to my colleagues who know little about Finland at the next lunch time, thank you.

Par syn

Prophet (2097)

Portrait de syn

08-02-2017, 12:41

IMPRESSIVE, a game in 10 lines. With 10 lines i just write hello world Big smile

Par gdx

Enlighted (5600)

Portrait de gdx

08-02-2017, 14:26

I sent the program I recently made as example for the PUTSPRITE instruction of the wiki. I've improved it a bit for the contest.

Par Samor

Prophet (2148)

Portrait de Samor

16-02-2017, 12:41

@syn that sounds more like a contest how useless you can be with a 10-liner. Wink

Par user888

Expert (66)

Portrait de user888

01-03-2017, 22:59

Wow, nice piece of code and some amazing undocumented secrets.

Par Louthrax

Prophet (2419)

Portrait de Louthrax

02-03-2017, 00:09

Nyyrikki, just curious, any chance those characters have a connection or mapping to UTF8/Unicode character encoding ??

Page 1/2
| 2