Search found 5503 matches

by counting_pine
Jul 21, 2005 0:28
Forum: General
Topic: Delay Function? [Not Sleep]
Replies: 12
Views: 2353

Re: Alternative approach

Is it a realtime game? If so, here's a method I've use to great success. DO t# = TIMER ' All game handling routines go here ' ... ' ... DrawGame PageFlip ' If game handling took less than a 24th of a second, then hold on a moment DO: LOOP UNTIL TIMER > t# + .04 ' repeat until the user quits LOOP UN...
by counting_pine
Jul 20, 2005 19:27
Forum: General
Topic: Using BLOAD to to load BMPs as Sprites...
Replies: 6
Views: 1658

Yes, you're right. It is &HRRGGBB (big endian), although, in Visual Basic and QBASIC it's &HBBGGRR (little endian). Probably the easiest way to check is PRINT HEX$(RGB(0,0,255)) 'Blue In FB this gives FF, while in VB it gives FF0000. (In QB there is no RGB command, but red is...
by counting_pine
Jul 20, 2005 18:54
Forum: General
Topic: Delay Function? [Not Sleep]
Replies: 12
Views: 2353

I have to say, I'm not a big fan of the DO ... LOOP methods of adding a delay. Doesn't it put an unnecessary load on the CPU?
by counting_pine
Jul 19, 2005 14:14
Forum: General
Topic: Using BLOAD to to load BMPs as Sprites...
Replies: 6
Views: 1658

FB uses &HFF00FF as a "transparent" color in 16+ bit color modes ... does anyone know what this'd translate to in RGB values? &HFF00FF is magenta: FF 00 FF Red=255 (FF), Green=0 (00), Blue=255 (FF) I can never remember whether it's RRGGBB or BBGGRR, but in this case I guess it doesn't matter.
by counting_pine
Jul 15, 2005 12:56
Forum: Beginners
Topic: Let me make this clear...
Replies: 5
Views: 3188

Yes, just watch for the ocasional pothole;)
by counting_pine
Jul 15, 2005 12:24
Forum: General
Topic: Small request
Replies: 15
Views: 3058

I am likewise against non-standard bastardizations of this or any other language, and yes, there is a standard for BASIC. All you have to do is take any text editor and replace all occurences of ENDIF with END IF -- voila! Thanks everyone for all the suggestions on how I can continue to indulge in ...
by counting_pine
Jul 11, 2005 0:02
Forum: General
Topic: Small request
Replies: 15
Views: 3058

Thanks very much for the update, v1ctor!
I'll be looking forward to the new release.
by counting_pine
Jul 10, 2005 21:53
Forum: General
Topic: Small request
Replies: 15
Views: 3058

I did some tests by text-editing a couple of QBASIC programs: BC won't accept "?" as PRINT, it also won't accept "ENDTYPE" (nor does the QB IDE), but it will accept "ENDIF". Maybe we're using different versions? If ENDIF is added, then all the END ### constructions would have to, what would add yet-...
by counting_pine
Jul 10, 2005 21:12
Forum: General
Topic: PRINT bug?
Replies: 2
Views: 998

OK, thanks:)
by counting_pine
Jul 10, 2005 18:53
Forum: General
Topic: PRINT bug?
Replies: 2
Views: 998

PRINT bug?

Try the following code in FreeBASIC: PRINT "Hello"; PRINT , "World" On my computer (Windows XP), it produces "Hello%-14World". PRINT "Hello"; , "World" PRINT "Hello"; , PRINT "World" PRINT "Hello"; "", "World" ...
by counting_pine
Jul 10, 2005 16:39
Forum: General
Topic: Small request
Replies: 15
Views: 3058

Maybe, but I just thought: -It probably wouldn't be difficult to do, and I couldn't see any reason why not. -Unlike QBASIC, FBIde doesn't change your code as you type. If at a later date, FBIde starts including features for automatically adjusting case, spacing, "?"->"PRINT" conversions etc, I'd pro...
by counting_pine
Jul 10, 2005 14:19
Forum: General
Topic: Small request
Replies: 15
Views: 3058

Small request

FreeBASIC doesn't seem to recognise "ENDIF".
Would it be easy enough to get FreeBASIC to treat "ENDIF" the same way it supports "END IF"? BC seems to support both, and the QBASIC IDE will automatically put the space in.
Thanks
by counting_pine
Jul 10, 2005 12:12
Forum: Tips and Tricks
Topic: Complex number library
Replies: 8
Views: 5027

Couldn't CAbs be written as: FUNCTION CAbs(Z AS Complex) AS DOUBLE ' Modulus of Z CAbs=SQR(Z.X * Z.X + Z.Y * Z.Y) END FUNCTION or FUNCTION CAbs(Z AS Complex) AS DOUBLE IF Z.X=0 THEN CAbs=ABS(Z.Y) ELSEIF Z.Y=0 THEN CAbs=ABS(Z.X) ELSE CAbs=SQR(Z.X * Z.X + Z....

Go to advanced search