Hi Xingxing,
I was wondering which portion of the SDL implementation you find challenging?
Cheers,
Ehsan
Depending on how SuperTux renders, this could be very simple
or less so. If it renders pixels by pixel using an SDL buffer,
that should work now. If it uses SDL Gfx (higher-level 2D
API, I think), then we don't support that yet (but we might
soon, I have seen other games that need it and might do it
myself). If it uses OpenGL, then it would need to be ported
to a subset of OpenGL that maps to WebGL, which I am
not sure how much work would be (but I am hoping not
too much, since there isn't any complex 3D stuff in SuperTux).
So not sure how much rendering work there is. Aside from
that, to do a proper port we might want to customize the
UI, how levels are downloaded, and other stuff. Is there
a level editor? If so, would be great to port that too, and
add a way to share levels online.
Regarding all of this, it's worth talking to the people in
the SuperTux project itself.
Best,
Alon Zakai