Richard Jones' Log: Progress in pyglet

Sun, 31 Dec 2006

pyglet is finally getting some more attention from me. Intermittently over the last week or so Alex and I have managed to write up a little spec for the 2d scene component. Mostly this will handle tile maps and sprites (and animated images as an aside). Yesterday I found myself with some free time and starting translating that spec into actual code. The result as of just now is the data model for the rect / hex tile maps being checked in and there's also some tests and a debug display (which can also double as a handy tool for creating tile set templates). Next up will be sprites. Then I'll need to figure a tile map file format. Then onto a GUI for tile map and sprite editing...

On the GUI front (kinda) Alex has been having a lot of success in his XHTML / CSS rendering efforts. One of my real "woah" moments (amongst many) was trying out an "example of a custom replaced element" as he described it. In essence, he defined a new tag, <cube> which may be included as an inline element in an XHTML page and renders a spinning cube. Being a box element it may be styled with CSS (background, border, sizes). Sweet. That's going to make for cool tutorials :) We're not really sure which way the GUI will go, but XUL is probably going to have some influence. None of that Javascript though, of course. There's a lot of thinking and coding still to be done...