Search found 1771 matches

by badidea
Feb 25, 2020 23:03
Forum: Game Dev
Topic: Another freebasic miner
Replies: 25
Views: 1092

Re: Another freebasic miner

Code at GitHub updated. Visible things added: * Pick axe and drill animation * Block damage animation and removal And various changes to the 'game engine' https://nr100.home.xs4all.nl/badidea/miner/miner_2020-02-25.png (for some weird reason the drill image was much larger then the pick axe image, I...
by badidea
Feb 25, 2020 20:02
Forum: General
Topic: C++ ABI Compatible?
Replies: 5
Views: 148

Re: C++ ABI Compatible?

Except for simple cases where FB's name mangling and class capabilities are enough to interface with a C++ library is through wrappers. I'm not clear if Joshy's examples are wrappers or just header files. A wrapper usually is written in C++ where it manages the C++ objects and their lifecycles, and...
by badidea
Feb 25, 2020 18:53
Forum: Tips and Tricks
Topic: Open URLs in browser via Shell command from FB app
Replies: 8
Views: 266

Re: Open URLs in browser via Shell command from FB app

That's not optimal everytime change your default browser. I haven't changed my default browser in the last 10 years. Firefox on linux and windows for me. Default browser for Win 10 is still IExplorer, assuming, and linux distros are moustly different one to another Internet explorer is almost dead,...
by badidea
Feb 24, 2020 23:00
Forum: Tips and Tricks
Topic: Multikey key release
Replies: 16
Views: 1376

Re: Multikey key release

I implemented an alternative. Mainly focused at game development where often a limited number of keys is used, and the keys are mapped to functions (e.g Jump). #include once "fbgfx.bi" type registered_key private: dim as long scanCode(any) dim as boolean oldState(any) dim as boolean newSta...
by badidea
Feb 24, 2020 21:32
Forum: Tips and Tricks
Topic: Open URLs in browser via Shell command from FB app
Replies: 8
Views: 266

Re: Open URLs in browser via Shell command from FB app

For linux (or at least Ubuntu), there is also xdg-open: xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type...
by badidea
Feb 23, 2020 23:52
Forum: Tips and Tricks
Topic: Multikey key release
Replies: 16
Views: 1376

Re: Multikey key release

For the folks interested in these abstractions, I coded a better, more robust and efficient variant. You may find it here . Only now, do I notice that my simplified version does not allow 'pressed' and 'released' of the same key. Your version does not have this issue, but with a graphics screen, I ...
by badidea
Feb 21, 2020 23:22
Forum: Community Discussion
Topic: Installing FreeBasic with Scoop on Windows
Replies: 3
Views: 128

Re: Installing FreeBasic with Scoop on Windows

bubacxo wrote:Scoop uses a json file for each package

yes, I figured it out, see previous post.

bubacxo wrote:If you install it...

I'll stick with my linux version, but interesting project anyway. Makes installing software on Windows easy :-)
by badidea
Feb 21, 2020 22:26
Forum: Community Discussion
Topic: Installing FreeBasic with Scoop on Windows
Replies: 3
Views: 128

Re: Installing FreeBasic with Scoop on Windows

Windows now has at least two Package Managers, Chocolatey and Scoop. I found FreeBasic on Scoop , and it's up to date. Both: "scoop info freebasic" and "scoop install freebasic" do not show (above) form where reeBASIC-1.07.1-win64.zip is downloaded. So, apparently it works, but ...
by badidea
Feb 19, 2020 23:00
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 246

Re: strange graphic performance

deltarho[1859] wrote:@badidea

Image

BTW, even Windows 8 is "Tickless": https://arstechnica.com/information-tec ... ndows-8/2/
by badidea
Feb 19, 2020 22:56
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 464

Re: Simple tangent.

dodicat wrote:Extending badidea's polynomial.
A polynomial can be differentiated term by term into a new polynomial.
press space to refresh.

Excellent, but it seems like cheating :-)
by badidea
Feb 19, 2020 22:47
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 246

Re: strange graphic performance

deltarho[1859] wrote:... or whatever
Operating systems?
by badidea
Feb 19, 2020 21:36
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 246

Re: strange graphic performance

With Linux the default timer interval should be 10ms, so I don't understand badidea's 1ms. Yes, I remember 10 ms (100 Hz) from my previous linux box as well. There seem to be many changes to this stuff in the last years, driven by streaming data (video)? When I run the c-code on this page (https://...
by badidea
Feb 19, 2020 20:07
Forum: Community Discussion
Topic: [offtopic solved] Problem with my HTML5 JS template ?
Replies: 3
Views: 118

Re: [offtopic]Problem with my HTML5 JS template ?

I don't know, where (what program) do you press F12?
Maybe "function main() { } " ? (wild guess)
by badidea
Feb 19, 2020 19:19
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 246

Re: strange graphic performance

In Linux, make sure you are online with your browser (google??) My linux laptop always seems to run at a 1 kHz interrupt clock (or whatever that is called). #include "string.bi" dim as long sleepTime(...) = {0, 1, 2, 5, 10, 20, 50, 100} dim as double t for iRun as integer = 0 to 9 'run se...
by badidea
Feb 18, 2020 23:06
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 464

Re: Simple tangent.

I just wasted half an evening on 48 lines of code: type polynomial_type dim as integer dummy static as double coefficient(0 to 3) declare constructor(a as double, b as double, c as double, d as double) declare static function value(x as double) as double end type dim as double polynomial_type.coeffi...

Go to advanced search