Rotating Sun/Star Effect

Hi,

As promised, here’s the code for the rotating sun I’ve just added to my current game: https://gist.github.com/1848637

The real genius at work here is the CircleMAsk class which is courtesy of Simeon. It’s not very well demonstrated in my example in order to keep the code to the bare minimum, but I’d encourage you to try dropping one of the starfields from the following thread in behind it to see the full effect: http://twolivesleft.com/Codea/Talk/discussion/644/flicker-drawing-large-images-any-advices/p1

PS: Apologies for the poorly named variables etc. It’s a work in progress :slight_smile:

Cheers