Mini game for ELKS Basic #1618
Replies: 5 comments 12 replies
-
Here is the playing movie. microef_20230709.mp4 |
Beta Was this translation helpful? Give feedback.
-
Hello @tyama501, Your new game looks pretty neat! It looks like it might be nice to have a function to turn off/on the cursor, or perhaps that could be automatic when graphics is initialized. You're welcome to add Looking through various Sinclair BASIC docs, I'm not finding any implementation of ELSE. Its implementation might be a bit complicated given that multiple "statements" using Sinclair doesn't support disk I/O, but various other BASICs use Thank you! |
Beta Was this translation helpful? Give feedback.
-
I just found that Sinclair BASIC does support SAVE/LOAD for DATA arrays of integer and string, so this might be easier to implement than previous stated: |
Beta Was this translation helpful? Give feedback.
-
Thank you @ghaerr , Yes, I think it is useful to have a command to enable/disable cursors from basic. I will try to add RANDMIZE. |
Beta Was this translation helpful? Give feedback.
-
ELKS uses the underlying hardware to draw the cursor, which is currently always left default ON using the power on cursor shape/size. We should probably add the ANSI cursor on/off sequence to IBM PC direct console, and it can then program the 6845 CRT controller to enable or disable the hardware cursor, and use INT 18h for PC-98 direct console? ANSI If you implement the PC-98 cursor on/off, I can add IBM PC support via 6845 chip. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I wrote a mini game for ELKS basic example.
It uses graphic functions, so it is only for PC-98 for now.
https://github.com/tyama501/microef
For making game,
I think it is better to have the following functions for the Basic.
(1) "ELSE" for "IF"
There is no "ELSE", so it is a little bit hard to code.
(2) RANDOMISE
RANDOMISE is not implemented in the basic yet,
so always RND is same sequence when starting the basic.
(3) File access.
I don't know what functions are available in Sinclair basic,
but writing/reading from files are needed to save/load.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions