To simplify the use of certain functions, the file DIRECTQB.BI contains some useful constants. Here's the list: Constant name Value Can be used by ----------------------------------------------------------------------------- TRUE -1 General purpose, no specific function FALSE 0 General purpose, no specific function VIDEO 0 All the graphical functions that refer to a layer B0 &H8000 All graphical functions to refer to 1st base layer B1 &H8001 All graphical functions to refer to 2nd base layer B2..B9 &H8002-&H8009 All graphical functions to refer to base layers 3-10 BSV 0 DQBsaveLayer to specify to save in BSAVE format BMP 1 DQBsaveLayer to specify to save in BMP format PCX 2 DQBsaveLayer to specify to save in PCX format HOR 1 DQBmPut to draw horizontally flipped sprites VER 2 DQBmPut to draw vertically flipped sprites BIT.AND 1 DQBtPut to use AND bitwise operation between pixels BIT.OR 2 DQBtPut to use OR bitwise operation between pixels BIT.XOR 3 DQBtPut to use XOR bitwise operation between pixels BOX 0 DQBsetCollideMethod to set bounding box check PIXEL 1 DQBsetCollideMethod to set pixel-perfect check FORWARD 0 DQBrotatePal to rotate palette forward BACKWARD 1 DQBrotatePal to rotate palette backward CENTERED &H8000 DQBprint and DQBprints to center text on the screen NONE 0 DQBsetTextStyle, DQBprints to specify no styles SOLID 1 DQBsetTextStyle, DQBprints to specify solid style BOLD 2 DQBsetTextStyle, DQBprints to specify bold style ITALIC 4 DQBsetTextStyle, DQBprints to specify italic style UNDERLINED 8 DQBsetTextStyle, DQBprints to specify underlined st. BLENDED 16 DQBsetTextStyle, DQBprints to specify blended style TEXTURED 32 DQBsetTextStyle, DQBprints to specify textured style KEYANY -1 DQBplayFLI, DQBwaitKey to specify any key KEYESC 1 DQBkey to check the ESC key (see appendix B) KEYENTER 28 DQBkey to check the ENTER key (see appendix B) KEYSPACE 57 DQBkey to check the SPACE key (see appendix B) KEYUP 72 DQBkey to check the up arrow key (see appendix B) KEYDOWN 80 DQBkey to check the down arrow key (see appendix B) KEYLEFT 75 DQBkey to check the left arrow key (see appendix B) KEYRIGHT 77 DQBkey to check the right arrow key (see appendix B) UP 0 DQBjoyMove to check if the joystick is moved up DOWN 1 DQBjoyMove to check if the joystick is moved down LEFT 2 DQBjoyMove to check if the joystick is moved left RIGHT 3 DQBjoyMove to check if the joystick is moved right JOY1 0 All the joystick routines to refer to joystick 1 JOY2 1 All the joystick routines to refer to joystick 2 GAMEPAD 2 All the joystick routines to refer to 4-buttons joys BUTA 0 DQBjoyFire to check if joystick button A is pressed BUTB 1 DQBjoyFire to check if joystick button B is pressed BUTC 2 DQBjoyFire to check if gamepad button C is pressed BUTD 3 DQBjoyFire to check if gamepad button D is pressed AUTO -1 DQBinstallSB to autodetect the soundcard settings ONCE 0 DQBplaySound to play a sound once LOOPED 1 DQBplaySound to play a sound repeatedly ATTRIB.R &H1 DQBdir$ attribute to search for read-only files ATTRIB.H &H2 DQBdir$ attribute to search for hidden files ATTRIB.S &H4 DQBdir$ attribute to search for system files ATTRIB.L &H8 DQBdir$ attribute to search for volume labels ATTRIB.D &H10 DQBdir$ attribute to search for directories ATTRIB.A &H20 DQBdir$ attribute to search for archive files