Difference between revisions of "LeapFrog Pollux Platform: sdlDoom"
(Created page with "sdl doom quick tutorial requires: SDL Framebuffer driver properly set environment vars Download sdldoom and the wad from http://www.libsdl.org/projects/doom/ wget http://www....") |
|||
Line 3: | Line 3: | ||
requires: | requires: | ||
− | SDL | + | SDL |
− | Framebuffer driver | + | Framebuffer driver |
− | properly set environment vars | + | properly set environment vars |
Download sdldoom and the wad from http://www.libsdl.org/projects/doom/ | Download sdldoom and the wad from http://www.libsdl.org/projects/doom/ | ||
− | wget http://www.libsdl.org/projects/doom/src/sdldoom-1.10.tar.gz | + | wget http://www.libsdl.org/projects/doom/src/sdldoom-1.10.tar.gz |
− | tar -xvf sdldoom-1.10.tar.gz | + | tar -xvf sdldoom-1.10.tar.gz |
− | cd sdldoom-1-10 | + | cd sdldoom-1-10 |
− | wget http://www.libsdl.org/projects/doom/data/doom1.wad.gz | + | wget http://www.libsdl.org/projects/doom/data/doom1.wad.gz |
− | tar -xvf doom1.wad.gz | + | tar -xvf doom1.wad.gz |
− | ./autogen.sh | + | ./autogen.sh |
− | ./configure | + | ./configure |
+ | make -j5 | ||
− | + | copy the doom file to /usr/bin on your didj/lx | |
− | |||
− | copy the doom file to / | ||
copy the wad file to a folder on your didj/lx | copy the wad file to a folder on your didj/lx | ||
browse to the folder where you put the wad file | browse to the folder where you put the wad file | ||
run doom: | run doom: | ||
− | doom | + | doom |
− | as it stands the buttons don't do anything (dpad up/down/left/right and l/r shoulder move stuff | + | as it stands the buttons don't do anything (dpad up/down/left/right and l/r shoulder move stuff around in the menus but thats it) |
fix this by editing doomdef.h | fix this by editing doomdef.h | ||
Line 31: | Line 30: | ||
change 2 lines to look like the following: | change 2 lines to look like the following: | ||
− | #define KEY_ESCAPE 109 // 'home button' | + | #define KEY_ESCAPE 109 // 'home button' |
− | #define KEY_ENTER 97 // 'a button' | + | #define KEY_ENTER 97 // 'a button' |
recompile. | recompile. | ||
Line 42: | Line 41: | ||
run doom, using the following on the command line: | run doom, using the following on the command line: | ||
− | doom -config doomconfig | + | doom -config doomconfig |
load a new game, run around and pick up something (not sure if this is entirely necessary), go to the menu and save the game, doomconfig should now be populated | load a new game, run around and pick up something (not sure if this is entirely necessary), go to the menu and save the game, doomconfig should now be populated | ||
Edit doomconfig, change these 2 lines to the following: | Edit doomconfig, change these 2 lines to the following: | ||
− | key_fire 98 | + | key_fire 98 |
− | key_use 112 | + | key_use 112 |
this will give you 'fire' on the B button and 'use' on the pause key | this will give you 'fire' on the B button and 'use' on the pause key |
Revision as of 11:40, 5 October 2010
sdl doom quick tutorial
requires:
SDL Framebuffer driver properly set environment vars
Download sdldoom and the wad from http://www.libsdl.org/projects/doom/
wget http://www.libsdl.org/projects/doom/src/sdldoom-1.10.tar.gz tar -xvf sdldoom-1.10.tar.gz cd sdldoom-1-10 wget http://www.libsdl.org/projects/doom/data/doom1.wad.gz tar -xvf doom1.wad.gz ./autogen.sh ./configure make -j5
copy the doom file to /usr/bin on your didj/lx copy the wad file to a folder on your didj/lx browse to the folder where you put the wad file run doom:
doom
as it stands the buttons don't do anything (dpad up/down/left/right and l/r shoulder move stuff around in the menus but thats it)
fix this by editing doomdef.h
change 2 lines to look like the following:
#define KEY_ESCAPE 109 // 'home button' #define KEY_ENTER 97 // 'a button'
recompile.
now we can get into the game, yay but we still can't shoot stuff :( boo
make a blank text file called doomconfig save it in the same folder as your doom wad on the lx
run doom, using the following on the command line:
doom -config doomconfig
load a new game, run around and pick up something (not sure if this is entirely necessary), go to the menu and save the game, doomconfig should now be populated
Edit doomconfig, change these 2 lines to the following:
key_fire 98 key_use 112
this will give you 'fire' on the B button and 'use' on the pause key
Other buttons either don't work or don't work as expected if you try and change them via doomconfig, doomdef.h or m_misc.c (defaults get defined here if the config file isn't found), not sure why its behaving like this.
Sound sort of works, looks like it gets the samplerate wrong when doom/sdl opens it :/