#define __ZCROLL16_H_\r
\r
#include "src/lib/16_head.h"\r
+#include "src/lib/16_entity.h"\r
//#include "src/lib/bakapee.h"\r
- #include "src/lib/modex16.h"\r
+ #include "src/lib/16_vl.h"\r
//#include "src/lib/16_in.h"\r
#include "src/lib/bitmap.h"\r
#include "src/lib/16_map.h" //map is loaded here www\r
# objects
#
VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
- GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) zcroll16.$(OBJ) 16render.$(OBJ) 16_vrs.$(OBJ) 16_sprit.$(OBJ)
- 16LIBOBJS = 16_mm.$(OBJ) 16_pm.$(OBJ) 16_ca.$(OBJ) 16_tail.$(OBJ) 16_in.$(OBJ) 16_head.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) wcpu.$(OBJ) 16_timer.$(OBJ)
+ OLDLIBOBJS=bitmap.$(OBJ) mapread.$(OBJ) 16render.$(OBJ)
+ GFXLIBOBJS = 16_vl.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16_vrs.$(OBJ) 16_sprit.$(OBJ) $(OLDLIBOBJS)
+ 16LIBOBJS = 16_mm.$(OBJ) 16_pm.$(OBJ) 16_ca.$(OBJ) 16_tail.$(OBJ) 16_in.$(OBJ) 16_head.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) wcpu.$(OBJ) 16_timer.$(OBJ) jsmn.$(OBJ)
-####++++ 16_map.$(OBJ)
#16planar.$(OBJ) planar.$(OBJ)
DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
!ifeq DEBUGSERIAL 1
//\r
///////////////////////////////////////////////////////////////////////////\r
void near\r
-IN_ReadControl(int pn,player_t *player)\r
+IN_ReadControl(player_t *player)\r
{\r
boolean realdelta;\r
+ #if DEMO0\r
byte dbyte;\r
+ #endif\r
word buttons;\r
int dx,dy;\r
Motion mx,my;\r
*\r
*/\r
\r
-#include "src/lib/scroll16.h"\r
+#include "src/lib/zcroll16.h"\r
#include "src/lib/16_timer.h"\r
#include "src/lib/wcpu/wcpu.h"\r
+ #include "src/lib/16render.h"\r
\r
-//word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
-//bitmap_t *p;\r
global_game_variables_t gvar;\r
static map_t map;\r
-player_t player[MaxPlayers];\r
-map_view_t mv[4];\r
-//word pn=0; //i forgot ww\r
+player_t *player;\r
+map_view_t *mv;\r
float t;\r
sword bakapee;\r
pan_t pan;\r
\r
Startup16(&gvar);\r
\r
- pan.pn=1;\r
+ pan.pn=0;\r
++ // OK, this one takes hellova time and needs to be done in farmalloc or MM_...\r
+ player = malloc(sizeof(player_t));\r
+ player->ent = malloc(sizeof(entity_t));\r
+ player->ent->spri = malloc(sizeof(struct sprite));\r
+ player->ent->spri->spritesheet = malloc(sizeof(struct vrs_container));\r
\r
- /* create the map */\r
+ // create the map \r
fprintf(stderr, "testing map load~ ");\r
loadmap("data/test.map", &map);\r
chkmap(&map, 0);\r