Search found 416 matches

by Ophelius
Apr 05, 2006 0:21
Forum: Projects
Topic: AFlib2 Preview.
Replies: 160
Views: 53577

I've got a suggestion: A lot of the sprite routines don't offer the luxery of asking for a buffer pointer. I've checked out the code and you're assigning the 'SCREENPTR' as the buffer inside the routine. I think that the routines should ask for the buffer, and if people want to use the default graph...
by Ophelius
Apr 04, 2006 23:28
Forum: Projects
Topic: AFlib2 Preview.
Replies: 160
Views: 53577

Nicely done!
by Ophelius
Apr 03, 2006 22:04
Forum: General
Topic: Okay...
Replies: 33
Views: 4832

You should learn about modular programming. Your code is what's known as spaghetti code. Using GOTO's the way you're doing is very confusing and can cause a lot of unexpected problems.
by Ophelius
Apr 03, 2006 19:27
Forum: Projects
Topic: testing needed for my game...
Replies: 24
Views: 4694

The engine is still young. It only supports one layer for now, no object handling, etc. The bg flickering is a problem related to winXP. I tried it on Win98 and it's flicker free. The shadow for now uses a fake transparency technique that switches a solid color sprite on and off, creating a transpar...
by Ophelius
Apr 03, 2006 19:06
Forum: General
Topic: Okay...
Replies: 33
Views: 4832

post your code. It could also be a stack issue.
by Ophelius
Apr 03, 2006 19:03
Forum: Projects
Topic: testing needed for my game...
Replies: 24
Views: 4694

testing needed for my game...

I'm develloping a vertical shooter and it's starting to show progress. Here's the link: http://www.geocities.com/juice801980/shooter.zip Please let me know if you see anything that could be improved in the code, physics etc. Please note that the artwork is temporarily being ripped from raiden. Origi...
by Ophelius
Apr 02, 2006 3:36
Forum: Projects
Topic: Here's my life-simulator in 3D written in fb (5GB download!)
Replies: 6
Views: 2703

i don't think he meant John Conway's Game of life. He meant a simulation of real life. That would probably take that size of code if it's at all achievable.
by Ophelius
Apr 02, 2006 3:32
Forum: General
Topic: Memory leak or something... [solved]
Replies: 6
Views: 934

when declare dynamic arrays with DIM, you have to use '$dynamic. Otherwise, use redim. Also, but I'm not sure, i think you need to include a dimension for the initial declaration. I always use '1 TO 1', or 0 '$DYNAMIC DIM AS INTEGER MyArray(1 TO 1) or REDIM AS INTEGER MyArray(1 to 1)...
by Ophelius
Apr 01, 2006 23:40
Forum: Beginners
Topic: #COMPILE option?
Replies: 9
Views: 1556

make yourself some batch files
by Ophelius
Apr 01, 2006 21:25
Forum: Beginners
Topic: Distance calculation.
Replies: 16
Views: 2693

Here are a couple dist functions I am using: Function CalcDist(x1 As Integer, x2 As Integer, y1 As Integer, y2 As Integer) As Integer dim as integer xdiff, ydiff xdiff = Abs(x1 - x2) ydiff = Abs(y1 - y2) If xdiff >= ydiff Then Return xdiff If ydiff >= xdiff Then Return ydiff...
by Ophelius
Apr 01, 2006 19:52
Forum: General
Topic: FB in win95
Replies: 3
Views: 1163

hmm, i check out the gfxlib docs and came across this: DirectX This driver is based on DirectDraw and DirectInput; it'll work on any system that has already at least DirectX 3.0 installed. Windows 98 is the minimum OS requirement; if you have Windows 95 this is not guaranteed to work. I installed di...
by Ophelius
Apr 01, 2006 17:35
Forum: General
Topic: FB in win95
Replies: 3
Views: 1163

FB in win95

I'm doing some tests on a computer with Windows 95. FB won't let me run my program in fullscreen on any of the resolutions. Is it because I'm using Win95, or is it my video card? It has an onboard Intel 810, 8 meg chip with the proper drivers installed. Anyone?
by Ophelius
Apr 01, 2006 17:27
Forum: Beginners
Topic: Distance calculation.
Replies: 16
Views: 2693

remember that the best place to place Screensync is right before you draw the final frame. Take this psudo-code example: SUB Mainloop () DO Clear screen buffer Update stuff update more stuff draw stuff to screen buffer draw more stuff SCREENSYNC display screen buffer LOOP END SUB
by Ophelius
Apr 01, 2006 17:19
Forum: Beginners
Topic: Distance calculation.
Replies: 16
Views: 2693

Re: Distance calculation.

Calmatory wrote:Also, how do i calulate the angle of a line bethween xy and x1y1?


Code: Select all


                B
               /|
     AB     /   |
         /      |  <- BC
      /         |
    A-----------C
           AC


Angle A = ArcSin(BC/AB)
Angle B = ArcSin(AC/AB)
by Ophelius
Apr 01, 2006 17:13
Forum: Beginners
Topic: Distance calculation.
Replies: 16
Views: 2693

Re: Distance calculation.

Almost forgot: What is the best way of keeping the program at same on all computers? I have been using delays, but it isnt really accurate enough usually Use Screensync. What it does is wait until the ray gun in you monitor is finished drawing a frame before continuing, so your program will run at ...

Go to advanced search