Search found 1409 matches

by VANYA
Nov 24, 2020 5:57
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

angros47, Good job! @CoderJeff I have no right to advise you. However, angros47 is still the only one who implements patches for the emscripten port. Is there some way to give him access to the page for editing? This will allow him to quickly make changes to this port without distracting you once mo...
by VANYA
Nov 23, 2020 15:53
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Emscripten does support OpenGL through SDL, so it is surely possible to use it (I know because I managed to compile and use OpenB3D with it), but the context creation is different. Also, although Emscripten could compile classic OpenGL 1 programs, that is explicitly not recommended, because the bro...
by VANYA
Nov 23, 2020 3:24
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

I tried opengl examples, but unfortunately an error occurs: wasm-ld: error: unable to find library -lGLU I don't know where to get it. The system already has OpenGL, and the examples run if compiled without -target js-asmjs. I also tried OpenAL sound, compiling C source codes. Everything compiles, b...
by VANYA
Nov 22, 2020 8:00
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Ported another games:

GameWord WEB
GameWord PC (description, rules)

Don't be intimidated by the Russian words on the bottom line, these are just templates to collect. Knowledge of the Russian language is not required!

**********************************************

Mancala WEB
Mancala PC
by VANYA
Nov 21, 2020 19:11
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

I guess that trying to convert a basic code to C in sub-optimal way (with lang QB), then convert the resulting code to Javascript in another sub-optimal way, and expecting everything to work seamlessly is asking too much angros47! Well, of course you are right, but I wanted to try :) I am not belit...
by VANYA
Nov 21, 2020 17:10
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Anyway, your program could not work without changes, with the current form of the compiler: if contains some INPUT commands, so it would need the ASYNC mode to work (and would work only in graphic mode, not in text more, and as you can clearly see it doesn't contain any SCREEN instruction) Of cours...
by VANYA
Nov 21, 2020 13:23
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Nice! But now, please, can you tell me what that program was supposed to do? I didn't even try to understand that messy source, and the texts are in Russian. This is a textual economic strategy, the goal of which is for an ordinary person who has arrived in the country to earn money, status, and, a...
by VANYA
Nov 21, 2020 11:52
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

I apologize. It turns out nothing hangs, but it's just a workflow! The compilation speed of this code (500 lines) takes EMCC only 5 minutes :) And this is on a relatively fast processor with a full load of one core :) I am afraid to imagine if I would compile the code under a pentium I processor. Th...
by VANYA
Nov 21, 2020 10:27
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

This is the result I get: fbcE -target js-asmjs FBFILE.bas -c -v FreeBASIC Compiler - Version 1.08.0 (2020-11-21), built for linux-x86_64 (64bit) Copyright (C) 2004-2019 The FreeBASIC development team. target: js-asmjs, asmjs, 32bit (js-asmjs) backend: gcc compiling: FBFILE.bas -o FBFILE.c compiling...
by VANYA
Nov 21, 2020 9:10
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

-r running fine -c freezes AARGH! My eyes! :)))) Honestly, I am surprised that such a spaghetti code even compiles in ANY version of FreeBasic. With an ordinary compiler (PC), everything is compiled and even works as intended :) I somehow wanted to completely rewrite using modern programming, but a...
by VANYA
Nov 21, 2020 7:27
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Hi angros47! I made all the changes. INPUT works in graphics mode. In terminal mode INPUT opens a GUI dialog for input. This is certainly not what is expected of the program. :) A question: if you keep the program in a loop, then everything is fine: declare sub emscripten_sleep cdecl alias "ems...
by VANYA
Nov 20, 2020 18:55
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Yes, it is necessary. The input routine, internally, calls fb_delay (in that way, it can adapt easily to different platforms), so the change is needed Got it. I'll do it and unsubscribe tomorrow. And another question: legacy codes (#Lang "qb") won't work with emscripten? I have one of the...
by VANYA
Nov 20, 2020 18:35
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Even the following code does not work for me (loading is constantly spinning and the page freezes): declare sub emscripten_sleep cdecl alias "emscripten_sleep" (t as uinteger) screen 13 Dim As Double a, b Dim As String yn input "Please enter a number: ", a emscripten_sleep 100 Ma...
by VANYA
Nov 20, 2020 5:23
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

Good job!

angros47! Could you look at the INPUT statement for at least graphics mode? I'm having problems using this operator (hangs). Of course, if nothing can be done, then you will have to invent your own, but I would like a standard one (I'm very used to it).
by VANYA
Nov 19, 2020 5:49
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 75
Views: 2644

Re: What happened to the Emscripten branch?

I have ported another game to WEB. Since the game is controlled by the mouse, you can even play on android devices. Checkers game by badidea. PC version here или here. Online version here

Go to advanced search