More fun with coroutines. Having written off Lua for the job (creating new variables due to typos? Agh!) we decided to have a look elsewhere. There’s not exactly a glut of small embedded languages that support coroutines. In fact, there’s just one, Io. It looks really interesting, but frankly it’s a bit too bleeding age for me right now (F# is about as bleeding as I can cope with).
Anyway, implementing game logic in coroutines is still a cunning plan - the more Dave describes it the more cunning it gets, so I tried (naively) good old Python. It’s had generators since 2.2, so maybe, just maybe, I could write coroutines using some dummy yields. Ah. No. Realised this evening (with a little prototyping and other help) that it’s not possible without switching to Stackless Python. Which would mean breaking all the libraries I want to use - the major merit of Py. Sigh.
In other (kind of related, and better) news, my DS PassMe arrived today. Now I can start ‘real’ DS development. In that vast amount of spare time I have. *cough*
And in further (kind of-kind of related news), myself, Dave and another colleague, Matthew are attempting our first Game Jam this weekend. Hopefully we can get something fun done in a day - I’ll post the results next week!
Content