Article View: rec.games.programmer
Article #1898need SBP Faq and help.....
From: drew hartman
Date: Fri, 08 Jan 1993 15:58
Date: Fri, 08 Jan 1993 15:58
29 lines
1981 bytes
1981 bytes
First off, I just got a Sound Blaster Pro for christmas and was wondering if someone would email me, or at least tell me where to get it, the faq that tells how to program the sound blaster card. I remember seeing it here about 2 months or so ago. Now for the help part. I have a really wierd programing bug. I am writing my own version of BattleShip. I have always liked that game and have wanted to try my hand at moving graphics and serial communications. The code has grown quit large so I had to use the medium memroy model on my Turbo C compiler. I am using the medium model becuase the only memory that I am using right now is array to hold ship locations. I have not added any communications code to the program, and all the prgram does is place ships, according to the array and then wait for more instructions. I do have a moving sonar up in one corner. Now heres the problem. When I run the program full speed, (i.e. just like starting you favorite computer game), the program does not draw the 3rd ship. (I have 5 ships being drawn) I have written in the code a procedure which dumps the location array to a file every turn, and according to it, the 3rd ship is in there. Now, I narrowed the problem down to a single procedure and when I went to trace through the procedure, line by line, it worked just like its supposed to. I am completly baffled by this, And don't know what to do. Sorry for the lengthy description, and any help would be appreciated. Thanks Drew drh@unccsun.uncc.edu
Technical Details
Message-ID:
<1993Jan8.105900@unccsun.uncc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!unccsun.uncc.edu!drhShow Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!unccsun.uncc.edu!drh From: drh@unccsun.uncc.edu (drew hartman) Subject: need SBP Faq and help..... Message-ID: <1993Jan8.105900@unccsun.uncc.edu> Sender: usenet@unccsun.uncc.edu Nntp-Posting-Host: ws160.uncc.edu Reply-To: drh@unccsun.uncc.edu (drew hartman) Organization: University of NC at Charlotte Date: Fri, 8 Jan 1993 15:58:59 GMT Lines: 29