Search found 935 matches

by paul doe
Nov 16, 2019 20:57
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 16
Views: 624

Re: Yet Another Platformer

You'll understand better with a simple example: #include once "fbgfx.bi" #include once "thread.bi" type as sub( _ byval as any ptr ) _ ThreadedSub type _ MouseContext as integer _ x, y, button end type /' Mutexing the call to 'getMouse()' is needed for it to correctly work if mul...
by paul doe
Nov 14, 2019 21:42
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 16
Views: 624

Re: Yet Another Platformer

You might find this abstraction useful ... I currently use event over multikey since I noticed some thread here in the forums discussing multikey not being reliably platform transferable. Why? Are you planning on creating an engine that also runs on Android/iPhone? If that's the case, you shouldn't...
by paul doe
Nov 14, 2019 21:28
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 512

Re: FB-1.07.1-gcc-6.4

... Which is what I used to say but 'keep up' with what, smaller binaries, as the performance isn't coming our way very much. C programmers may be getting a decent performance benefit. To 'keep up' with the times ;) Naturally, jumping from 5.2 to 8.x is a big leap, so the emitter for the Gcc backen...
by paul doe
Nov 13, 2019 22:41
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 512

Re: FB-1.07.1-gcc-6.4

... A question, Paul: What is your overall impression of the gcc 8 branch compared with 5.2 from a purely objective perspective? It seems [to compile] slower than previous versions, but it is also true that it generates better code (not necessarily 'faster'). Updating fbc to use it is needed to 'ke...
by paul doe
Nov 13, 2019 22:07
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 14
Views: 486

Re: Using Inkscape for game graphics

I know, the " ;-) " was especially for you. Just checking your progress :-) Haha fair enough. I'm almost done, just being busy with other projects ATM (I also posted another keyboard handler like the one you 'assimilated' ;) This one is way better and more efficient (if a bit more 'heavy'...
by paul doe
Nov 13, 2019 21:41
Forum: Tips and Tricks
Topic: Multikey key release
Replies: 13
Views: 1132

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.
by paul doe
Nov 13, 2019 21:39
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 16
Views: 624

Re: Yet Another Platformer

@sero: You might find this abstraction useful (I just finished coding it for another project). It is a keyboard handler, similar to multiKey() but more functional: #include once "fbgfx.bi" #define fmod( n, d ) _ ( cdbl( n ) - int( ( n ) / ( d ) ) * cdbl( d ) ) #define min( a, b ) _...
by paul doe
Nov 13, 2019 21:22
Forum: Tips and Tricks
Topic: SXML (Simple XML parser)
Replies: 11
Views: 5347

Re: SXML (Simple XML parser)

Just a small update: This little parser has been superseded by another one (it is part of a framework now). For now it only reads Xml, but I'll code a writer as soon as I can spare the time (not that writing Xml is such a difficult work, alas; but it will come in handy to implement serializable clas...
by paul doe
Nov 13, 2019 21:15
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 512

Re: FB-1.07.1-gcc-6.4

@David: interestingly enough, this only happens when compiling a shared lib with optimizations enabled, not with executables. I have a pretty sizable codebase for FreeBasic and all of it compiled flawlessly under the same switches in the Gcc 8 branch. Using -Ofast is merciless, though, and requires ...
by paul doe
Nov 13, 2019 21:07
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 14
Views: 486

Re: Using Inkscape for game graphics

... If only there was a library to read and render SVG directly in freeBASIC ;-) I'm currently working on one (uses Cairo; was developing it for the last FreeBasic Compo organized by Lachie), so you wishes might soon come true ;) It's almost fully functional (filters are not implemented) and can re...
by paul doe
Nov 13, 2019 20:47
Forum: General
Topic: Problem building shared library with Gcc 8
Replies: 3
Views: 185

Re: Problem building shared library with Gcc 8

Update: seems like compiling libs with optimizations is what's causing the problems in the Gcc 8 toolchain. As reported by srvaldez, neither the 5.x and the 6.x branches give any troubles. Didn't tested the 7.x yet.
by paul doe
Nov 13, 2019 20:43
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2260

Re: How to add new features? (syntax, user API)

The new feature ("#%" remove spaces in an argument, i.e. concatenate space separated parts) is in my Google drive: https://drive.google.com/open?id=1e7oP1msY4P1-6yRGGZIW-HRHp0G_HQQm. The folder "Macro" contains executables for win32/64, i removed the macro without brackets featu...
by paul doe
Nov 13, 2019 20:36
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 512

Re: FB-1.07.1-gcc-6.4

gcc-5.2 and gcc-6.4 don't have issues compiling with optimization, as far as I know. Indeed, it is optimizations that are causing the problems in the gcc 8 toolchain. As you point out, there are no problems with those older versions. Nevermind then. I'll just use the old trusty 5.2 until I can look...
by paul doe
Nov 12, 2019 21:36
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 512

Re: FB-1.07.1-gcc-6.4

yes, that works, however, optimization options seem to cause problems try paul doe's compile options fbc -s console -dll -export -gen gcc -Wc -Ofast "blah-dll.bas" granted that -s console is not needed to build a dll yes, that works, however, optimization options seem to cause problems Ye...
by paul doe
Nov 12, 2019 21:30
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 16
Views: 624

Re: Yet Another Platformer

The reason I know of Abuse is because I had a demo of it on my old Macintosh computer back when it first came out. This game provided a keyboard + mouse combination that I'd never encountered before. ... Indeed, it was a novelty at that time (circa 1995). Along with the engine's lighting system. .....

Go to advanced search