diff --git a/abbaye2.png b/abbaye2.png new file mode 100644 index 0000000..2c37c3a Binary files /dev/null and b/abbaye2.png differ diff --git a/graphics/intro-gcw.png b/graphics/intro-gcw.png new file mode 100644 index 0000000..c34cf1d Binary files /dev/null and b/graphics/intro-gcw.png differ diff --git a/make_opk.sh b/make_opk.sh new file mode 100755 index 0000000..370e3ef --- /dev/null +++ b/make_opk.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +OPK_NAME=abbaye.opk +echo ${OPK_NAME} + +# create default.gcw0.desktop +cat > default.gcw0.desktop < #include "main.h" +#undef main main () { /* Variables */ @@ -46,7 +47,7 @@ main () { /* Iniciar SDL */ iniciar_sdl (); - SDL_WM_SetCaption("Abbaye des Morts - v1.11", "Abbaye des Morts"); + SDL_WM_SetCaption("Abbaye des Morts - v1.13", "Abbaye des Morts"); #ifdef _RENDER_320_240 pantalla = SDL_SetVideoMode(320,240,8,SDL_HWSURFACE|SDL_DOUBLEBUF); #else @@ -1222,11 +1223,7 @@ void tecladoj (struct protagonista *jean, int *tecla) { if (evento.type == SDL_QUIT) exit(0); if (evento.type == SDL_KEYDOWN) { -#ifdef _OPENPANDORA - if (evento.key.keysym.sym == SDLK_PAGEDOWN) { -#else - if (evento.key.keysym.sym == SDLK_UP) { -#endif + if (evento.key.keysym.sym == KEY_JUMP) { if ((jean->pulsa[0] == 0) && (jean->salto == 0) && (jean->agachado == 0)) jean->salto = 1; } @@ -1250,18 +1247,14 @@ void tecladoj (struct protagonista *jean, int *tecla) { } if (evento.key.keysym.sym == SDLK_f) *tecla = 6; - if (evento.key.keysym.sym == SDLK_c) + if (evento.key.keysym.sym == KEY_GRAPHICS) *tecla = 9; if (evento.key.keysym.sym == SDLK_ESCAPE) exit(0); } if (evento.type == SDL_KEYUP) { -#ifdef _OPENPANDORA - if (evento.key.keysym.sym == SDLK_PAGEDOWN) -#else - if (evento.key.keysym.sym == SDLK_UP) -#endif + if (evento.key.keysym.sym == KEY_JUMP) jean->pulsa[0] = 0; if (evento.key.keysym.sym == SDLK_DOWN) { jean->pulsa[1] = 0; @@ -1286,7 +1279,7 @@ void teclado (int *tecla, int fase) { if (evento.type == SDL_QUIT) exit(0); if (evento.type == SDL_KEYDOWN) { - if (evento.key.keysym.sym == SDLK_i) { + if (evento.key.keysym.sym == KEY_INFO) { if (fase == 1) *tecla = 7; } @@ -1294,13 +1287,9 @@ void teclado (int *tecla, int fase) { exit(0); if (evento.key.keysym.sym == SDLK_f) *tecla = 6; - if (evento.key.keysym.sym == SDLK_c) + if (evento.key.keysym.sym == KEY_GRAPHICS) *tecla = 9; -#ifdef _OPENPANDORA - if (evento.key.keysym.sym == SDLK_PAGEDOWN) -#else - if (evento.key.keysym.sym == SDLK_SPACE) -#endif + if (evento.key.keysym.sym == KEY_START) *tecla = 5; } } @@ -1313,11 +1302,7 @@ void tecladop (int *teclap) { while (SDL_PollEvent(&evento)) { if (evento.type == SDL_KEYDOWN) { -#ifdef _OPENPANDORA - if ((evento.key.keysym.sym == SDLK_PAGEDOWN) || -#else - if ((evento.key.keysym.sym == SDLK_SPACE) || -#endif + if ((evento.key.keysym.sym == KEY_START) || (evento.key.keysym.sym == SDLK_LEFT) || (evento.key.keysym.sym == SDLK_RIGHT)) *teclap = 1; }