]> 4ch.mooo.com Git - 16.git/commitdiff
><
authorsparky4 <sparky4@cock.li>
Tue, 3 Nov 2015 17:27:12 +0000 (11:27 -0600)
committersparky4 <sparky4@cock.li>
Tue, 3 Nov 2015 17:27:12 +0000 (11:27 -0600)
16.exe
exmmtest.exe
planrpcx.exe
scroll.exe
src/lib/scroll16.c
src/lib/scroll16.h
test.exe

diff --git a/16.exe b/16.exe
index 4d0458f0aa17ee017fd6a089169a7f569dc90386..406511f82a92c3104f0f968390b149bca7bd85c2 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index 2c8bcd99b54ea7c14236402bfb04ea4e4dbb29da..03c0547f89eb204aa638dca477a552d64db6373a 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index f0c036a4b23e6e13d2e7f6fb8be34dae93887ae1..9bf6ef2678f736ea8103bd895d5ec4be2478ee6b 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index e9a7f35bb45f7b7eee170d0656c556dcdc6719f4..ec59343c906dc166d2eb0f75f2242673424d7bcd 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index cc3bf84326cd73a47a5347992ced2d3fe6669d92..14680260ebd0169f008db443e422a4283161caf0 100755 (executable)
@@ -60,7 +60,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               modexDrawSpritePBufRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 24, 32, &player[pn].data);
+                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 14);
 #endif
@@ -101,7 +101,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               modexDrawSpritePBufRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 96, 24, 32, &player[pn].data);
+                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 96, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 10);
 #endif
@@ -142,7 +142,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               modexDrawSpritePBufRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 64, 24, 32, &player[pn].data);
+                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 64, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 9);
 #endif
@@ -183,7 +183,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               modexDrawSpritePBufRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 0, 24, 32, &player[pn].data);
+                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 0, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 12);
 #endif
@@ -661,10 +661,10 @@ void near animatePlayer(map_view_t *pip, player_t *player, word playnum, sword s
        }
 
 #ifdef SPRITE
-#define FRAME1 modexDrawSpritePBufRegion(pip[1].page, x, y, 48, dire, 24, 32, &player[playnum].data);
-#define FRAME2 modexDrawSpritePBufRegion(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
-#define FRAME3 modexDrawSpritePBufRegion(pip[1].page, x, y, 0, dire, 24, 32, &player[playnum].data);
-#define FRAME4 modexDrawSpritePBufRegion(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
+#define FRAME1 PBUFFUN(pip[1].page, x, y, 48, dire, 24, 32, &player[playnum].data);
+#define FRAME2 PBUFFUN(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
+#define FRAME3 PBUFFUN(pip[1].page, x, y, 0, dire, 24, 32, &player[playnum].data);
+#define FRAME4 PBUFFUN(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
 #else
 #define FRAME1 modexClearRegion(pip[1].page, x, y, 24, 32, 2+dire);
 #define FRAME2 modexClearRegion(pip[1].page, x, y, 24, 32, 1+dire);
index b1b8a7453cd54da1b27f2b0803a64d42f0ab0a5e..4ec26e9a91ad1cdf9768f17d178752821649579a 100755 (executable)
@@ -34,7 +34,8 @@
 #include "src/lib/wcpu/wcpu.h"
 
 #define SPRITE
-#define TILERENDER
+#define PBUFFUN modexDrawBmpPBufRegion
+//#define TILERENDER
 
 typedef struct {
        map_t *map;
index e52ed8bb1de4f721b06ea37ddbd3c105c41b2579..7f1b675fbf73e66ce5baa6896ef82bc81fd32922 100755 (executable)
Binary files a/test.exe and b/test.exe differ