Re: [cc65] tgi and joystick experiment

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-10-22 22:00:01
On Tue, Oct 19, 2004 at 04:47:44PM +0300, Karri Kaksonen wrote:
> I am a bit curious to know if this application really runs on the
> platforms.

There is a strange CLI() in your code, and a call to tgi_init() is missing,
but apart from that, the code seems to work using VICE in the C64 and C128
emulations. The delay loop is a bit long for slower systems like the Commodore
machines. No one would work with a drawing program where the cursor moves two
pixels per second:-)		   

> The application is supposed to draw a red frame with a grey drawing
> area. A black pen should draw pixels when you move the joystick.

Your program makes some assumptions about colors that aren't true for the
Commodore machines, so colors are not correct. The C64 for example has a
#define COLOR_RED, but the TGI driver uses a mode with only two colors, so red
is unavailable.

> In case this works I believe that it would be super-cool to arrange
> a programming competition to produce the best game that has to
> cross-compile to all platforms supporting tgi and stdjoy. (And some
> stdsound? driver.)

Groepaz once made his tetris program run on as many platforms as possible
using conio, and it was really fun using it, but a problem with this goal is
that you end up with many detail problems like the delay loop in your program.
I'm always an advocate of portability, but systems like the lynx, the C128 and
the C64 are probably too different to make a portable program really useful.

The three given systems have

  - very different display resolutions

  - different number of colors (2 for the CBMs vs. 16 for the Lynx)

  - different system speeds (the lynx is four time as fast as the C64)

and so on. Using comparable systems would give more interesting programs. Like
the C64 and the Atari. (Of course, the whole world knows that the C64 is the
better machine, contrary to what some misguided Atari followers insist on, but
let's forget that for a second :-)

Anyway, it's a nice idea, and maybe someone will prove me wrong:-)

Regards


	Uz	(still catching up with my emails - please bear with me)


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Oct 22 22:00:06 2004

This archive was generated by hypermail 2.1.8 : 2004-10-22 22:00:15 CEST