Aw: [stella] Gyruss and Polar co-ords

Subject: Aw: [stella] Gyruss and Polar co-ords
From: cybergoth@xxxxxxxx
Date: Tue, 23 Oct 2001 13:37:08 +0200 (CEST)
Hi Roger!

I remember doing sort of a rotating starfield sometime
ago. It displayed some thousand stars rotating around
an origin, getting bigger and brighter as you'd fly 
towards them.

It was one of my first ever C++ things I coded and
of course I knew nothing about polar or cartesian
coordinates then. (Don't know much more now)

If I remember correct, all I was doing was
adding/subtracting the values of a sine
table from 0-90 to the X/Y coordinates of every star.

There was some logic in it, to determine wether
the value was signed or not, depending on the quadrant
and some 1-X subtraction where the cosine was needed.

The source is gone, but I still have the starfield.exe,
if someone is interested. (My goal was to beat the crap
out of the windows starfield screensaver, and I think
my attempt quite succeeded back then :-))

I don't think my approach could do circles though,
but for a (emerging) starfield only code it'd 
probably be a qicker solution.


Bei unserem Shoppingpartner waltherliving erhalten Sie einen Gutschein im
Wert von DM 10,00 für Ihren nächsten Onlineeinkauf! Einfach hier abrufen

Archives (includes files) at
Unsub & more at

Current Thread