Tuesday, September 19, 2006

Scheme scheme scheme

Here's my first scheme (that I've written off my own back rather than copying from the text book) function it's very very simple. If you pass in a true value it returns hello, if you pass in a false value is return goodbye. Goodbye and hello aren't strings they're more like unitialized variables.

Anyway behold:


(define test?
(lambda (a)
(cond
((eq? a #t) 'hello)
(else 'goodbye))))


Yesterday I played with the map editor program a bit more. I'm having trouble transforming the device for my various swap chains so that's something I need to play with. (this looks like a reasonable place to start) I also added a moving camera to my tile renderer to make sure there are no artifacts. It works fine. So I documented my simple rendering stuff - the RenderPrimitives library that handles batching. Time to find another suspect for the artifacts.
Post a Comment