Search found 868 matches

by paul doe
May 11, 2019 20:50
Forum: General
Topic: Need faster Exponentiate
Replies: 32
Views: 1513

Re: Need faster Exponentiate

... I would like to convert this one to FreeBASIC https://martin.ankerl.com/2007/10/04/optimized-pow-approximation-for-java-and-c-c/ but I do not understand some parts of the code. Here: function approximatePow( _ byval a as double, _ byval b as double ) _ as double dim as longint _ tmp => clng( *c...
by paul doe
May 09, 2019 13:41
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 588

Re: Displaying data on screen

@paul Doe your welcome to email me at xxx Ok, got it. Erase it or otherwise edit it so that it can't be parsed (security issues). Top of the range here are machines that cost £6,000 plus. I want to make a cheaper system as small Business can not always pay that sort of cash and I can get machines w...
by paul doe
May 09, 2019 11:53
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 588

Re: Displaying data on screen

most of what I need is just basic input screens etc that was why I though of the TUI for this project ... Of course, with a TUI you can create any app you want in text mode, and easily modify your existing ones, but it takes a little more work than simply code a form generator. ... Here in the UK w...
by paul doe
May 09, 2019 10:30
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 588

Re: Displaying data on screen

... and I would have to learn how to use FoxPro (as I know FoxPro does have a interface that can act like a Program) I am using plan FB as it's a language I know (I was thinking about using VBDOS but I keep hitting the 640KB limit with the apps I make in that) Fair enough, but do you really need an...
by paul doe
May 09, 2019 0:31
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 588

Re: Displaying data on screen

A GUI would be easier but it would mean learning how to use the tool kit. The software is still crashing with just the text interface (I’m working on that) The tool kits only aim at Linux and windows I would like to also support DOS (if anyone knows of a gui tool kit that works on dos I’ll be inter...
by paul doe
May 08, 2019 23:05
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 588

Re: Displaying data on screen

Gablea wrote:thanks for the example code

how would i deal with say 1,00 products (with a limited number on screen)

Didn't badidea's code in the previous post already answered this?
by paul doe
May 03, 2019 19:14
Forum: Game Dev
Topic: Help on an Infinite Tile Engine
Replies: 14
Views: 717

Re: Help on an Infinite Tile Engine

... I had a look at Paul's "Dungeon Siege" pdf-link. The main message I got from that is: With a multiplayer game, things get way more complicated. It's the requirements (namely, a 'continuous world') that made it complicated, not so much the technique. There are some interesting workarou...
by paul doe
May 02, 2019 22:05
Forum: Projects
Topic: gentext chung text generation based on SORT algorythm
Replies: 12
Views: 821

Re: gentext chung text generation based on SORT algorythm

Well, for PGC, there is: pcg32rr.bi - minimal PCG32_random_r implementation ( (c) Melissa E. O'Neill ) from myself ... to start off, with (a header only, implementation). Yes, while there are good implementations of PRNGs (and they are instrumental for generating solid random content), I was talkin...
by paul doe
May 02, 2019 20:43
Forum: Projects
Topic: gentext chung text generation based on SORT algorythm
Replies: 12
Views: 821

Re: gentext chung text generation based on SORT algorythm

Interesting. There's so little about PCG in this forum... might try to address that soon ;)
by paul doe
May 02, 2019 9:58
Forum: Community Discussion
Topic: Please help me translate this Python code fragment to implement Steam Achievements
Replies: 21
Views: 1025

Re: Please help me translate this Python code fragment to implement Steam Achievements

... The Steam documentation says it's a "global accessor function", whatever this is. https://partner.steamgames.com/doc/api/ISteamUserStats It's a public property, as marcov says. Unfortunately, the API for SteamWorks is in VC++ (ISteamUserStats is an interface), so wrapping it for FreeB...
by paul doe
Apr 30, 2019 21:35
Forum: Game Dev
Topic: Help on an Infinite Tile Engine
Replies: 14
Views: 717

Re: Help on an Infinite Tile Engine

FreeBasic allows first-class procedures/arrays right? Arrays yes, first-class functions no. FreeBasic does support function pointers, though. Just bare function pointers, not delegates . And I've had experience coding in C/C++ and QB64, I just don't quite know all of the FreeBasic functions just ye...
by paul doe
Apr 30, 2019 20:13
Forum: Game Dev
Topic: Help on an Infinite Tile Engine
Replies: 14
Views: 717

Re: Help on an Infinite Tile Engine

So I want to make a tile engine that has the capacity to grow infinitely but I don't know how to put the concept into code. ... Welcome. What you need is called a spatial hash . This data structure is used, among other things, to quickly locate sets of nearby objects on a discrete grid (to quickly ...
by paul doe
Apr 29, 2019 22:25
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 99
Views: 6087

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

I can perfectly understand how difficult it is to make something in time, above all something as refined as what you projected. I hope anyway that the challenge gave it a boost so now that you launched the machinery, you will soon achieve your project. Maybe in time for the next round? ... If there...
by paul doe
Apr 29, 2019 19:08
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 99
Views: 6087

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Same and final version, but with executables (Linux/Windows): freebasic_vs_tetris_2019-04-29.zip (~5 MB) If "00:00, french hour" is the deadline, then I am just in time. I still didn't play your game! Downloaded it but a little busy and tired. I can't wait anyway. Do you know what happene...
by paul doe
Apr 22, 2019 11:24
Forum: Beginners
Topic: Unexpected behaviour of type arrays
Replies: 8
Views: 408

Re: Unexpected behaviour of type arrays

Indeed, as badidea points out, you're just missing an additional indexing operation. Otherwise, the semantics of the original expression is to copy-construct/assign two objects of different types (and the copy-constructor/assignment operator is undefined for both of them). You can define operators t...

Go to advanced search