--- tumiki-fighters-0.2.dfsg1.orig/debian/control +++ tumiki-fighters-0.2.dfsg1/debian/control @@ -0,0 +1,40 @@ +Source: tumiki-fighters +Section: games +Priority: extra +Maintainer: Debian Games Team +Uploaders: Miriam Ruiz , Peter De Wachter +Build-Depends: debhelper (>= 5), quilt, gdc, + libglu1-mesa-dev | libglu-dev, libgl1-mesa-dev | libgl-dev, + libsdl1.2-dev, libsdl-mixer1.2-dev, libbulletml-dev +Standards-Version: 3.7.2 +XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/tumiki-fighters/ +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/tumiki-fighters/?op=log +XS-DM-Upload-Allowed: yes + +Package: tumiki-fighters +Architecture: any +Depends: tumiki-fighters-data (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: sticky 2D shooter + Tumiki Fighters brings a different twist to the side-scrolling shooter genre. + With simple 3D graphics, the player has to control a ship and shoot down the + enemies. The player can swoop in and attach the wreckage to its own hull for + bonus points and protection from enemy attacks. + . + Tumiki Fighters is another gem among many by Kenta Cho. + . + Homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf_e.html + +Package: tumiki-fighters-data +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: tumiki-fighters +Description: sticky 2D shooter - game data + Tumiki Fighters brings a different twist to the side-scrolling shooter genre. + With simple 3D graphics, the player has to control a ship and shoot down the + enemies. The player can swoop in and attach the wreckage to its own hull for + bonus points and protection from enemy attacks. . + . + This package includes the architecture-independent data for the Kenta Cho's + game Tumiki Fighters. + . + Homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf_e.html --- tumiki-fighters-0.2.dfsg1.orig/debian/copyright +++ tumiki-fighters-0.2.dfsg1/debian/copyright @@ -0,0 +1,62 @@ +This package was debianized by Miriam Ruiz on +Sat, 25 Aug 2007 19:58:40 +0000. + +It was downloaded from http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf_e.html + +Upstream Author: + + Kenta Cho + +Copyright: + + Copyright 2004 Kenta Cho + + import/SDL* : Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +import/SDL*: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + + +The Debian packaging is (C) 2007, Miriam Ruiz and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- tumiki-fighters-0.2.dfsg1.orig/debian/menu +++ tumiki-fighters-0.2.dfsg1/debian/menu @@ -0,0 +1,3 @@ +?package(tumiki-fighters):needs="X11" section="Games/Action"\ + title="Tumiki Fighters" command="/usr/games/tumiki-fighters" \ + icon="/usr/share/pixmaps/tumiki-fighters.xpm" --- tumiki-fighters-0.2.dfsg1.orig/debian/tumiki-fighters-data.install +++ tumiki-fighters-0.2.dfsg1/debian/tumiki-fighters-data.install @@ -0,0 +1,7 @@ +sounds usr/share/games/tumiki-fighters/ +barrage usr/share/games/tumiki-fighters/ +enemy usr/share/games/tumiki-fighters/ +stage usr/share/games/tumiki-fighters/ +tumiki usr/share/games/tumiki-fighters/ +field usr/share/games/tumiki-fighters/ + --- tumiki-fighters-0.2.dfsg1.orig/debian/docs +++ tumiki-fighters-0.2.dfsg1/debian/docs @@ -0,0 +1,2 @@ +readme_e.txt +readme.txt --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/series +++ tumiki-fighters-0.2.dfsg1/debian/patches/series @@ -0,0 +1,8 @@ +imports.patch +fixes.patch +directories.patch +windowed.patch +dotfile.patch +makefile.patch +gdc-0.24-semantics-for-version.patch +window-resizing.patch --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/gdc-0.24-semantics-for-version.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/gdc-0.24-semantics-for-version.patch @@ -0,0 +1,36 @@ +# Copyright (C) 2007 Peter De Wachter +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/import/opengl.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/opengl.d 2007-09-08 17:35:03.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/opengl.d 2007-09-08 17:35:31.000000000 +0000 +@@ -1,10 +1,4 @@ +-version (Win32) { +- private import std.c.windows.windows; +- extern(Windows): +-} +-version (linux) { +- extern(C): +-} ++extern(C): + + alias uint GLenum; + alias ubyte GLboolean; +Index: tumiki-fighters-0.2.dfsg1/import/openglu.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/openglu.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/openglu.d 2007-09-08 17:35:31.000000000 +0000 +@@ -1,11 +1,6 @@ + import opengl; + +-version (Win32) { +- extern(Windows): +-} +-version (linux) { +- extern(C): +-} ++extern(C): + + GLubyte* gluErrorString ( + GLenum errCode); --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/dotfile.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/dotfile.patch @@ -0,0 +1,64 @@ +# Copyright (C) 2007 Peter De Wachter +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/prefmanager.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/prefmanager.d 2004-05-14 23:35:38.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/prefmanager.d 2007-09-08 17:35:31.000000000 +0000 +@@ -6,6 +6,8 @@ + module abagames.tf.prefmanager; + + private import std.stream; ++private import std.string; ++private import std.c.stdlib; + private import abagames.util.prefmanager; + + /** +@@ -14,7 +16,7 @@ + public class PrefManager: abagames.util.prefmanager.PrefManager { + public: + static const int VERSION_NUM = 20; +- static const char[] PREF_FILE = "tf.prf"; ++ static const char[] PREF_FILE = ".tumiki-fighters.prf"; + static const int RANKING_NUM = 10; + static const int DEFAULT_HISCORE = 10000; + RankingItem[RANKING_NUM] ranking; +@@ -24,6 +26,13 @@ + ri = new RankingItem; + } + ++ public static char[] home_dir() { ++ char * home = getenv("HOME"); ++ if (home is null) ++ throw new Error("HOME environment variable is not defined"); ++ return std.string.toString(home); ++ } ++ + private void init() { + int sc = DEFAULT_HISCORE * RANKING_NUM; + foreach (RankingItem ri; ranking) { +@@ -37,13 +46,13 @@ + auto File fd = new File; + try { + int ver; +- fd.open(PREF_FILE); ++ fd.open(home_dir() ~ "/" ~ PREF_FILE); + fd.read(ver); + if (ver != VERSION_NUM) + throw new Error("Wrong version num"); + foreach (RankingItem ri; ranking) + ri.load(fd); +- } catch (Error e) { ++ } catch (Exception e) { + init(); + } finally { + fd.close(); +@@ -52,7 +61,7 @@ + + public void save() { + auto File fd = new File; +- fd.create(PREF_FILE); ++ fd.create(home_dir() ~ "/" ~ PREF_FILE); + fd.write(VERSION_NUM); + foreach (RankingItem ri; ranking) + ri.save(fd); --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/windowed.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/windowed.patch @@ -0,0 +1,39 @@ +# Copyright (C) 2007 Miriam Ruiz +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/boot.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/boot.d 2007-09-08 17:35:04.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/boot.d 2007-09-08 17:35:30.000000000 +0000 +@@ -27,7 +27,7 @@ + + private void usage(char[] args0) { + Logger.error +- ("Usage: " ~ args0 ~ " [-brightness [0-100]] [-window] [-res x y] [-nosound] [-reverse]"); ++ ("Usage: " ~ args0 ~ " [-brightness [0-100]] [-window] [-fullscreen] [-res x y] [-nosound] [-reverse]"); + } + + private void parseArgs(char[][] args) { +@@ -49,6 +49,9 @@ + case "-window": + Screen.windowMode = true; + break; ++ case "-fullscreen": ++ Screen.windowMode = false; ++ break; + case "-res": + if (i >= args.length - 2) { + usage(args[0]); +Index: tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/screen3d.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/util/sdl/screen3d.d 2004-05-14 23:35:40.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/screen3d.d 2007-09-08 17:36:21.000000000 +0000 +@@ -20,7 +20,7 @@ + static float brightness = 1; + static int width = 640; + static int height = 480; +- static bool windowMode = false; ++ static bool windowMode = true; + static float nearPlane = 0.1; + static float farPlane = 1000; + --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/imports.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/imports.patch @@ -0,0 +1,960 @@ +# Copyright (C) 2007 Marcel Unbehaun +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/import/opengl.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/opengl.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/opengl.d 2007-09-08 17:36:23.000000000 +0000 +@@ -1116,7 +1116,7 @@ + /*************************************************************/ + + void /*APIENTRY*/glAccum (GLenum op, GLfloat value); +-void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf ref); ++void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf); + GLboolean /*APIENTRY*/glAreTexturesResident (GLsizei n, GLuint *textures, GLboolean *residences); + void /*APIENTRY*/glArrayElement (GLint i); + void /*APIENTRY*/glBegin (GLenum mode); +@@ -1369,7 +1369,7 @@ + void /*APIENTRY*/glScissor (GLint x, GLint y, GLsizei width, GLsizei height); + void /*APIENTRY*/glSelectBuffer (GLsizei size, GLuint *buffer); + void /*APIENTRY*/glShadeModel (GLenum mode); +-void /*APIENTRY*/glStencilFunc (GLenum func, GLint ref, GLuint mask); ++void /*APIENTRY*/glStencilFunc (GLenum func, GLint, GLuint mask); + void /*APIENTRY*/glStencilMask (GLuint mask); + void /*APIENTRY*/glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); + void /*APIENTRY*/glTexCoord1d (GLdouble s); +Index: tumiki-fighters-0.2.dfsg1/import/SDL.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL.d 2007-09-08 17:35:03.000000000 +0000 +@@ -20,18 +20,21 @@ + slouken@devolution.com + */ + +-import SDL_types; +-import SDL_getenv; +-import SDL_error; +-import SDL_rwops; +-import SDL_timer; +-import SDL_audio; +-import SDL_cdrom; +-import SDL_joystick; +-import SDL_events; +-import SDL_video; +-import SDL_byteorder; +-import SDL_version_; ++public import SDL_types; ++public import SDL_getenv; ++public import SDL_error; ++public import SDL_rwops; ++public import SDL_timer; ++public import SDL_audio; ++public import SDL_cdrom; ++public import SDL_joystick; ++public import SDL_events; ++public import SDL_video; ++public import SDL_byteorder; ++public import SDL_Version; ++public import SDL_Keysym; ++public import SDL_mouse; ++public import SDL_keyboard; + + extern(C): + +@@ -73,6 +76,7 @@ + */ + void SDL_Quit(); + ++/+ + void SDL_SetModuleHandle(void *hInst); + extern(Windows) void* GetModuleHandle(char*); + +@@ -88,3 +92,4 @@ + { + SDL_Quit(); + } +++/ +Index: tumiki-fighters-0.2.dfsg1/import/SDL_endian.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_endian.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_endian.d 2007-09-08 17:35:03.000000000 +0000 +@@ -57,9 +57,9 @@ + Uint64 SDL_Swap64(Uint64 val) { + Uint32 hi, lo; + /* Separate into high and low 32-bit values and swap them */ +- lo = (Uint32)(val&0xFFFFFFFF); ++ lo = cast(Uint32)(val&0xFFFFFFFF); + val >>= 32; +- hi = (Uint32)(val&0xFFFFFFFF); ++ hi = cast(Uint32)(val&0xFFFFFFFF); + val = SDL_Swap32(lo); + val <<= 32; + val |= SDL_Swap32(hi); +Index: tumiki-fighters-0.2.dfsg1/import/SDL_events.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_events.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_events.d 2007-09-08 17:35:03.000000000 +0000 +@@ -304,7 +304,7 @@ + If 'state' is set to SDL_QUERY, SDL_EventState() will return the + current processing state of the specified event. + */ +-const uint SDL_QUERY = -1; ++const uint SDL_QUERY = cast(uint) -1; + const uint SDL_IGNORE = 0; + const uint SDL_DISABLE = 0; + const uint SDL_ENABLE = 1; +Index: tumiki-fighters-0.2.dfsg1/import/SDL_getenv.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_getenv.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_getenv.d 2007-09-08 17:35:03.000000000 +0000 +@@ -2,6 +2,7 @@ + + extern(C): + ++/+ + /* Put a variable of the form "name=value" into the environment */ + int SDL_putenv(char *variable); + int putenv(char* X) { return SDL_putenv(X); } +@@ -9,3 +10,4 @@ + /* Retrieve a variable named "name" from the environment */ + char *SDL_getenv(char *name); + char *getenv(char* X) { return SDL_getenv(X); } +++/ +Index: tumiki-fighters-0.2.dfsg1/import/SDL_keyboard.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_keyboard.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_keyboard.d 2007-09-08 17:35:03.000000000 +0000 +@@ -26,7 +26,7 @@ + // !!! A hack! struct SDL_keysym is defined in this module, + // !!! so we need to resolve the nameclash... + // !!! Definitely won't work on *NIX but for now will do. +-import SDL_keysym_; ++import SDL_Keysym; + + extern(C): + +Index: tumiki-fighters-0.2.dfsg1/import/SDL_keysym_.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_keysym_.d 2004-04-03 19:36:30.000000000 +0000 ++++ /dev/null 1970-01-01 00:00:00.000000000 +0000 +@@ -1,308 +0,0 @@ +-/* +- SDL - Simple DirectMedia Layer +- Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga +- +- This library is free software; you can redistribute it and/or +- modify it under the terms of the GNU Library General Public +- License as published by the Free Software Foundation; either +- version 2 of the License, or (at your option) any later version. +- +- This library is distributed in the hope that it will be useful, +- but WITHOUT ANY WARRANTY; without even the implied warranty of +- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +- Library General Public License for more details. +- +- You should have received a copy of the GNU Library General Public +- License along with this library; if not, write to the Free +- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +- +- Sam Lantinga +- slouken@devolution.com +-*/ +- +-/* What we really want is a mapping of every raw key on the keyboard. +- To support international keyboards, we use the range 0xA1 - 0xFF +- as international virtual keycodes. We'll follow in the footsteps of X11... +- The names of the keys +- */ +- +-alias int SDLKey; +-enum { +- /* The keyboard syms have been cleverly chosen to map to ASCII */ +- SDLK_UNKNOWN = 0, +- SDLK_FIRST = 0, +- SDLK_BACKSPACE = 8, +- SDLK_TAB = 9, +- SDLK_CLEAR = 12, +- SDLK_RETURN = 13, +- SDLK_PAUSE = 19, +- SDLK_ESCAPE = 27, +- SDLK_SPACE = 32, +- SDLK_EXCLAIM = 33, +- SDLK_QUOTEDBL = 34, +- SDLK_HASH = 35, +- SDLK_DOLLAR = 36, +- SDLK_AMPERSAND = 38, +- SDLK_QUOTE = 39, +- SDLK_LEFTPAREN = 40, +- SDLK_RIGHTPAREN = 41, +- SDLK_ASTERISK = 42, +- SDLK_PLUS = 43, +- SDLK_COMMA = 44, +- SDLK_MINUS = 45, +- SDLK_PERIOD = 46, +- SDLK_SLASH = 47, +- SDLK_0 = 48, +- SDLK_1 = 49, +- SDLK_2 = 50, +- SDLK_3 = 51, +- SDLK_4 = 52, +- SDLK_5 = 53, +- SDLK_6 = 54, +- SDLK_7 = 55, +- SDLK_8 = 56, +- SDLK_9 = 57, +- SDLK_COLON = 58, +- SDLK_SEMICOLON = 59, +- SDLK_LESS = 60, +- SDLK_EQUALS = 61, +- SDLK_GREATER = 62, +- SDLK_QUESTION = 63, +- SDLK_AT = 64, +- /* +- Skip uppercase letters +- */ +- SDLK_LEFTBRACKET = 91, +- SDLK_BACKSLASH = 92, +- SDLK_RIGHTBRACKET = 93, +- SDLK_CARET = 94, +- SDLK_UNDERSCORE = 95, +- SDLK_BACKQUOTE = 96, +- SDLK_a = 97, +- SDLK_b = 98, +- SDLK_c = 99, +- SDLK_d = 100, +- SDLK_e = 101, +- SDLK_f = 102, +- SDLK_g = 103, +- SDLK_h = 104, +- SDLK_i = 105, +- SDLK_j = 106, +- SDLK_k = 107, +- SDLK_l = 108, +- SDLK_m = 109, +- SDLK_n = 110, +- SDLK_o = 111, +- SDLK_p = 112, +- SDLK_q = 113, +- SDLK_r = 114, +- SDLK_s = 115, +- SDLK_t = 116, +- SDLK_u = 117, +- SDLK_v = 118, +- SDLK_w = 119, +- SDLK_x = 120, +- SDLK_y = 121, +- SDLK_z = 122, +- SDLK_DELETE = 127, +- /* End of ASCII mapped keysyms */ +- +- /* International keyboard syms */ +- SDLK_WORLD_0 = 160, /* 0xA0 */ +- SDLK_WORLD_1 = 161, +- SDLK_WORLD_2 = 162, +- SDLK_WORLD_3 = 163, +- SDLK_WORLD_4 = 164, +- SDLK_WORLD_5 = 165, +- SDLK_WORLD_6 = 166, +- SDLK_WORLD_7 = 167, +- SDLK_WORLD_8 = 168, +- SDLK_WORLD_9 = 169, +- SDLK_WORLD_10 = 170, +- SDLK_WORLD_11 = 171, +- SDLK_WORLD_12 = 172, +- SDLK_WORLD_13 = 173, +- SDLK_WORLD_14 = 174, +- SDLK_WORLD_15 = 175, +- SDLK_WORLD_16 = 176, +- SDLK_WORLD_17 = 177, +- SDLK_WORLD_18 = 178, +- SDLK_WORLD_19 = 179, +- SDLK_WORLD_20 = 180, +- SDLK_WORLD_21 = 181, +- SDLK_WORLD_22 = 182, +- SDLK_WORLD_23 = 183, +- SDLK_WORLD_24 = 184, +- SDLK_WORLD_25 = 185, +- SDLK_WORLD_26 = 186, +- SDLK_WORLD_27 = 187, +- SDLK_WORLD_28 = 188, +- SDLK_WORLD_29 = 189, +- SDLK_WORLD_30 = 190, +- SDLK_WORLD_31 = 191, +- SDLK_WORLD_32 = 192, +- SDLK_WORLD_33 = 193, +- SDLK_WORLD_34 = 194, +- SDLK_WORLD_35 = 195, +- SDLK_WORLD_36 = 196, +- SDLK_WORLD_37 = 197, +- SDLK_WORLD_38 = 198, +- SDLK_WORLD_39 = 199, +- SDLK_WORLD_40 = 200, +- SDLK_WORLD_41 = 201, +- SDLK_WORLD_42 = 202, +- SDLK_WORLD_43 = 203, +- SDLK_WORLD_44 = 204, +- SDLK_WORLD_45 = 205, +- SDLK_WORLD_46 = 206, +- SDLK_WORLD_47 = 207, +- SDLK_WORLD_48 = 208, +- SDLK_WORLD_49 = 209, +- SDLK_WORLD_50 = 210, +- SDLK_WORLD_51 = 211, +- SDLK_WORLD_52 = 212, +- SDLK_WORLD_53 = 213, +- SDLK_WORLD_54 = 214, +- SDLK_WORLD_55 = 215, +- SDLK_WORLD_56 = 216, +- SDLK_WORLD_57 = 217, +- SDLK_WORLD_58 = 218, +- SDLK_WORLD_59 = 219, +- SDLK_WORLD_60 = 220, +- SDLK_WORLD_61 = 221, +- SDLK_WORLD_62 = 222, +- SDLK_WORLD_63 = 223, +- SDLK_WORLD_64 = 224, +- SDLK_WORLD_65 = 225, +- SDLK_WORLD_66 = 226, +- SDLK_WORLD_67 = 227, +- SDLK_WORLD_68 = 228, +- SDLK_WORLD_69 = 229, +- SDLK_WORLD_70 = 230, +- SDLK_WORLD_71 = 231, +- SDLK_WORLD_72 = 232, +- SDLK_WORLD_73 = 233, +- SDLK_WORLD_74 = 234, +- SDLK_WORLD_75 = 235, +- SDLK_WORLD_76 = 236, +- SDLK_WORLD_77 = 237, +- SDLK_WORLD_78 = 238, +- SDLK_WORLD_79 = 239, +- SDLK_WORLD_80 = 240, +- SDLK_WORLD_81 = 241, +- SDLK_WORLD_82 = 242, +- SDLK_WORLD_83 = 243, +- SDLK_WORLD_84 = 244, +- SDLK_WORLD_85 = 245, +- SDLK_WORLD_86 = 246, +- SDLK_WORLD_87 = 247, +- SDLK_WORLD_88 = 248, +- SDLK_WORLD_89 = 249, +- SDLK_WORLD_90 = 250, +- SDLK_WORLD_91 = 251, +- SDLK_WORLD_92 = 252, +- SDLK_WORLD_93 = 253, +- SDLK_WORLD_94 = 254, +- SDLK_WORLD_95 = 255, /* 0xFF */ +- +- /* Numeric keypad */ +- SDLK_KP0 = 256, +- SDLK_KP1 = 257, +- SDLK_KP2 = 258, +- SDLK_KP3 = 259, +- SDLK_KP4 = 260, +- SDLK_KP5 = 261, +- SDLK_KP6 = 262, +- SDLK_KP7 = 263, +- SDLK_KP8 = 264, +- SDLK_KP9 = 265, +- SDLK_KP_PERIOD = 266, +- SDLK_KP_DIVIDE = 267, +- SDLK_KP_MULTIPLY = 268, +- SDLK_KP_MINUS = 269, +- SDLK_KP_PLUS = 270, +- SDLK_KP_ENTER = 271, +- SDLK_KP_EQUALS = 272, +- +- /* Arrows + Home/End pad */ +- SDLK_UP = 273, +- SDLK_DOWN = 274, +- SDLK_RIGHT = 275, +- SDLK_LEFT = 276, +- SDLK_INSERT = 277, +- SDLK_HOME = 278, +- SDLK_END = 279, +- SDLK_PAGEUP = 280, +- SDLK_PAGEDOWN = 281, +- +- /* Function keys */ +- SDLK_F1 = 282, +- SDLK_F2 = 283, +- SDLK_F3 = 284, +- SDLK_F4 = 285, +- SDLK_F5 = 286, +- SDLK_F6 = 287, +- SDLK_F7 = 288, +- SDLK_F8 = 289, +- SDLK_F9 = 290, +- SDLK_F10 = 291, +- SDLK_F11 = 292, +- SDLK_F12 = 293, +- SDLK_F13 = 294, +- SDLK_F14 = 295, +- SDLK_F15 = 296, +- +- /* Key state modifier keys */ +- SDLK_NUMLOCK = 300, +- SDLK_CAPSLOCK = 301, +- SDLK_SCROLLOCK = 302, +- SDLK_RSHIFT = 303, +- SDLK_LSHIFT = 304, +- SDLK_RCTRL = 305, +- SDLK_LCTRL = 306, +- SDLK_RALT = 307, +- SDLK_LALT = 308, +- SDLK_RMETA = 309, +- SDLK_LMETA = 310, +- SDLK_LSUPER = 311, /* Left "Windows" key */ +- SDLK_RSUPER = 312, /* Right "Windows" key */ +- SDLK_MODE = 313, /* "Alt Gr" key */ +- SDLK_COMPOSE = 314, /* Multi-key compose key */ +- +- /* Miscellaneous function keys */ +- SDLK_HELP = 315, +- SDLK_PRINT = 316, +- SDLK_SYSREQ = 317, +- SDLK_BREAK = 318, +- SDLK_MENU = 319, +- SDLK_POWER = 320, /* Power Macintosh power key */ +- SDLK_EURO = 321, /* Some european keyboards */ +- SDLK_UNDO = 322, /* Atari keyboard has Undo */ +- +- /* Add any other keys here */ +- +- SDLK_LAST +-} +- +-/* Enumeration of valid key mods (possibly OR'd together) */ +-alias int SDLMod; +-enum { +- KMOD_NONE = 0x0000, +- KMOD_LSHIFT= 0x0001, +- KMOD_RSHIFT= 0x0002, +- KMOD_LCTRL = 0x0040, +- KMOD_RCTRL = 0x0080, +- KMOD_LALT = 0x0100, +- KMOD_RALT = 0x0200, +- KMOD_LMETA = 0x0400, +- KMOD_RMETA = 0x0800, +- KMOD_NUM = 0x1000, +- KMOD_CAPS = 0x2000, +- KMOD_MODE = 0x4000, +- KMOD_RESERVED = 0x8000 +-} +- +-const uint KMOD_CTRL = (KMOD_LCTRL|KMOD_RCTRL); +-const uint KMOD_SHIFT = (KMOD_LSHIFT|KMOD_RSHIFT); +-const uint KMOD_ALT = (KMOD_LALT|KMOD_RALT); +-const uint KMOD_META = (KMOD_LMETA|KMOD_RMETA); +Index: tumiki-fighters-0.2.dfsg1/import/SDL_Keysym.d +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_Keysym.d 2007-09-08 17:35:03.000000000 +0000 +@@ -0,0 +1,308 @@ ++/* ++ SDL - Simple DirectMedia Layer ++ Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga ++ ++ This library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Library General Public ++ License as published by the Free Software Foundation; either ++ version 2 of the License, or (at your option) any later version. ++ ++ This library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Library General Public License for more details. ++ ++ You should have received a copy of the GNU Library General Public ++ License along with this library; if not, write to the Free ++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ ++ Sam Lantinga ++ slouken@devolution.com ++*/ ++ ++/* What we really want is a mapping of every raw key on the keyboard. ++ To support international keyboards, we use the range 0xA1 - 0xFF ++ as international virtual keycodes. We'll follow in the footsteps of X11... ++ The names of the keys ++ */ ++ ++alias int SDLKey; ++enum { ++ /* The keyboard syms have been cleverly chosen to map to ASCII */ ++ SDLK_UNKNOWN = 0, ++ SDLK_FIRST = 0, ++ SDLK_BACKSPACE = 8, ++ SDLK_TAB = 9, ++ SDLK_CLEAR = 12, ++ SDLK_RETURN = 13, ++ SDLK_PAUSE = 19, ++ SDLK_ESCAPE = 27, ++ SDLK_SPACE = 32, ++ SDLK_EXCLAIM = 33, ++ SDLK_QUOTEDBL = 34, ++ SDLK_HASH = 35, ++ SDLK_DOLLAR = 36, ++ SDLK_AMPERSAND = 38, ++ SDLK_QUOTE = 39, ++ SDLK_LEFTPAREN = 40, ++ SDLK_RIGHTPAREN = 41, ++ SDLK_ASTERISK = 42, ++ SDLK_PLUS = 43, ++ SDLK_COMMA = 44, ++ SDLK_MINUS = 45, ++ SDLK_PERIOD = 46, ++ SDLK_SLASH = 47, ++ SDLK_0 = 48, ++ SDLK_1 = 49, ++ SDLK_2 = 50, ++ SDLK_3 = 51, ++ SDLK_4 = 52, ++ SDLK_5 = 53, ++ SDLK_6 = 54, ++ SDLK_7 = 55, ++ SDLK_8 = 56, ++ SDLK_9 = 57, ++ SDLK_COLON = 58, ++ SDLK_SEMICOLON = 59, ++ SDLK_LESS = 60, ++ SDLK_EQUALS = 61, ++ SDLK_GREATER = 62, ++ SDLK_QUESTION = 63, ++ SDLK_AT = 64, ++ /* ++ Skip uppercase letters ++ */ ++ SDLK_LEFTBRACKET = 91, ++ SDLK_BACKSLASH = 92, ++ SDLK_RIGHTBRACKET = 93, ++ SDLK_CARET = 94, ++ SDLK_UNDERSCORE = 95, ++ SDLK_BACKQUOTE = 96, ++ SDLK_a = 97, ++ SDLK_b = 98, ++ SDLK_c = 99, ++ SDLK_d = 100, ++ SDLK_e = 101, ++ SDLK_f = 102, ++ SDLK_g = 103, ++ SDLK_h = 104, ++ SDLK_i = 105, ++ SDLK_j = 106, ++ SDLK_k = 107, ++ SDLK_l = 108, ++ SDLK_m = 109, ++ SDLK_n = 110, ++ SDLK_o = 111, ++ SDLK_p = 112, ++ SDLK_q = 113, ++ SDLK_r = 114, ++ SDLK_s = 115, ++ SDLK_t = 116, ++ SDLK_u = 117, ++ SDLK_v = 118, ++ SDLK_w = 119, ++ SDLK_x = 120, ++ SDLK_y = 121, ++ SDLK_z = 122, ++ SDLK_DELETE = 127, ++ /* End of ASCII mapped keysyms */ ++ ++ /* International keyboard syms */ ++ SDLK_WORLD_0 = 160, /* 0xA0 */ ++ SDLK_WORLD_1 = 161, ++ SDLK_WORLD_2 = 162, ++ SDLK_WORLD_3 = 163, ++ SDLK_WORLD_4 = 164, ++ SDLK_WORLD_5 = 165, ++ SDLK_WORLD_6 = 166, ++ SDLK_WORLD_7 = 167, ++ SDLK_WORLD_8 = 168, ++ SDLK_WORLD_9 = 169, ++ SDLK_WORLD_10 = 170, ++ SDLK_WORLD_11 = 171, ++ SDLK_WORLD_12 = 172, ++ SDLK_WORLD_13 = 173, ++ SDLK_WORLD_14 = 174, ++ SDLK_WORLD_15 = 175, ++ SDLK_WORLD_16 = 176, ++ SDLK_WORLD_17 = 177, ++ SDLK_WORLD_18 = 178, ++ SDLK_WORLD_19 = 179, ++ SDLK_WORLD_20 = 180, ++ SDLK_WORLD_21 = 181, ++ SDLK_WORLD_22 = 182, ++ SDLK_WORLD_23 = 183, ++ SDLK_WORLD_24 = 184, ++ SDLK_WORLD_25 = 185, ++ SDLK_WORLD_26 = 186, ++ SDLK_WORLD_27 = 187, ++ SDLK_WORLD_28 = 188, ++ SDLK_WORLD_29 = 189, ++ SDLK_WORLD_30 = 190, ++ SDLK_WORLD_31 = 191, ++ SDLK_WORLD_32 = 192, ++ SDLK_WORLD_33 = 193, ++ SDLK_WORLD_34 = 194, ++ SDLK_WORLD_35 = 195, ++ SDLK_WORLD_36 = 196, ++ SDLK_WORLD_37 = 197, ++ SDLK_WORLD_38 = 198, ++ SDLK_WORLD_39 = 199, ++ SDLK_WORLD_40 = 200, ++ SDLK_WORLD_41 = 201, ++ SDLK_WORLD_42 = 202, ++ SDLK_WORLD_43 = 203, ++ SDLK_WORLD_44 = 204, ++ SDLK_WORLD_45 = 205, ++ SDLK_WORLD_46 = 206, ++ SDLK_WORLD_47 = 207, ++ SDLK_WORLD_48 = 208, ++ SDLK_WORLD_49 = 209, ++ SDLK_WORLD_50 = 210, ++ SDLK_WORLD_51 = 211, ++ SDLK_WORLD_52 = 212, ++ SDLK_WORLD_53 = 213, ++ SDLK_WORLD_54 = 214, ++ SDLK_WORLD_55 = 215, ++ SDLK_WORLD_56 = 216, ++ SDLK_WORLD_57 = 217, ++ SDLK_WORLD_58 = 218, ++ SDLK_WORLD_59 = 219, ++ SDLK_WORLD_60 = 220, ++ SDLK_WORLD_61 = 221, ++ SDLK_WORLD_62 = 222, ++ SDLK_WORLD_63 = 223, ++ SDLK_WORLD_64 = 224, ++ SDLK_WORLD_65 = 225, ++ SDLK_WORLD_66 = 226, ++ SDLK_WORLD_67 = 227, ++ SDLK_WORLD_68 = 228, ++ SDLK_WORLD_69 = 229, ++ SDLK_WORLD_70 = 230, ++ SDLK_WORLD_71 = 231, ++ SDLK_WORLD_72 = 232, ++ SDLK_WORLD_73 = 233, ++ SDLK_WORLD_74 = 234, ++ SDLK_WORLD_75 = 235, ++ SDLK_WORLD_76 = 236, ++ SDLK_WORLD_77 = 237, ++ SDLK_WORLD_78 = 238, ++ SDLK_WORLD_79 = 239, ++ SDLK_WORLD_80 = 240, ++ SDLK_WORLD_81 = 241, ++ SDLK_WORLD_82 = 242, ++ SDLK_WORLD_83 = 243, ++ SDLK_WORLD_84 = 244, ++ SDLK_WORLD_85 = 245, ++ SDLK_WORLD_86 = 246, ++ SDLK_WORLD_87 = 247, ++ SDLK_WORLD_88 = 248, ++ SDLK_WORLD_89 = 249, ++ SDLK_WORLD_90 = 250, ++ SDLK_WORLD_91 = 251, ++ SDLK_WORLD_92 = 252, ++ SDLK_WORLD_93 = 253, ++ SDLK_WORLD_94 = 254, ++ SDLK_WORLD_95 = 255, /* 0xFF */ ++ ++ /* Numeric keypad */ ++ SDLK_KP0 = 256, ++ SDLK_KP1 = 257, ++ SDLK_KP2 = 258, ++ SDLK_KP3 = 259, ++ SDLK_KP4 = 260, ++ SDLK_KP5 = 261, ++ SDLK_KP6 = 262, ++ SDLK_KP7 = 263, ++ SDLK_KP8 = 264, ++ SDLK_KP9 = 265, ++ SDLK_KP_PERIOD = 266, ++ SDLK_KP_DIVIDE = 267, ++ SDLK_KP_MULTIPLY = 268, ++ SDLK_KP_MINUS = 269, ++ SDLK_KP_PLUS = 270, ++ SDLK_KP_ENTER = 271, ++ SDLK_KP_EQUALS = 272, ++ ++ /* Arrows + Home/End pad */ ++ SDLK_UP = 273, ++ SDLK_DOWN = 274, ++ SDLK_RIGHT = 275, ++ SDLK_LEFT = 276, ++ SDLK_INSERT = 277, ++ SDLK_HOME = 278, ++ SDLK_END = 279, ++ SDLK_PAGEUP = 280, ++ SDLK_PAGEDOWN = 281, ++ ++ /* Function keys */ ++ SDLK_F1 = 282, ++ SDLK_F2 = 283, ++ SDLK_F3 = 284, ++ SDLK_F4 = 285, ++ SDLK_F5 = 286, ++ SDLK_F6 = 287, ++ SDLK_F7 = 288, ++ SDLK_F8 = 289, ++ SDLK_F9 = 290, ++ SDLK_F10 = 291, ++ SDLK_F11 = 292, ++ SDLK_F12 = 293, ++ SDLK_F13 = 294, ++ SDLK_F14 = 295, ++ SDLK_F15 = 296, ++ ++ /* Key state modifier keys */ ++ SDLK_NUMLOCK = 300, ++ SDLK_CAPSLOCK = 301, ++ SDLK_SCROLLOCK = 302, ++ SDLK_RSHIFT = 303, ++ SDLK_LSHIFT = 304, ++ SDLK_RCTRL = 305, ++ SDLK_LCTRL = 306, ++ SDLK_RALT = 307, ++ SDLK_LALT = 308, ++ SDLK_RMETA = 309, ++ SDLK_LMETA = 310, ++ SDLK_LSUPER = 311, /* Left "Windows" key */ ++ SDLK_RSUPER = 312, /* Right "Windows" key */ ++ SDLK_MODE = 313, /* "Alt Gr" key */ ++ SDLK_COMPOSE = 314, /* Multi-key compose key */ ++ ++ /* Miscellaneous function keys */ ++ SDLK_HELP = 315, ++ SDLK_PRINT = 316, ++ SDLK_SYSREQ = 317, ++ SDLK_BREAK = 318, ++ SDLK_MENU = 319, ++ SDLK_POWER = 320, /* Power Macintosh power key */ ++ SDLK_EURO = 321, /* Some european keyboards */ ++ SDLK_UNDO = 322, /* Atari keyboard has Undo */ ++ ++ /* Add any other keys here */ ++ ++ SDLK_LAST ++} ++ ++/* Enumeration of valid key mods (possibly OR'd together) */ ++alias int SDLMod; ++enum { ++ KMOD_NONE = 0x0000, ++ KMOD_LSHIFT= 0x0001, ++ KMOD_RSHIFT= 0x0002, ++ KMOD_LCTRL = 0x0040, ++ KMOD_RCTRL = 0x0080, ++ KMOD_LALT = 0x0100, ++ KMOD_RALT = 0x0200, ++ KMOD_LMETA = 0x0400, ++ KMOD_RMETA = 0x0800, ++ KMOD_NUM = 0x1000, ++ KMOD_CAPS = 0x2000, ++ KMOD_MODE = 0x4000, ++ KMOD_RESERVED = 0x8000 ++} ++ ++const uint KMOD_CTRL = (KMOD_LCTRL|KMOD_RCTRL); ++const uint KMOD_SHIFT = (KMOD_LSHIFT|KMOD_RSHIFT); ++const uint KMOD_ALT = (KMOD_LALT|KMOD_RALT); ++const uint KMOD_META = (KMOD_LMETA|KMOD_RMETA); +Index: tumiki-fighters-0.2.dfsg1/import/SDL_mixer.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_mixer.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_mixer.d 2007-09-08 17:35:03.000000000 +0000 +@@ -22,7 +22,7 @@ + + // convert to D by shinichiro.h + +-/* $Id: SDL_mixer.d,v 1.1.1.1 2004/04/03 10:36:30 kenta Exp $ */ ++/* $Id: SDL_mixer.d,v 1.1.1.1 2005/06/18 00:46:00 kenta Exp $ */ + + import SDL; + +Index: tumiki-fighters-0.2.dfsg1/import/SDL_mouse.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_mouse.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_mouse.d 2007-09-08 17:35:03.000000000 +0000 +@@ -109,6 +109,8 @@ + const uint SDL_BUTTON_LEFT = 1; + const uint SDL_BUTTON_MIDDLE = 2; + const uint SDL_BUTTON_RIGHT = 3; ++const uint SDL_BUTTON_WHEELUP = 4; ++const uint SDL_BUTTON_WHEELDOWN = 5; + const uint SDL_BUTTON_LMASK = SDL_PRESSED << (SDL_BUTTON_LEFT - 1); + const uint SDL_BUTTON_MMASK = SDL_PRESSED << (SDL_BUTTON_MIDDLE - 1); + const uint SDL_BUTTON_RMASK = SDL_PRESSED << (SDL_BUTTON_RIGHT - 1); +Index: tumiki-fighters-0.2.dfsg1/import/SDL_syswm.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_syswm.d 2004-04-03 19:36:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_syswm.d 2007-09-08 17:35:03.000000000 +0000 +@@ -22,7 +22,7 @@ + + /* Include file for SDL custom system window manager hooks */ + +-import SDL_version_; ++import SDL_Version; + + extern(C): + +Index: tumiki-fighters-0.2.dfsg1/import/SDL_version_.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/import/SDL_version_.d 2004-04-03 19:36:32.000000000 +0000 ++++ /dev/null 1970-01-01 00:00:00.000000000 +0000 +@@ -1,75 +0,0 @@ +-/* +- SDL - Simple DirectMedia Layer +- Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga +- +- This library is free software; you can redistribute it and/or +- modify it under the terms of the GNU Library General Public +- License as published by the Free Software Foundation; either +- version 2 of the License, or (at your option) any later version. +- +- This library is distributed in the hope that it will be useful, +- but WITHOUT ANY WARRANTY; without even the implied warranty of +- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +- Library General Public License for more details. +- +- You should have received a copy of the GNU Library General Public +- License along with this library; if not, write to the Free +- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +- +- Sam Lantinga +- slouken@devolution.com +-*/ +- +-/* This header defines the current SDL version */ +- +-import SDL_types; +- +-extern(C): +- +-/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL +-*/ +-const uint SDL_MAJOR_VERSION = 1; +-const uint SDL_MINOR_VERSION = 2; +-const uint SDL_PATCHLEVEL = 6; +- +-struct SDL_version { +- Uint8 major; +- Uint8 minor; +- Uint8 patch; +-} +- +-/* This macro can be used to fill a version structure with the compile-time +- * version of the SDL library. +- */ +-void SDL_VERSION(SDL_version* X) +-{ +- X.major = SDL_MAJOR_VERSION; +- X.minor = SDL_MINOR_VERSION; +- X.patch = SDL_PATCHLEVEL; +-} +- +-/* This macro turns the version numbers into a numeric value: +- (1,2,3) -> (1203) +- This assumes that there will never be more than 100 patchlevels +-*/ +-uint SDL_VERSIONNUM(Uint8 X, Uint8 Y, Uint8 Z) +-{ +- return X * 1000 + Y * 100 + Z; +-} +- +-/* This is the version number macro for the current SDL version */ +-const uint SDL_COMPILEDVERSION = SDL_MAJOR_VERSION * 1000 + +- SDL_MINOR_VERSION * 100 + +- SDL_PATCHLEVEL; +- +-/* This macro will evaluate to true if compiled with SDL at least X.Y.Z */ +-bit SDL_VERSION_ATLEAST(Uint8 X, Uint8 Y, Uint8 Z) +-{ +- return (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)); +-} +- +-/* This function gets the version of the dynamically linked SDL library. +- it should NOT be used to fill a version structure, instead you should +- use the SDL_Version() macro. +- */ +-SDL_version * SDL_Linked_Version(); +Index: tumiki-fighters-0.2.dfsg1/import/SDL_Version.d +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/import/SDL_Version.d 2007-09-08 17:35:03.000000000 +0000 +@@ -0,0 +1,75 @@ ++/* ++ SDL - Simple DirectMedia Layer ++ Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga ++ ++ This library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Library General Public ++ License as published by the Free Software Foundation; either ++ version 2 of the License, or (at your option) any later version. ++ ++ This library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Library General Public License for more details. ++ ++ You should have received a copy of the GNU Library General Public ++ License along with this library; if not, write to the Free ++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ ++ Sam Lantinga ++ slouken@devolution.com ++*/ ++ ++/* This header defines the current SDL version */ ++ ++import SDL_types; ++ ++extern(C): ++ ++/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL ++*/ ++const uint SDL_MAJOR_VERSION = 1; ++const uint SDL_MINOR_VERSION = 2; ++const uint SDL_PATCHLEVEL = 6; ++ ++struct SDL_version { ++ Uint8 major; ++ Uint8 minor; ++ Uint8 patch; ++} ++ ++/* This macro can be used to fill a version structure with the compile-time ++ * version of the SDL library. ++ */ ++void SDL_VERSION(SDL_version* X) ++{ ++ X.major = SDL_MAJOR_VERSION; ++ X.minor = SDL_MINOR_VERSION; ++ X.patch = SDL_PATCHLEVEL; ++} ++ ++/* This macro turns the version numbers into a numeric value: ++ (1,2,3) -> (1203) ++ This assumes that there will never be more than 100 patchlevels ++*/ ++uint SDL_VERSIONNUM(Uint8 X, Uint8 Y, Uint8 Z) ++{ ++ return X * 1000 + Y * 100 + Z; ++} ++ ++/* This is the version number macro for the current SDL version */ ++const uint SDL_COMPILEDVERSION = SDL_MAJOR_VERSION * 1000 + ++ SDL_MINOR_VERSION * 100 + ++ SDL_PATCHLEVEL; ++ ++/* This macro will evaluate to true if compiled with SDL at least X.Y.Z */ ++bit SDL_VERSION_ATLEAST(Uint8 X, Uint8 Y, Uint8 Z) ++{ ++ return (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)); ++} ++ ++/* This function gets the version of the dynamically linked SDL library. ++ it should NOT be used to fill a version structure, instead you should ++ use the SDL_Version() macro. ++ */ ++SDL_version * SDL_Linked_Version(); --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/fixes.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/fixes.patch @@ -0,0 +1,235 @@ +# Copyright (C) 2007 Marcel Unbehaun +# Copyright (C) 2007 Miriam Ruiz +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/boot.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/boot.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/boot.d 2007-09-08 19:38:28.000000000 +0000 +@@ -5,7 +5,7 @@ + */ + module abagames.tf.boot; + +-private import std.string; ++private import std.c.string; + private import std.c.stdlib; + private import abagames.util.logger; + private import abagames.util.sdl.mainloop; +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/enemy.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/enemy.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/enemy.d 2007-09-08 19:38:28.000000000 +0000 +@@ -142,13 +142,14 @@ + float speed; + Vector[] pt; + if (!mv.withdraw) { +- pt = mv.pattern.point[barragePtnIdx]; +- if (!pt) { ++// pt = mv.pattern.point[barragePtnIdx]; ++// if (!pt) ++ { + pt = mv.pattern.point[PointsMovePattern.BASIC_PATTERN_IDX]; + speed = mv.pattern.speed[PointsMovePattern.BASIC_PATTERN_IDX]; +- } else { +- speed = mv.pattern.speed[barragePtnIdx]; +- } ++ }// else { ++// speed = mv.pattern.speed[barragePtnIdx]; ++// } + if (!mv.reachFirstPointFirst) + speed *= 3; + else if (!mv.reachFirstPoint) +@@ -272,7 +273,7 @@ + if (attackPtnIdx >= af.attackPeriod.length) + attackPtnIdx = 0; + if (!mv.moveBullet) { +- if (mv.pattern.point[barragePtnIdx]) ++// if (mv.pattern.point[barragePtnIdx]) + movePatternChanged(); + } + } else if (fireCnt < af.breakPeriod[attackPtnIdx]) { +@@ -329,7 +330,7 @@ + if (ep.shield <= 0) { + if (ep.spec.damageToMainBody > 0) { + parts[0].shield -= ep.spec.damageToMainBody; +- particles.add(5, pos, 0, PI * 2, 0.1, parts[0].spec.size / 4, Particle.TypeName.SMOKE); ++ particles.add(5, pos, 0, PI * 2, 0.1, parts[0].spec.sizeof / 4, Particle.TypeName.SMOKE); + } + manager.addScore(ep.spec.tumikiSet.score, p); + if (ep.firstShield <= 1) +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/enemyspec.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/enemyspec.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/enemyspec.d 2007-09-08 19:38:28.000000000 +0000 +@@ -89,11 +89,10 @@ + } + + public static EnemySpec getInstance(char[] fileName) { +- EnemySpec inst = instances[fileName]; ++ EnemySpec inst; + if (!inst) { +- Logger.info("Load enemy spec: " ~ fileName); +- inst = new EnemySpec(fileName); +- instances[fileName] = inst; ++ inst = new EnemySpec(fileName); ++ instances[fileName] = inst; + } + return inst; + } +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/letterrender.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/letterrender.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/letterrender.d 2007-09-08 19:38:28.000000000 +0000 +@@ -32,7 +32,7 @@ + return s * LETTER_HEIGHT; + } + +- private static void drawLetter(int n, float x, float y, float s, float d, int c) { ++ public static void drawLetter(int n, float x, float y, float s, float d, int c) { + glPushMatrix(); + glTranslatef(x, y, 0); + glScalef(s, s, s); +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/ship.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/ship.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/ship.d 2007-09-08 19:38:28.000000000 +0000 +@@ -70,7 +70,7 @@ + bool btnPrsd; + bool pullIn; + +- public static this() { ++ public this() { + rand = new Rand; + } + +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/tumikiset.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/tumikiset.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/tumikiset.d 2007-09-08 19:39:00.000000000 +0000 +@@ -44,7 +44,7 @@ + static char[][] BULLET_COLOR_STR = + ["r", "a", "p"]; + +- public static this() { ++ public static void randInit() { + int i = 0; + foreach (char[] s; SHAPE_STR) { + shapeStr[s] = i; +@@ -75,7 +75,8 @@ + // [BulletML, rank, speed]], + // (end when BulletML == e, shape == e)(set a empty barrage when shape == s), + // ], +- private this(char[][] data) { ++ public this(char[][] data) { ++ randInit(); + sizeXm = sizeYm = float.max; + sizeXp = sizeYp = float.min; + StringIterator si = new StringIterator(data); +@@ -87,9 +88,11 @@ + if (!si.hasNext) + break; + char[] v = si.next; +- int shape = shapeStr[v]; ++ int shape; ++ try { if ((v in shapeStr) != null) shape = shapeStr[v]; } catch (Exception e) {} + v = si.next; +- int color = colorStr[v]; ++ int color; ++ try { if ((v in colorStr) != null) color = colorStr[v]; } catch (Exception e) {} + float x = atof(si.next); + float y = atof(si.next); + float sizex = atof(si.next); +@@ -111,9 +114,11 @@ + ti.addBarrage(new Barrage); + continue; + } +- int shape = bulletShapeStr[v]; ++ int shape; ++ try { if ((v in bulletShapeStr) != null) shape = bulletShapeStr[v]; } catch (Exception e) {} + v = si.next; +- int color = bulletColorStr[v]; ++ int color; ++ try { if ((v in bulletColorStr) != null) color = bulletColorStr[v]; } catch (Exception e) {} + float size = atof(si.next); + float yReverse = atof(si.next); + int prevWait = atoi(si.next); +@@ -136,14 +141,15 @@ + } + + // Initialize TumikiSet from the file. +- private this(char[] fileName) { ++ public this(char[] fileName) { ++ randInit(); + Logger.info("Load tumiki set: " ~ fileName); + char[][] data = CSVTokenizer.readFile(TUMIKI_DIR_NAME ~ "/" ~ fileName); + this(data); + } + + public static TumikiSet getInstance(char[] fileName) { +- TumikiSet inst = instances[fileName]; ++ TumikiSet inst; // = instances[fileName]; + if (!inst) { + inst = new TumikiSet(fileName); + instances[fileName] = inst; +Index: tumiki-fighters-0.2.dfsg1/src/abagames/util/logger.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/util/logger.d 2007-09-08 19:38:21.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/util/logger.d 2007-09-08 19:38:28.000000000 +0000 +@@ -5,7 +5,7 @@ + */ + module abagames.util.logger; + +-private import std.stream; ++private import std.cstream; + private import std.string; + + /** +@@ -53,27 +53,27 @@ + public class Logger { + + public static void info(char[] msg) { +- stderr.writeLine("Info: " ~ msg); ++ derr.writeLine("Info: " ~ msg); + } + + public static void info(int n) { +- stderr.writeLine("Info: " ~ std.string.toString(n)); ++ derr.writeLine("Info: " ~ std.string.toString(n)); + } + + public static void info(float n) { +- stderr.writeLine("Info: -" ~ std.string.toString(n)); ++ derr.writeLine("Info: -" ~ std.string.toString(n)); + } + + public static void error(char[] msg) { +- stderr.writeLine("Error: " ~ msg); ++ derr.writeLine("Error: " ~ msg); + } + + public static void error(Exception e) { +- stderr.writeLine("Error: " ~ e.toString()); ++ derr.writeLine("Error: " ~ e.toString()); + } + + public static void error(Error e) { +- stderr.writeLine("Error: " ~ e.toString()); ++ derr.writeLine("Error: " ~ e.toString()); + if (e.next) + error(e.next); + } +Index: tumiki-fighters-0.2.dfsg1/src/dirent.d +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/dirent.d 2007-09-08 19:38:28.000000000 +0000 +@@ -0,0 +1,10 @@ ++import std.string; ++ ++extern (C) { ++ alias void DIR; ++ alias void dirent; ++ DIR* opendir(char* name); ++ dirent* readdir(DIR* dir); ++ int closedir(DIR* dir); ++ char* readdir_filename(DIR* ent); ++} --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/makefile.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/makefile.patch @@ -0,0 +1,41 @@ +# Copyright (C) 2007 Marcel Unbehaun +# Copyright (C) 2007 Miriam Ruiz +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/Makefile +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/Makefile 2007-09-08 17:35:31.000000000 +0000 +@@ -0,0 +1,32 @@ ++DC=gdmd ++#DC=gdc ++ifeq ($(DC), gdmd) ++DFLAGS=-g -debug -O ++#DFLAGS=-g -debug ++DOUT=-of ++else ++DFLAGS=-O -debug ++#DFLAGS=-g -fdebug ++DOUT=-o ++endif ++ ++DSRC=$(shell find src/ -name "*.d") ++SOURCES=$(DSRC) import/SDL_video.d import/SDL_mixer.d ++OBJS=$(SOURCES:.d=.o) ++EXE=tumiki-fighters ++ ++all: $(EXE) ++ ++$(EXE): $(OBJS) ++ gcc -o $@ $(OBJS) -lbulletml -lgphobos -lpthread -lm -lSDL -lGL -lGLU -lSDL_mixer ++ ++$(OBJS): %.o: %.d ++ gdmd -d -c -of$@ $(DFLAGS) -Iimport -Isrc $< ++ ++clean: ++ $(RM) src/*.o ++ $(RM) src/abagames/tf/*.o ++ $(RM) src/abagames/util/*.o ++ $(RM) src/abagames/util/sdl/*.o ++ $(RM) src/abagames/util/bulletml/*.o ++ $(RM) import/*.o --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/directories.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/directories.patch @@ -0,0 +1,103 @@ +# Copyright (C) 2007 Miriam Ruiz +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/barragemanager.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/barragemanager.d 2007-09-08 19:38:19.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/barragemanager.d 2007-09-08 19:39:10.000000000 +0000 +@@ -18,7 +18,7 @@ + public class BarrageManager { + private: + static BulletMLParserTinyXML *parser[char[]]; +- static const char[] BARRAGE_DIR_NAME = "barrage"; ++ static const char[] BARRAGE_DIR_NAME = "/usr/share/games/tumiki-fighters/barrage"; + + public static void loadBulletMLs() { + char[][] dirs = listdir(BARRAGE_DIR_NAME); +Index: tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/sound.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/util/sdl/sound.d 2007-09-08 19:38:19.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/sound.d 2007-09-08 19:39:10.000000000 +0000 +@@ -62,7 +62,7 @@ + public class Music: Sound { + public: + static int fadeOutSpeed = 1280; +- static char[] dir = "sounds/"; ++ static char[] dir = "/usr/share/games/tumiki-fighters/sounds/"; + private: + Mix_Music* music; + +@@ -122,7 +122,7 @@ + + public class Chunk: Sound { + public: +- static char[] dir = "sounds/"; ++ static char[] dir = "/usr/share/games/tumiki-fighters/sounds/"; + private: + Mix_Chunk* chunk; + int chunkChannel; +Index: tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/texture.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/util/sdl/texture.d 2007-09-08 19:38:19.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/texture.d 2007-09-08 19:39:10.000000000 +0000 +@@ -15,7 +15,7 @@ + */ + public class Texture { + public: +- static char[] imagesDir = "images/"; ++ static char[] imagesDir = "/usr/share/games/tumiki-fighters/images/"; + + private: + GLuint num; +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/enemyspec.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/enemyspec.d 2007-09-08 19:38:28.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/enemyspec.d 2007-09-08 19:39:10.000000000 +0000 +@@ -22,7 +22,7 @@ + float sizeXm, sizeXp, sizeYm, sizeYp; + private: + static EnemySpec[char[]] instances; +- static const char[] ENEMYSPEC_DIR_NAME = "enemy"; ++ static const char[] ENEMYSPEC_DIR_NAME = "/usr/share/games/tumiki-fighters/enemy"; + + // Initialize EnemySpec with the array. + // Tumiki file name(main), +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/field.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/field.d 2007-09-08 19:38:19.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/field.d 2007-09-08 19:39:10.000000000 +0000 +@@ -249,7 +249,7 @@ + float mtr, mtg, mtb; + float mrr, mrg, mrb; + private: +- static const char[] FIELD_DIR_NAME = "field"; ++ static const char[] FIELD_DIR_NAME = "/usr/share/games/tumiki-fighters/field"; + + // Initialize FieldPattern with the array. + // randSeed, scrollSpeed, +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/stagemanager.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/stagemanager.d 2007-09-08 19:38:19.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/stagemanager.d 2007-09-08 19:39:10.000000000 +0000 +@@ -171,7 +171,7 @@ + long randSeed; + int warningCnt; + private: +- static const char[] STAGE_DIR_NAME = "stage"; ++ static const char[] STAGE_DIR_NAME = "/usr/share/games/tumiki-fighters/stage"; + static int[char[]] posTypeStr; + + public static this() { +Index: tumiki-fighters-0.2.dfsg1/src/abagames/tf/tumikiset.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/tf/tumikiset.d 2007-09-08 19:39:18.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/tf/tumikiset.d 2007-09-08 19:39:24.000000000 +0000 +@@ -29,7 +29,7 @@ + float sizeXm, sizeXp, sizeYm, sizeYp, size; + private: + static TumikiSet[char[]] instances; +- static const char[] TUMIKI_DIR_NAME = "tumiki"; ++ static const char[] TUMIKI_DIR_NAME = "/usr/share/games/tumiki-fighters/tumiki"; + static const float BULLET_SPEED_RATIO = 1.2; + static int[char[]] shapeStr; + static char[][] SHAPE_STR = --- tumiki-fighters-0.2.dfsg1.orig/debian/patches/window-resizing.patch +++ tumiki-fighters-0.2.dfsg1/debian/patches/window-resizing.patch @@ -0,0 +1,34 @@ +# Copyright (C) 2007 Peter De Wachter +# Distributed under the same license as the game. See debian/copyright. + +Index: tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/screen3d.d +=================================================================== +--- tumiki-fighters-0.2.dfsg1.orig/src/abagames/util/sdl/screen3d.d 2007-09-08 17:35:30.000000000 +0000 ++++ tumiki-fighters-0.2.dfsg1/src/abagames/util/sdl/screen3d.d 2007-09-08 17:35:32.000000000 +0000 +@@ -23,6 +23,7 @@ + static bool windowMode = true; + static float nearPlane = 0.1; + static float farPlane = 1000; ++ static Uint32 videoFlags; + + private: + +@@ -36,7 +37,6 @@ + "Unable to initialize SDL: " ~ std.string.toString(SDL_GetError())); + } + // Create an OpenGL screen. +- Uint32 videoFlags; + if (windowMode) { + videoFlags = SDL_OPENGL | SDL_RESIZABLE; + } else { +@@ -56,6 +56,10 @@ + // Reset viewport when the screen is resized. + + public void screenResized() { ++ if (SDL_SetVideoMode(width, height, 0, videoFlags) == null) { ++ throw new Exception ++ ("Unable to resize SDL screen: " ~ std.string.toString(SDL_GetError())); ++ } + glViewport(0, 0, width, height); + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); --- tumiki-fighters-0.2.dfsg1.orig/debian/tumiki-fighters.desktop +++ tumiki-fighters-0.2.dfsg1/debian/tumiki-fighters.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Tumiki Fighters +GenericName= +Comment=Kenta Cho's Tumiki Fighters +Icon=tumiki-fighters.xpm +Exec=/usr/games/tumiki-fighters +Terminal=false +Categories=Game;ArcadeGame; --- tumiki-fighters-0.2.dfsg1.orig/debian/tumiki-fighters.install +++ tumiki-fighters-0.2.dfsg1/debian/tumiki-fighters.install @@ -0,0 +1,3 @@ +tumiki-fighters usr/games/ +debian/*.xpm usr/share/pixmaps/ +debian/*.desktop usr/share/applications/ --- tumiki-fighters-0.2.dfsg1.orig/debian/rules +++ tumiki-fighters-0.2.dfsg1/debian/rules @@ -0,0 +1,82 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + DFLAGS = -g -debug -d +else + CFLAGS += -O2 + DFLAGS = -O -release -d +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + $(MAKE) -f /usr/share/quilt/quilt.make patch + touch $@ + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + #ant -v + $(MAKE) CFLAGS="$(CFLAGS)" DFLAGS="$(DFLAGS)" + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + #ant -v clean + [ ! -f Makefile ] || $(MAKE) clean + rm -f tumiki-fighters + rm -f `find . -name "*.o"` + $(MAKE) -f /usr/share/quilt/quilt.make unpatch + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install + dh_installmenu + dh_installman debian/*.6 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +get-orig-source: + dh_testdir + dh_testroot + wget http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf0_2.zip + unzip tf0_2.zip + rm tf/*.dll + rm tf/*.exe + rm tf/lib/*.lib + rm tf/resource/*.RES + tar cvfz ../tumiki-fighters_0.2.dfsg1.orig.tar.gz tf + rm -rf tf0_2.zip tf + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source --- tumiki-fighters-0.2.dfsg1.orig/debian/tumiki-fighters.6 +++ tumiki-fighters-0.2.dfsg1/debian/tumiki-fighters.6 @@ -0,0 +1,79 @@ +.\" (c) 2007 Miriam Ruiz +.\" (c) 2004 Kenta Cho +.\" +.\" This document is free software; you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation; either version 2 of the License, or +.\" (at your option) any later version. +.\" +.\" This package is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this package; if not, write to the Free Software +.\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +.TH "Tumiki Fighters" "6" "" "" "" +.SH "NAME" +tumiki\-fighters \- sticky 2D shooter +.SH "DESCRIPTION" + +.SH "OPTIONS" +These options are available: +.TP +\fB\-brightness n\fR +Set the brightness of the screen.(n = 0 \- 100, default = 100) +.TP +\fB\-res x y\fR +Set ths screen resolution to (x, y). +.TP +\fB\-nosound\fR +Stop the sound. +.TP +\fB\-window\fR +Launch the game in a window. +.TP +\fB\-fullscreen\fR +Launch the game in fullscreen. +.TP +\fB\-reverse\fR +Reverse the shot key and the slow key. +.SH "USAGE" +How to play: +.TP +\fBMovement\fR +Arrow / Num / [WASD] / Joystick +.TP +\fBShot\fR +[Z][L\-Ctrl][.] / Trigger 1, 4, 5, 8 +.TP +\fBSlow/Pull in\fR +[X][L\-Alt][L\-Shift][/] / Trigger 2, 3, 6, 7 +.TP +\fBPause\fR +[P] +.P + +At the title screen, push a shot key to start the game. + +Control your ship and destroy enemies. +You can catch the enemy's broken piece. +Pieces are stuck to your ship and counterattack to enemies. +You can earn the bonus score by keeping many pieces stuck. +Stuck pieces are destroyed when they touch a enemy's bullet. + +While holding a slow key, the ship becomes slow and the ship direction is fixed. +Stuck pieces are pulled in and you can prevent a crash of them, but the bonus score reduces to one fifth. +Enemy's pieces are not stuck while holding this key. + +If you stick many pieces, enemies become more offensive and tend to fire more bullets. + +The ship is destroyed when it is hit by a bullet. +The body of the enemy has no collision damage. + +The ship extends at 200,000 and every 500,000 points. +.SH "SEE ALSO" +You can find more about the game on its homepage: http://www.asahi\-net.or.jp/~cs8k\-cyu/windows/tf_e.html +.SH "AUTHOR" +This game has been written by Kenta Cho --- tumiki-fighters-0.2.dfsg1.orig/debian/changelog +++ tumiki-fighters-0.2.dfsg1/debian/changelog @@ -0,0 +1,5 @@ +tumiki-fighters (0.2.dfsg1-1) unstable; urgency=low + + * Initial release (Closes: #439713) + + -- Miriam Ruiz Sat, 25 Aug 2007 19:58:40 +0000 --- tumiki-fighters-0.2.dfsg1.orig/debian/compat +++ tumiki-fighters-0.2.dfsg1/debian/compat @@ -0,0 +1 @@ +5 --- tumiki-fighters-0.2.dfsg1.orig/debian/tumiki-fighters.xpm +++ tumiki-fighters-0.2.dfsg1/debian/tumiki-fighters.xpm @@ -0,0 +1,44 @@ +/* XPM */ +static char *dummy[]={ +"32 32 9 1", +". c None", +"a c #00dc00", +"d c #0155ff", +"f c #b2c7fe", +"b c #b2fec7", +"# c #fcff01", +"g c #feb2c7", +"e c #ff0155", +"c c #ffffb1", +"................................", +"..............#..aaaaaaaaaaaaaa.", +".............##..abbbbbbbbbbbba.", +"............#c#..abbbbbbbbbbbba.", +"...........#cc#..abbbbbbbbbbbba.", +"..........#ccc#..abbbbbbbbbbbba.", +".........#cccc#..abbbbbbbbbbbba.", +"........#ccccc#..abbbbbbbbbbbba.", +".......#cccccc#..abbbbbbbbbbbba.", +"......#ccccccc#..abbbbbbbbbbbba.", +".....#cccccccc#..abbbbbbbbbbbba.", +"....#ccccccccc#..abbbbbbbbbbbba.", +"...#cccccccccc#..abbbbbbbbbbbba.", +"..#ccccccccccc#..abbbbbbbbbbbba.", +".##############..aaaaaaaaaaaaaa.", +"................................", +"................................", +".dddddddddddddd..eeeeeeeeeeeeee.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dffffffffffffd..egggggggggggge.", +".dddddddddddddd..eeeeeeeeeeeeee.", +"................................"};