1) Modification du code source de Doom pour Archos 7 HT :
Ouvrir :
/Doom/src/org/doom/DoomClient.java
Chercher :
if (mOrientation == 0 ) {
if ( mMultiPlayer)
argv = new String[]{"doom" , "-width", "320", "-height", "480", "-iwad", wad , "-net", mServerPort};
else
argv = new String[]{"doom" , "-width", "320", "-height", "480", "-iwad", wad};
}
else {
if ( mMultiPlayer)
argv = new String[]{"doom" , "-width", "480", "-height", "320", "-iwad", wad, "-net", mServerPort};
else
argv = new String[]{"doom" , "-width", "480", "-height", "320", "-iwad", wad};
}
Remplacer par :
if (mOrientation == 0 ) {
if ( mMultiPlayer)
argv = new String[]{« doom » , « -width », « 320″, « -height », « 480″, « -iwad », wad , « -net », mServerPort};
else
argv = new String[]{« doom » , « -width », « 320″, « -height », « 480″, « -iwad », wad, « -warp », « 1 1″};
}
else {
if ( mMultiPlayer)
argv = new String[]{« doom » , « -width », « 640″, « -height », « 320″, « -iwad », wad, « -net », mServerPort};
else
argv = new String[]{« doom » , « -width », « 640″, « -height », « 320″, « -iwad », wad, « -warp », « 1 1″};
}
Ouvrir :
/Doom/native/prboom/d_main.c
Chercher :
if ((p = M_CheckParm ("-warp")) || // killough 5/2/98
(p = M_CheckParm ("-wart")))
// Ty 08/29/98 - moved this check later so we can have -warp alone: && p < myargc-1)
Ajouter avant :
startmap = 0; // Ty 08/29/98 - allow "-warp x" to go to first map in wad(s)
autostart = true; // Ty 08/29/98 - move outside the decision tree
Ouvrir :
/Doom/project/jni/d_main.c
Chercher :
if ((p = M_CheckParm ("-warp")) || // killough 5/2/98
(p = M_CheckParm ("-wart")))
// Ty 08/29/98 - moved this check later so we can have -warp alone: && p < myargc-1)
Ajouter avant :
startmap = 0; // Ty 08/29/98 - allow "-warp x" to go to first map in wad(s)
autostart = true; // Ty 08/29/98 - move outside the decision tree
Action :
PATH=${PATH}:/home/nekrofage/ANDROID/android-sdk-linux_86/tools
~/ANDROID/android-ndk-1.6_r1$ make APP=Doom
Vérifier :
~/ANDROID/android-ndk-1.6_r1/apps/Doom/project/libs/armeabi/libdoom.so
Eclipse :
Compiler
2) Cette modification permet le lancement du premier niveau de Doom 1
3) Trucs et astuces :
Choisir la méthode de navigation par "Touch Screen"
Pour tirer, taper sur n'importe quelle surface de la tablette sauf celle des commandes.
4) Téléchargement :
http://ardenne-informatique.com/~nekrofage/archos7ht/Doom.apk