Log In  

Cart #42480 | 2017-07-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

So I went a little crazy after doing my contribution for the invent a title screen thread. I thought it would be nice if the two Gs drew at the same time and I came to the conclusion (in a huge leap) that the best way of doing it would be to some kind of co-operative multitasking co-routine system.

It doubled the token count from 200ish to 400ish but I'me pretty happy with it and I think it works well as a demonstration of the power of closures and co-routines.

EDIT: So the library is based around additive drawing - there is no clearing of screen state between each frame so everything builds up. My next plan is to build a "display list" system when you can attach co-routines to properties of each display item to animate them - more flexible than this current system.

P#42481 2017-07-14 16:31 ( Edited 2017-07-14 20:50)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 08:25:18 | 0.009s | Q:13