Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Paul Smith

#1
Nice little game, I thought it was another type of game at first, I thought you had to bomb the ground until it was clear so the UFO could land.
It was because windows defender activated when I ran it saying some shit about a cloud based scan, it stopped the mouse from working correctly in game. I thought I had to press space and drop the bombs, thinking this is not responsive.
I ran it again and all was fine.

Only thing I would change is the yellow and red in the font, makes it hard to read, but overall the game is very playable.

 I sent you $2 from itch, good luck.
#2
Nice, This thing is full of MOD/MED music tracks. It's nice to see projects still being worked on.
How much is AI?

I use a bit of AI when I'm bored to see what code it makes. GROK seems to learned when I tell it its wrong, but ChatGPT needs too many corrections and repeats the errors. 
#3
The Bonus section will show at 100 posts, I'm not sure link target in the scripts is still online anyway.
#4
I found it on a google search. Not that hidden. :D
#5
http://www.glbasic.com/glb_source/

Try this link, hope it's what you want.
#6
Yes mainly dead this forum, Couple of people still use GLBasic. As people dont post anymore, so I'm not inspired to work on stuff myself.
The HTML5 was the bit that go me back, but it all fades away.

I believe that the source code is in the steam version, as it builds from it. Someone will have to correct me if I'm wrong.
#7
This Forum has been quiet for over 6 months, I doubt Kitty Hello is working on improvements. I would love to see an update.

Just out of interest is anyone using GLbasic on a weekly basis? I've not had the time or motivation since new year.
#8
Thanks dreamerman, I did search the forum and only found info from the 3rd part topic. I'm sure this forum plays tricks on me. :D  I'll read the treads and hopefully come up with a solution.
#9
I assume GLBASIC uses the SDL2 library when compiling to HTML5.

I've been messing with music formats in browsers and it looks like firefox is the least compatible, anyways I was trying to understand if using the SDL2 mixer to play MOD/S3m would work better.

As I know very little about C/C++ importing into GLBasic, I was hoping someone could give me any pointers.

I can see GLBasic adds the path to the .h files location for HTML.
would it be used like
INLINE
#include "SDL.h"
#include "SDL_mixer.h"
ENDINLINE

or would it be import / require.

#require "SDL.h"
#require "SDL_mixer.h"

IMPORT "C" int SDL_Init(int flags)
IMPORT "C" void SDL_Quit()
IMPORT "C" int Mix_OpenAudio(int frequency, unsigned short format, int channels, int chunksize)
IMPORT "C" void Mix_CloseAudio()
IMPORT "C" void Mix_FreeMusic(void* music)
IMPORT "C" void* Mix_LoadMUS(const char* file)
IMPORT "C" int Mix_PlayMusic(void* music, int loops)

If anyone can help, I would be grateful.

 



 
#10
I can't seem to use strings. This won't compile 
}, url$);  or {, url_Str);
The version I was supposed to show was  }); that just opens a new tab. It does compile but just a blank page.

This code does work and will open the correct page, strange thing is the // shows as comments after the https: but compiles fine.

INLINE
        EM_ASM({
       window.open('https://www.glbasic.com', '_blank');
    });
   ENDINLINE

Hope this helps
#11
Not used that command, but others like NETWEBEND dont work.

I've been short on time this month and was looking into using alternative inline for NETWEBEND. I have two methods that need Ironing out. This code is from a google search. And needs formatting correctly.

    INLINE
    #include <emscripten.h>
    emscripten_run_script("window.open(\"" + url$ + "\", \"_blank\");");
    ENDINLINE

the other is

INLINE
    #include <emscripten.h>

    EM_ASM_({
        window.open(url, '_blank');  // Open the URL in a new tab
    }, url$);
   
    ENDINLINE

Not tried the first one but the second one opens a page, just not the right link.  :D
Hopefully someone smarter than me will fix this is seconds.


#12
I think Wiki needs an update to keep it current.
#13
Confirmed your Bleep does not work on Android Firefox.

I noticed firefox can be a little particular with sound as can Chrome, I tried a few settings for a bleep and in the end I used WAV 8/16bit 16/22/41 khz stereo(Mono didn't work) and these works on all platforms so far.

My Key click sound works on Firefox on my android.

https://paulsmith6175gmailcom.itch.io/bc

This is a work in progress and once its sorted I will create a thread with all the little things I discovered on my journey like how to get the full phone resolution not the 360x760ish, Audio formats, reading the screen width and height
#14
I love it when updates and fixes are being worked on, But I have the same question as Qedo. Does a push to GIT mean it will start to roll out on a STEAM update or do we have to do something manually?
#15
Thanks Qedo. I think now it maybe because I have stuff open its trying to alter when compiling.