SDLAnim PMC

chromatic on 2002-10-29T08:18:50

    new P0, .SDLAnim
    set I0, 0
LOOP:
    eq I0, 320, LAST
    inc I0
    set P0["x"], I0
    set P0["y"], I0
    branch LOOP
LAST:
    end

On my box, this moves a little smiley face around the screen. Maybe it's Wrong to write a PMC that fiddles with SDL, but it's possible. More tomorrow.


Ooooh!

acme on 2002-10-29T09:54:18

Cooool! As I've said before, I think Parrot would make the perfect engine for games and that games will be its killer app. Now go port Quake ;-)

Re:Ooooh!

chromatic on 2002-10-29T17:20:36

This approach may be backwards. Instead of embedding Parrot, I'm extending it. Of course, my deadline for this research is this Saturday, and the extension API doesn't seem to be done (or documented), so this is what you get.

Of course, nothing precludes the hybrid approach.