Looking at the thread about the game Dark Star, we see that the game is character based but supports many different hardwares.
Standard char
G007
Memotech graphics
ARX
WRX
Some are UDG and some are hires graphics.
I haven't looked at the source how much is changed from version to version.
With such a character based game I was hoping you could just have some code in the beginning like this, and all other output would be to the display file directly or through a routine.
INPUT GRAPHIC
IF GRAPHIC=STANDARD CALL NOTHING
IF GRAPHIC=G007 CALL INIT-G007
IF GRAPHIC=QS CALL INIT-QS
IF GRAPHIC=ARX CALL INIT-ARX
IF GRAPHIC=WRX CALL INIT-WRX
This could be a simple routine in the beginning of the source, and all other code would just output characters.
ARX and WRX are true hires. They don't use the display file but uses a hires file.
Can ARX and WRX be initialized to use the real display file for data, so it is possible to write to the hires screen with the ROM font or some custom characters?
Games with character graphics
Re: Games with character graphics
I did something like that in SHOGUN.
Specail printroutine in CHR-set to print normal or UDG.
http://minigamecompo.weebly.com/2k-page.html
Specail printroutine in CHR-set to print normal or UDG.
http://minigamecompo.weebly.com/2k-page.html
Re: Games with character graphics
Great
Is the source available for this?
Is the source available for this?
Re: Games with character graphics
(from http://www.hebdogiciel.free.fr/ZX81.htm)
Direct download:http://www.hebdogiciel.free.fr/hd-roms/ ... [ZX81].zip
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Re: Games with character graphics
Thank you XavSnap. Unfortunately this program does not print to the display file, but pokes into a hires file. This will require to edit the the software everywhere it prints to the screen.XavSnap wrote: ↑Tue Jun 20, 2017 4:14 am Direct download:http://www.hebdogiciel.free.fr/hd-roms/ ... [ZX81].zip
My idea was an INIT-routine for the hardware, which would use the display file and not a new hires file. Then the software would only need call to the selected INIT-routine. The rest of the calls would be to PRINT or RST 10h.
Re: Games with character graphics
Well,
My SHOGUN also pokes to the screen, but is is done with a special CALL PRINT.
Just set A to a value and it prints on next free position. Further you can set printposition with chr 222 and value in BC
Source:
viewtopic.php?f=4&t=2218&p=22791&hilit= ... rce#p22791
My SHOGUN also pokes to the screen, but is is done with a special CALL PRINT.
Just set A to a value and it prints on next free position. Further you can set printposition with chr 222 and value in BC
Source:
viewtopic.php?f=4&t=2218&p=22791&hilit= ... rce#p22791