Cross-Chase

Anything QL Software or Programming Related.
RWAP
RWAP Master
Posts: 2450
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Cross-Chase

Postby RWAP » Mon Apr 16, 2018 9:26 pm

I see that Fabrizio Caruso has released a game "Cross-Chase" for a wide range of 8 bit platforms - the source code appears on GitHub - https://github.com/Fabrizio-Caruso/CROSS-CHASE

Does anyone fancy seeing if this could be ported to the QL? It is written in C with user defined graphics for the characters.

I suppose the real issue here is that the z88DK does not implement a QL compiler (so far as I know) but perhaps it could be ported to c68. Fabrizio says that it should really just be a matter of running the code through an ANSI C compiler... (famous last words)


RWAP
RWAP Master
Posts: 2450
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: Cross-Chase

Postby RWAP » Mon Apr 16, 2018 9:59 pm

Fabrizio has said that if the cross-compilers work, then, so long as it supports conio.h or QL supports some of the standad terminal codes (e.g., 52) then a simple graphics version is just a matter of recompilation.


Derek_Stewart
QL Wafer Drive
Posts: 1039
Joined: Mon Dec 20, 2010 11:40 am
Location: Runcorn, Cheshire, UK

Re: Cross-Chase

Postby Derek_Stewart » Wed Apr 18, 2018 10:05 am

RWAP wrote:Fabrizio has said that if the cross-compilers work, then, so long as it supports conio.h or QL supports some of the standad terminal codes (e.g., 52) then a simple graphics version is just a matter of recompilation.


HI RIch,

The game looks OK, but if it relies on "conio.h", I think there is a problem, as this is MSDOS library file, and is not ANSI C library file Wikipedia says:

conio.h - Wikipedia wrote:conio.h is a C header file used mostly by MS-DOS compilers to provide console input/output. It is not part of the C standard library or ISO C, nor is it defined by POSIX. This header declares several useful library functions for performing "console input and output" from a program.


The question is can conio.h be implemented on C68, maybe using the discussion:

https://opensourceforu.com/2014/03/writ ... -gnulinux/

I am not sure how to compile a library file, so back to the C68 manual.


Regards,

Derek
Fabrizio
ROM Dongle
Posts: 5
Joined: Thu Apr 19, 2018 11:09 am

Re: Cross-Chase

Postby Fabrizio » Thu Apr 19, 2018 1:00 pm

Hi everyone!

My game does not rely on anything for graphics, sound and input (keyboard/joystick).

The game code is hardware-agnostic. It depends on CROSS LIB (my abstraction layer) where I implement the graphics, sound and input.

For graphics I have many "plug-ins" and I can implement one more for the QL as long as whatever toolkit is available provides something to display on the screen and it is close to ANSI compliant.

For example I have a graphic plug-ins for old terminals (e.g., adm3a, VT52, VT100,etc.), for memory mapped text mode graphics (e.g., most 6502 targets like Commodore, Atari, Oric, etc.),
I have a plugin that replies on conio, a plugin that relies on TGI lib in CC65, a plugin that relies on sprite lib for most Z80 targets, etc....

conio.h is just one case and my abstraction layer can be used without any conio support.

Fabrizio


Fabrizio
ROM Dongle
Posts: 5
Joined: Thu Apr 19, 2018 11:09 am

Re: Cross-Chase

Postby Fabrizio » Sun Jun 10, 2018 11:31 pm

Hi everyone,

I would like to try qdos-gcc but so far I have not been able to get it to compile a simple hello world file.
Ideally I would like to run it under Cygwin.

To just see if it is capable of compiling my game, I have tried the dockerized version but with not much luck.
I have managed to install it through docker with the pull command but the compiler cannot be executed successfully:
$ docker run xora/qdos-gcc qdos-gcc ./hello.c
qdos-gcc: ./hello.c: No such file or directory
qdos-gcc: No input files

the hello.c is there and I can also place it elsewhere but I get the same error message.
qdos-gcc --version does produce the expected result:
$ docker run xora/qdos-gcc qdos-gcc --version
2.95.3

What am I doing wrong?



Return to “Software & Programming”

Who is online

Users browsing this forum: No registered users and 3 guests