Search found 1299 matches

by paul doe
Mar 03, 2021 1:36
Forum: Documentation
Topic: String index doc
Replies: 42
Views: 778

Re: String index doc

With everything I added in this doc page, I think I'm listening a bit to comments and suggestions, even a little to the detriment of concision. I think you're overdoing it: it's a waste of valuable time, as you're probably aware by now. Just let this thread die if locking it is going to shatter som...
by paul doe
Mar 02, 2021 15:13
Forum: Documentation
Topic: String index doc
Replies: 42
Views: 778

Re: String index doc

... What bothers me here is not only the incoherent (and IMHO plain wrong) language but also the attempt to use C/C++ jargon for something that has been used in BASIC, successfully and without any ambiguity, for half a century or so: ... The [] operator (which alas, wasn't available half a century ...
by paul doe
Feb 24, 2021 16:15
Forum: Beginners
Topic: Function or subroutine?
Replies: 9
Views: 223

Re: Function or subroutine?

Code: Select all

type RetValue
  as ulongint foo( 0 to 34 )
  as long bar( 0 to 2 )
end type

function DoSomething() as RetValue
  dim as RetValue result
 
  '' Fill in the values
 
  return( result )
end function

var r = DoSomething()

sleep()
by paul doe
Feb 18, 2021 10:13
Forum: Tips and Tricks
Topic: getjoystick() demo
Replies: 3
Views: 240

Re: getjoystick() demo

Looking really nice. Did anyone else tried this?
by paul doe
Feb 18, 2021 9:42
Forum: General
Topic: Dodicat Zlib
Replies: 29
Views: 1019

Re: Dodicat Zlib

... So I'm no longer going to post compression code... I don't want to get banned again.. ... Technically, you never did. All you posted was code that destroyed the original data in more or less half-witted ways (so it could not be 'decompressed'). Stop wasting your time and just use this code inst...
by paul doe
Feb 07, 2021 14:44
Forum: Game Dev
Topic: An attempt to create a first person adventure game engine
Replies: 38
Views: 1079

Re: An attempt to create a first person adventure game engine

Wouldn't it be nice to have mouse navigation? Like, you point with your mouse at an exit, and clicking would take you there. Like the adventure games of yore...
by paul doe
Feb 07, 2021 9:40
Forum: Game Dev
Topic: cat class
Replies: 5
Views: 196

Re: cat class

But when I remove the shared they are no longer seen within the update and display routines. ... Precisely the point. ... So do I display everything in the main loop as shown below? ... #include once "fbgfx.bi" enum CatState Sitting Sleeping Playing Eating Purring Drinking end enum type C...
by paul doe
Feb 06, 2021 9:59
Forum: Libraries
Topic: raylib headers
Replies: 83
Views: 8048

Re: raylib headers

c-sanchez wrote:...
Thanks by makye this, can you or someone share some freebasic code examples with raygui here?

I've already ported some examples in the examples folder. Check them out.
by paul doe
Jan 28, 2021 20:56
Forum: Community Discussion
Topic: My_basic interpreter
Replies: 21
Views: 1084

Re: My_basic interpreter

... WOW..that is complications It's a simple way to implement the instruction dispatcher: type as function() as long INSTRUCTION function foo() as long ? "Foo" return( 1 ) end function function bar() as long ? "Bar" return( 1 ) end function function baz() as long ? "Baz&quo...
by paul doe
Jan 26, 2021 3:47
Forum: Beginners
Topic: strings using []
Replies: 9
Views: 392

Re: strings using []

Dim UpperLabel as zstring*247 dim Text as zstring*2 '' <- zstrings have a zero char at the end, so you need one char more Dim Index as uByte Dim AscChar as uByte dim Label as string Dim Text1 as string input "enter lower case text only = ";UpperLabel For Index = 0 to len(UpperLabel) - 1 T...
by paul doe
Jan 24, 2021 21:53
Forum: Game Dev
Topic: looking for partner(s) to geme-dev together
Replies: 29
Views: 1771

Re: looking for partner(s) to geme-dev together

... it's just an idea i thought of and it's not original - being original is hard when just about everything you think of has already been done... ... The solution for this is simple, but as hard as coming with a new idea: be original on the execution , not just the idea. About the other idea: I wo...
by paul doe
Jan 24, 2021 21:42
Forum: Libraries
Topic: raylib headers
Replies: 83
Views: 8048

Re: raylib headers

@BasicCoder2: Go to C:/FreeBasic/lib/win32 (on your HDD) and delete the file libraylib.a as a first step. The linker is trying to link against an older static build of raylib, that you yourself placed in that folder, for whatever reason. Then, try to compile an example again, with the Win32 DLL on t...
by paul doe
Jan 24, 2021 15:28
Forum: Libraries
Topic: raylib headers
Replies: 83
Views: 8048

Re: raylib headers

... But when I try and compile I get this: https://i.postimg.cc/DyzcQQh3/messages.jpg You can see, from your picture, that the linker is trying to link to an older version of the lib, which you placed in its 'libs' folder, NOT the actual DLL. Remove whatever you have in the fbc 'libs' folder and tr...
by paul doe
Jan 24, 2021 13:18
Forum: Libraries
Topic: raylib headers
Replies: 83
Views: 8048

Re: raylib headers

@mrToad: thanks. Be sure to check from time to time, as I'm still porting examples. The last thing I'll port will be the rlgl headers, so we can have all of raylib ported. @BasicCoder2: ok, let's go step by step here, to shave some weeks from your steep learning curve. I'm going to assume that you a...
by paul doe
Jan 23, 2021 21:36
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30409

Re: FreeBASIC 1.08 Development

Whichever one is fine with me as long as the constant is immediately readable. This can also be extended for other hard limits, such as array indices, string length and array dimensions, say.

Go to advanced search