Tuesday 20 December 2011

Flame Progress - A Random Star Generator

Now, I managed to make it produce the spectral class of a star. The spectral class shows the star's approximate colour and size. For example, the sun is class G2V. The G means it is yellow, the 2 is the subtype of G, and V means it is a main sequence star.
And here's what my game generates:
As you can see in the images, this star happens to be a K4V star.

I'll make some more content tomorrow.
--Thomas

Flame

Flame is now the official name of the evolution game I'm making. People who have seen me make games will recognise flame as the tetris-with-elements game I was making.

Currently, I'm working on the space stage of flame. I should have code to work out the spectral class and size class of a star by the end of today.

Here's a screenshot of the code so far (note the scrollbar)

Indeed. A does equal ceil(random(100)).
 Yay. There's also three planet sprite made for it so far. Planets will use the PCS system found on johnsonm.com to determine the sprite used, then you can use terraforming tools to draw stuff on the planet's sprite.

When it's done, that is.

--Thomas