Search found 2977 matches

by vdecampo
Aug 30, 2016 18:52
Forum: Projects
Topic: Berzerk 2.0 (Beta Release 0.9.0)
Replies: 19
Views: 3496

Re: Berzerk 2.0 (Beta Release 0.9.0)

Updated download link in original post.

-Vince
by vdecampo
Aug 30, 2016 18:47
Forum: Projects
Topic: Asteroids Remake
Replies: 27
Views: 2766

Re: Asteroids Remake

Updated download link in original post.

-Vince
by vdecampo
Aug 15, 2016 19:37
Forum: General
Topic: Ctrl-ArrowUp/Down/Home/end
Replies: 17
Views: 682

Re: Ctrl-ArrowUp/Down/Home/end

[quote="Jawade"]Thanks, but it do not do what I mean. Look at mij program, it is not good but you can see what I mean. The Ctrl-keys have to react lijke the non-Ctrl keys.
[code]

Well you are free to modify my code to work as you like.

-Vince
by vdecampo
Aug 15, 2016 19:30
Forum: General
Topic: Ctrl-ArrowUp/Down/Home/end
Replies: 17
Views: 682

Re: Ctrl-ArrowUp/Down/Home/end

Now with adjustable repeat rate... #Include "fbgfx.bi" Using FB Enum KeyModifiers NONE = 0, CTRL = 1, ALT = 2 End Enum Function KeyPress(ByRef key As Integer, ByRef modifier As Integer) As Integer Dim As double repeatwait = .3 Static lastkey As Integer Static lastmodifier As Integer Static...
by vdecampo
Aug 15, 2016 16:08
Forum: General
Topic: Ctrl-ArrowUp/Down/Home/end
Replies: 17
Views: 682

Re: Ctrl-ArrowUp/Down/Home/end

This provides single key-press functionality... #Include "fbgfx.bi" Using FB Enum KeyModifiers NONE = 0, CTRL = 1, ALT = 2 End Enum Function KeyPress(ByRef key As Integer, ByRef modifier As Integer) As Integer Static lastkey As Integer Static lastmodifier As Integer modifier = KeyModifiers...
by vdecampo
Aug 15, 2016 13:42
Forum: General
Topic: Ctrl-ArrowUp/Down/Home/end
Replies: 17
Views: 682

Re: Ctrl-ArrowUp/Down/Home/end

#Include "fbgfx.bi" Using FB Do If MultiKey(SC_CONTROL) Then If MultiKey(SC_UP) Then Print "CTRL-UP" EndIf If MultiKey(SC_DOWN) Then Print "CTRL-DOWN" EndIf If MultiKey(SC_LEFT) Then Print "CTRL-LEFT" Endif If MultiKey(SC_RIGHT) Then Print "CTRL-RIGHT&qu...
by vdecampo
Aug 15, 2016 13:28
Forum: General
Topic: Ctrl-ArrowUp/Down/Home/end
Replies: 17
Views: 682

Re: Ctrl-ArrowUp/Down/Home/end

Tested on Windows 10 #Include "fbgfx.bi" Using FB Do If MultiKey(SC_UP) Then Print "UP" EndIf If MultiKey(SC_DOWN) Then Print "DOWN" EndIf If MultiKey(SC_LEFT) Then Print "LEFT" Endif If MultiKey(SC_RIGHT) Then Print "RIGHT" EndIf loop Until InKey=Ch...
by vdecampo
Aug 10, 2016 19:21
Forum: Libraries
Topic: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)
Replies: 187
Views: 42220

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

I was hoping to hear from vdecampo or chung as they were both people who expressed a desire to see the library work on newer compilers. Initial tests compile and run. I haven't had much time to try to update my game with the latest version to make sure everything works. I'll keep you updated. Thank...
by vdecampo
Aug 10, 2016 19:12
Forum: Beginners
Topic: How can i use RadASM for freeBasic ?
Replies: 2
Views: 314

Re: How can i use RadASM for freeBasic ?

Download FBEdit. It is designed for FreeBASIC and looks just like RadASM.

-Vince
by vdecampo
Aug 10, 2016 12:56
Forum: Beginners
Topic: How to make a dll file in freeBasic to work with VB.NET
Replies: 3
Views: 405

Re: How to make a dll file in freeBasic to work with VB.NET

I don't use VB.NET but I do use C#. I successfully created a FB DLL and used it through a C# application. Have a look at the C# portion of this post where I declare the DLLs. Perhaps it is similar to the way VB.NET imports functions.

FBGfx for C#

-Vince
by vdecampo
Aug 09, 2016 17:32
Forum: Tips and Tricks
Topic: 32bit Random Color Macro
Replies: 10
Views: 423

Re: 32bit Random Color Macro

@vdecompo, not certain, because it doesn't assure the minimum RGBA() of &hFF000000 ... (alpha set to 'opaque'). Secondly, Color is: either ULong or UInteger<32>, always (any compiler version, 32/64). UInteger wastes 4 Bytes (every instance) on FBC 64! (For no benefit at all.) Randomize Dim As U...
by vdecampo
Aug 09, 2016 17:00
Forum: General
Topic: Can not get a double buffering working well with thread (solved)
Replies: 43
Views: 1169

Re: Can not get a double buffering (flip screen) working well with a thread

St_W wrote:I don't know, but maybe compiling with "-mt" (to use the threadsafe versions of gfxlib2 and fbrt: libfbgfxmt.a and libfbmt.a resp.) may help.


The -mt switch is set by default.

-Vince
by vdecampo
Aug 09, 2016 16:56
Forum: Tips and Tricks
Topic: 32bit Random Color Macro
Replies: 10
Views: 423

Re: 32bit Random Color Macro

Doesn't this work?

Code: Select all

Randomize
Dim As UInteger rclr = &hFFFFFF*Rnd


-Vince
by vdecampo
Aug 09, 2016 13:44
Forum: General
Topic: Can not get a double buffering working well with thread (solved)
Replies: 43
Views: 1169

Re: Can not get a double buffering (flip screen) working well with a thread

This has been discussed numerous times on the forum. FBGFX is not thread safe and all calls to it (as well as Image manipulation) should occur on the main thread.

-Vince
by vdecampo
Aug 08, 2016 12:41
Forum: Tips and Tricks
Topic: 'dirExists' function ;)
Replies: 7
Views: 679

Re: 'dirExists' function ;)

Why not just...

Code: Select all

#Include "dir.bi"

Function DirExists(path As String) As Integer
   Return Dir(path,fbDirectory) <> ""
End Function


Returns TRUE or FALSE

-Vince

Go to advanced search