[SDL] XKobo?

Thomas Lund thomas at trylleskoven.dk
Thu Aug 16 13:05:02 PDT 2001


Yeah!

I had the same idea since xkobo is a fantastic game. I tried to contact the
author approx 4 month ago, but no luck at all.

I started the port, but did not get far (ran out of time). If you want I can
help if you have time to drive the project.

/Thomas

----- Original Message -----
From: "David Olofson" <david.olofson at reologica.se>
To: <sdl at libsdl.org>
Sent: Thursday, August 16, 2001 6:10 PM
Subject: [SDL] XKobo?



Hi!


I just happened to find the incredibly addictive game 'XKobo' on the
Mandrake 8.0 distro. I quickly realized that fullscreen support,
(digital) joystick support, sound effects and maybe some transition
effects and other chrome could make this game a perfect retro gaming hit!

Now I'm looking for the author, Akira Higuchi, newer versions (anyone
seen a newer one than 1.9?), ports etc.

In particular, I'm wondering if anyone have considered porting it to SDL,
or maybe already done it? If not; anyone interested in helping out?


Anyway, download! :-) (If you have some Un*x-like OS and X, that is.)

http://happypenguin.org/show?XKobo


(The following patch may help with modern, "picky" compilers.)

---8<---------------------------------------------------------------------
diff -u xkobo-1.9/file.C xkobo-1.9-fixed/file.C
--- xkobo-1.9/file.C Sat Apr  6 00:18:26 1996
+++ xkobo-1.9-fixed/file.C Thu Aug 16 17:47:25 2001
@@ -29,8 +29,9 @@
 #include <errno.h>
 }

-int load_block(char *file_name, void *t, int len)
+int load_block(char *file_name, void *_t, int len)
 {
+    char *t = (char *)_t;
     int i, fd, ret = len;

     fd = open(file_name, O_RDONLY, 0);
@@ -51,8 +52,9 @@
     return ret;
 }

-int save_block(char *file_name, void *t, int len)
+int save_block(char *file_name, void *_t, int len)
 {
+    char *t = (char *)_t;
     int i, fd, ret = len;

     fd = creat(file_name, 0644);
diff -u xkobo-1.9/map.h xkobo-1.9-fixed/map.h
--- xkobo-1.9/map.h Wed Apr  3 23:58:52 1996
+++ xkobo-1.9-fixed/map.h Thu Aug 16 17:44:43 2001
@@ -38,10 +38,10 @@
 #define HIT_MASK       (CORE | U_MASK | R_MASK | D_MASK | L_MASK)

 class _map{
-    const int sx_log2 = MAP_SIZEX_LOG2;
-    const int sy_log2 = MAP_SIZEY_LOG2;
-    const int sx = 1 << sx_log2;
-    const int sy = 1 << sy_log2;
+    static const int sx_log2 = MAP_SIZEX_LOG2;
+    static const int sy_log2 = MAP_SIZEY_LOG2;
+    static const int sx = 1 << sx_log2;
+    static const int sy = 1 << sy_log2;
     int sitex[SITE_MAX];
     int sitey[SITE_MAX];
     int site_max;
diff -u xkobo-1.9/xkobo.C xkobo-1.9-fixed/xkobo.C
--- xkobo-1.9/xkobo.C Sat Apr  6 04:17:24 1996
+++ xkobo-1.9-fixed/xkobo.C Thu Aug 16 17:43:25 2001
@@ -51,7 +51,7 @@

 static int      signal_delivered = 1;

-static void sig_handle(...)
+static void sig_handle(int)
 {
     signal_delivered = 1;
 }
--------------------------------------------------------------------->8---


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david at linuxdj.com -'

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl






More information about the SDL mailing list