18
edits
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
Status Report | Status Report | ||
May 28th - Jun 3rd | |||
Continue to fix problems when run the compiled page in broswer. | |||
(1)Implement the missing SDL function SDL_GetKeyName in Emscripten. | |||
SDL_GetKeyName is used in drawing text when user setting new control key bindings. | |||
(2)Fix the no drawing problem. | |||
I found that when linking llvm found the definition of SDL_Rect from the system header, which include uint16 element. But when running, the code to read SDL_Rect treated element in SDL_Rect as uint32, which was defined in Emscripten's SDL header files. | |||
LLVM should use the Emscripten's header files instead of the system's. This is caused by the configure script of Supertux, which use /usr/bin/sdl-config to find the header files, while the emconfigure right now cannot affect the behavior of sdl-config. | |||
I removed the sdl-config part in configure, but there was several compiling errors. This is because Supertux use SDL 1.2, while Emscripten use SDL 2.0. After a little modification to the supertux source, the compiling errors gone. The modification include: | |||
a. remove alpah element from struct PixelFormat | |||
b. change SDL_GetKeyState to SDL_GetKeyboardState | |||
(3) Change the game main loop to ansychronized form in javascript. | |||
After doing this, the picture dosen't move. I'll figure it out. | |||
May 21st - May 27th | May 21st - May 27th | ||
edits