Search found 1251 matches

by paul doe
Nov 30, 2020 11:28
Forum: Beginners
Topic: [HELP] KNN code doesn't work
Replies: 68
Views: 2374

Re: [HELP] KNN code doesn't work

Have you checked the validity of the dataset? Doesn't seems like so to me... TYPE pt dim AS DOUBLE l(any) DIM AS Ulong colour END TYPE dim as string token DIM p(any) AS pt dim as integer pos1 = 1, pos2 DIM fline AS STRING DIM f AS INTEGER = FREEFILE() OPEN "iris.csv" FOR INPUT AS f ? "...
by paul doe
Nov 30, 2020 11:00
Forum: Community Discussion
Topic: FreeBasic+Emscripten+OpenB3D: sky is the limit
Replies: 6
Views: 138

Re: FreeBasic+Emscripten+OpenB3D: sky is the limit

... Which browser are you using? The demo uses WebGL and WebAssembly, so if the browser doesn't support them it won't work. Can you use other WebGL examples from the web? I tested it mainly on FireFox, under Ubuntu Linux (I also ran a little test on Chrome on Android) Anyone who tried it could prov...
by paul doe
Nov 30, 2020 2:39
Forum: Community Discussion
Topic: FreeBasic+Emscripten+OpenB3D: sky is the limit
Replies: 6
Views: 138

Re: FreeBasic+Emscripten+OpenB3D: sky is the limit

@angros47: I'm also having troubles with it. It just stays there, 'downloading...'
My IC is very slow, though...
by paul doe
Nov 30, 2020 2:32
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 13
Views: 267

Re: hey all, new programming language support gwbasic,freebasic

Image

@CodeBaseTeam: I suppose it was too much to ask at this point.

marcov wrote:Does it bootstrap freepascal cq Lazarus?

Yeah, nice one. I know this one of two guys and a bear...

XD
by paul doe
Nov 30, 2020 2:09
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 13
Views: 267

Re: hey all, new programming language support gwbasic,freebasic

and mainly vb6 currently it comes with 2 original vb6 projects that compiled with codebase ... You mean this is one of them (WinDos)? https://thumbs2.imgbox.com/7f/6d/ovZZ4dRW_t.png Showing the results of the 'dir' command (write it on 'the box below'; don't you dare write it in the 'console' up th...
by paul doe
Nov 30, 2020 1:59
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 13
Views: 267

Re: hey all, new programming language support gwbasic,freebasic

CodeBaseTeam wrote:...
codebase its self is very rich.
...

Especially on the 'colorful' department:

Image

You've got to be f*cking kidding me...
by paul doe
Nov 26, 2020 23:29
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 994

Re: My take on Squares PRNG

What was happening with my glitch was instead of sending 1MB of data to PractRand 1MB + 16 empty bits was sent. The error was to do with the lower 16 bits of numbers. Between 500MB and 1GB PractRand reckoned that enough was enough. ... Care to post the code here for review, and prevent future misha...
by paul doe
Nov 25, 2020 1:13
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 994

Re: My take on Squares PRNG

deltarho[1859] wrote:I thought you had PractRand - didn't you do some work for Bernard Widynski?

Yep. But that was before my previous HDD went down in flames, taking 20 years of my life with it XD
by paul doe
Nov 24, 2020 23:57
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 994

Re: My take on Squares PRNG

deltarho[1859] wrote:...
@paul doe

Would you do a PractRand test becuase I am getting a failure at 1GB?

I would, but I couldn't download a build from SourceForge. I'll try again later today.
by paul doe
Nov 24, 2020 1:23
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 994

Re: My take on Squares PRNG

... The result is that the “period” of this generator will be the “Germain prime” 1,768,863 x 2^1535 - 1, which is approximately 2.132 x 10^468 WHAT? ... It harkens back to a time where 'length' was a thing. Of course, science has now advanced and the overall consensus is that 'girth' is generally ...
by paul doe
Nov 23, 2020 15:21
Forum: Beginners
Topic: Mouse problem
Replies: 6
Views: 1531

Re: Mouse problem

You need to poll getMouse , like this: #include "fbgfx.bi" Using FB screenres 640,480,32 'dim as integer mousex,mousey,mouse,mousebutton dim as integer mousex,mousey,mousebutton 'mouse=getmouse(mousex,mousey,,mousebutton) do getmouse(mousex,mousey,,mousebutton) screenlock cls if mousebutto...
by paul doe
Nov 22, 2020 21:53
Forum: Game Dev
Topic: Problem with Fog-of-War
Replies: 15
Views: 562

Re: Problem with Fog-of-War

... I gave up using tiles in this RTS game... Is there any particular reason? Implementing a simple, smooth scrolling tile engine is relatively straightforward: #include once "fbgfx.bi" type as ulong color_t enum MapTerrains TERRAIN_WATER TERRAIN_LAND TERRAIN_WOODS TERRAIN_MOUNTAINS end e...
by paul doe
Nov 21, 2020 23:07
Forum: Game Dev
Topic: Problem with Fog-of-War
Replies: 15
Views: 562

Re: Problem with Fog-of-War

Okay, I corrected it, although the "Array out of bounds access" error didn't come up at me. :-/ ... You need to compile with the -exx compiler switch. See here for details on switches you can use: https://www.freebasic.net/wiki/CatPgCompOpt ... But I found an interesting thing: in my game...
by paul doe
Nov 21, 2020 11:27
Forum: Beginners
Topic: recommendation for learning - brilliant.org site
Replies: 1
Views: 118

Re: recommendation for learning - brilliant.org site

Really cool. This one is free, and it's really helpful:

https://www.mathsisfun.com/

Contains explanations that are really easy to follow, and games, problems and a lot more. I end up quoting it a lot, so might as well share it here.
by paul doe
Nov 21, 2020 11:14
Forum: Game Dev
Topic: Problem with Fog-of-War
Replies: 15
Views: 562

Re: Problem with Fog-of-War

... In 'for t as integer = 0 to numoffogtiles-1' , 'numoffogtiles-1' is evaluated at the beginning of the loop only (it is not reevaluated at each loop). If in the loop 'numoffogtiles' is decremented latter and 'afogtile()' resized smaller accordingly, this w...

Go to advanced search