Search found 2977 matches

by vdecampo
Aug 10, 2007 4:02
Forum: Tips and Tricks
Topic: CPU independent code timing
Replies: 8
Views: 2311

Maybe it can! :-) Not sure how accurate this is between platforms though.... *This version should cross compile. ' TimeSlice - by Vincent DeCampo 2007 ' Free to use and distribute. ' Feel free to mention me! :-) ' ' No Warranties given or implied ' Use at own risk #include "windows.bi"...
by vdecampo
Aug 10, 2007 1:37
Forum: Beginners
Topic: Using New to create a new type
Replies: 6
Views: 1203

I would do this... Type Employee fname AS String lname AS String End Type Dim p(5) as Employee p(0).fname = "Akua Asamoah" print p(0).fname I didn't actually compile this but I think its correct. PS: I don't think this is the correct forum to post questions. :-) -Vince
by vdecampo
Aug 10, 2007 0:02
Forum: Tips and Tricks
Topic: CPU independent code timing
Replies: 8
Views: 2311

I believe the only thing that makes this Win32 only is this call... Declare Function GetTickCounter Lib "kernel32" Alias "GetTickCount" () As Integer I don't use anything other than Windows but I image you could substitute an equivalent function here and should work on any OS. :-) Cheers!
by vdecampo
Aug 09, 2007 23:43
Forum: Tips and Tricks
Topic: CPU independent code timing
Replies: 8
Views: 2311

CPU independent code timing

I just recently started using FreeBASIC and wanted to start contributing to the community. Here is some code which shows how I limit sections of code execution to a certain # of times per second. I use this code to limit sprite animations and sometimes my entire game loop. Hope someone finds this us...
by vdecampo
Aug 09, 2007 21:31
Forum: Projects
Topic: FbEdit
Replies: 961
Views: 126463

If not for FBEdit I would not have even tried FreeBASIC. I have just recently started using FreeBASIC(4 weeks) and I love it, but the FBEdit is what I'm used to from VB.

Thanks to both FreeBASIC and FBEdit!
by vdecampo
Aug 08, 2007 1:10
Forum: Game Dev
Topic: Screen Memory
Replies: 3
Views: 2467

Ok. I changed my internal BackBuffer to 32bits and everything displays fine. Now the question becomes.... Why does this code.... ScreenRes 800, 600, 24, 2 result in a bit depth of 32 bits? According to the documentation, I should get a 24bpp screen but this is not the case. Also, is there a way to r...
by vdecampo
Aug 07, 2007 23:37
Forum: Game Dev
Topic: Screen Memory
Replies: 3
Views: 2467

Screen Memory

Hello, I am new to FreeBasic but not programming. I have been re-coding a gaming engine and I have encountered a curious problem. I use internal DIBs to hold all my sprite animations and graphics. (I use this instead of the GFX library because (1. I am more comfortable with them, 2. I can use all th...

Go to advanced search