\r
#include <string.h>\r
#include "src/lib/16_head.h"\r
-#include "src/lib/timer.h"\r
+#include "src/lib/16_timer.h"\r
#include "src/lib/bitmap.h"\r
#include "src/lib/planar.h"\r
\r
//#define TESTCONTROLNOISY\r
#endif\r
\r
-static word testkeyin,testcontrolnoisy;\r
+extern byte testkeyin,testcontrolnoisy;\r
+\r
+//if else for gfxtesting and direction\r
+//player[pn].d == 2 ||\r
+//player[pn].d != 2 ||\r
+#define DIRECTIONIFELSE (player[pn].info.dir == 2)\r
+//#define NDIRECTIONIFELSE (player[pn].info.dir != 2)\r
\r
#define KeyInt 9 // The keyboard ISR number\r
\r
int triggery; //player's trigger box tile position on the viewable map\r
int sheetsetx; //NOT USED YET! player sprite sheet set on the image x\r
int sheetsety; //NOT USED YET! player sprite sheet set on the image y\r
- word d; //direction!! wwww\r
- word q; //loop variable\r
+ byte d; //direction to render sprite!! wwww\r
+ byte q; //loop variable for anumation and locking the playing to compleate the animation cycle to prevent issues with misalignment www\r
+ byte near pdir; //previous direction~\r
+ //byte near kd[2]; //array of arrow key pressed\r
word speed; //player speed!\r
+//0000 planar_buf_t huge *data; //supposively the sprite sheet data\r
// planar_buf_t data; //supposively the sprite sheet data\r
-// bitmap_t data; //supposively the sprite sheet data\r
+////0000----\r
+ bitmap_t huge *data; //supposively the sprite sheet data\r
sword hp; //hitpoints of the player\r
int persist_aniframe; /* gonna be increased to 1 before being used, so 0 is ok for default */\r
CursorInfo info;\r
extern void IN_ClearKeysDown();\r
//static void INL_AdjustCursor(CursorInfo *info,word buttons,int dx,int dy);\r
extern void IN_ReadCursor(CursorInfo *info);\r
-extern void near IN_ReadControl(int playnum,player_t *player);\r
-extern void IN_SetControlType(word playnum,player_t *player,ControlType type);\r
+extern void near IN_ReadControl(int pn,player_t *player);\r
+extern void IN_SetControlType(word pn,player_t *player,ControlType type);\r
#if DEMO0\r
extern boolean IN_StartDemoRecord(word bufsize);\r
extern void IN_StartDemoPlayback(byte /*__segment*/ *buffer,word bufsize);\r