Search found 19 matches

by linuxanddos
May 11, 2024 12:51
Forum: General
Topic: [SOLVED] Get does not save current screen work page
Replies: 8
Views: 471

Re: Get does not save current screen work page

With your help and information I found some other, similar errors in my code.
by linuxanddos
May 11, 2024 11:18
Forum: General
Topic: [SOLVED] Get does not save current screen work page
Replies: 8
Views: 471

Re: Get does not save current screen work page

get (0,0)-(breite-1, hoehe-1), menubild_statischer_teil Thank you, this solution is working. Aborting due to runtime error 1 (illegal function call) at line 54 There did you see this error? If I compile and run it on Linux, this is not shown. EDIT: Neither while compiling nor at runtime at the term...
by linuxanddos
May 11, 2024 9:00
Forum: General
Topic: [SOLVED] Get does not save current screen work page
Replies: 8
Views: 471

Re: Get does not save current screen work page

This code should generate a moving black rectangle with a white background. But the background is pink - so this does not seems to work. I know there are easier ways to generate a white background - but this is just a part of something more complex there it is necessary to save the background (for s...
by linuxanddos
May 11, 2024 7:22
Forum: General
Topic: [SOLVED] Get does not save current screen work page
Replies: 8
Views: 471

[SOLVED] Get does not save current screen work page

After running ScreenCopy 0, 1 ScreenSet 1, 0 I draw something at the hidden screen page. Than I use the following line to save what I have drawn: get (0,0)-(width, hight), imagebuffer Then I continue drawing. Somewhere in the future, I try to reuse my saved imagebuffer: Put (0,0), imagebuffer, PSet ...
by linuxanddos
May 05, 2024 14:00
Forum: Projects
Topic: My game: Pfeilspiel TNG international
Replies: 2
Views: 563

Re: My game: Pfeilspiel TNG international

I have updated the translation and include a red X button in the upper right corner... https://maerchenfeeimgarten.codeberg.page/pfeilspiel/ Can someone help me with one of these problems? - The background seems to be made of horizontal stripes instead of being a smooth gradient. Tools like Gimp wit...
by linuxanddos
Apr 13, 2024 5:53
Forum: Emscripten
Topic: Prebuild fbc+emscripten installer
Replies: 10
Views: 4359

Re: Prebuild fbc+emscripten installer

Somewhere in this forum I have read that it is possible to run JS code from your FreeBasic app. Sadly, I don't find this message again. Instead, I found this: https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#interacting-with-code-call-javascript-from-nativ...
by linuxanddos
Feb 24, 2024 13:18
Forum: Projects
Topic: My game: Pfeilspiel TNG international
Replies: 2
Views: 563

My game: Pfeilspiel TNG international

Hi, this is my new game, playable with a browser (desktop and mobil! ): https://maerchenfeeimgarten.codeberg.page/pfeilspiel/ or downloadable for DOS, Linux or Windows: https://codeberg.org/MaerchenfeeimGarten/Pfeilspiel/releases I created this a long time ago and now after a lot of additional work ...
by linuxanddos
Feb 11, 2024 13:04
Forum: Emscripten
Topic: Open/Enable keyboard input on smartphones
Replies: 1
Views: 1254

Re: Open/Enable keyboard input on smartphones

Ok, it seems like the best answer for this is to implement my own build-in keyboard for my application.

All other solutions I found online are just dirty hacks that does not work on modern browsers.
by linuxanddos
Dec 09, 2023 13:28
Forum: Emscripten
Topic: Open/Enable keyboard input on smartphones
Replies: 1
Views: 1254

Open/Enable keyboard input on smartphones

Hallo FreeBasic community, First things first: Thank you for all the support and for creating and improving FreeBasic! How can I tell a Android/iOS device to open the build in keyboard when my program is waiting for some keyboard input? The scenario: * You open the emscripten version of my program i...
by linuxanddos
Nov 25, 2023 10:14
Forum: Emscripten
Topic: Prebuild fbc+emscripten installer
Replies: 10
Views: 4359

Re: Prebuild fbc+emscripten installer

Now my software is almost working.

But I need some conditional compiling distinguishing between emscripten and the other platforms.
Is there something like

Code: Select all

#ifdef __FB_DOS__ 
	'code here
#endif
for emscripten/wasm?
by linuxanddos
Nov 25, 2023 6:07
Forum: Emscripten
Topic: Prebuild fbc+emscripten installer
Replies: 10
Views: 4359

Re: Prebuild fbc+emscripten installer

I have found the folder: /usr/local/lib/freebasic/
Now it is compiling, but it seems like I have to enable async support...
by linuxanddos
Nov 25, 2023 5:59
Forum: Emscripten
Topic: Prebuild fbc+emscripten installer
Replies: 10
Views: 4359

Re: Prebuild fbc+emscripten installer

Thanks. Now it is almost working (on Linux). But if I try to compile, there is the following error: wasm-ld: error: unable to find library -lfb wasm-ld: error: unable to find library -lfbgfx wasm-ld: error: unable to find library -lfb I think I've missed some environment variable, but sadly, I don't...
by linuxanddos
Nov 24, 2023 18:09
Forum: Emscripten
Topic: Prebuild fbc+emscripten installer
Replies: 10
Views: 4359

Prebuild fbc+emscripten installer

Hello fb community, I'm trying to build the fbc+emscripten compiler to build some programs and play around. But the guide from https://freebasic.net/wiki/devbuildemscripten seems to be very extensive and complicated and seems to link to https://freebasic.net/wiki/DevBuildWindows which has even more ...
by linuxanddos
Nov 08, 2023 8:25
Forum: Beginners
Topic: Variable Array as member of a class
Replies: 5
Views: 2547

Re: Variable Array as member of a class

Sorry, I missed the post about the UDT page.
by linuxanddos
Nov 08, 2023 8:23
Forum: Beginners
Topic: Variable Array as member of a class
Replies: 5
Views: 2547

Re: Variable Array as member of a class

Now it works. It would be cool if someone could document it under the already mentioned link...