Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK > HTML [KB]

Author
Message
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Dec 2022 08:33 Edited at: 14th Apr 2024 18:10
Guides & Info:
Known Limitations & Bugs:

Attachments

Login to view attachments
Globbits
15
Years of Service
User Offline
Joined: 30th Jan 2009
Location: Cambridge
Posted: 22nd Dec 2022 15:13
Very useful and informative. Thanks for creating this.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Dec 2022 23:52
glad you found it helpful, globbits. now post something @ itch for me to play
Globbits
15
Years of Service
User Offline
Joined: 30th Jan 2009
Location: Cambridge
Posted: 23rd Dec 2022 10:21 Edited at: 23rd Dec 2022 10:23
I tried, but running into trouble. The game crashes when trying to create a memblock.



Not sure why as it never needs to create a memblock that big. I don't know where that number is coming from. I'll need to investigate.
The game runs fine in all other configurations: Windows, Linux and Android APK so could make it difficult to debug!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Dec 2022 15:58
This was posted in another thread before but I'll mention it here too. If your itch.io game needs to access external pages you will likely have to set the access-control-allow-origin header for the page being accessed. For my purpletoken hi-score site I had to do this for itch.io games to send/receive the scores. In PHP you can set the header like this: header("Access-Control-Allow-Origin: *");
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 9th Feb 2023 20:42 Edited at: 9th Feb 2023 21:59
it's been asked for in the past so let's convert this thread to a Knowledge Base for "all things" HTML Export.

Feel free to supply links to useful info regarding HTML Export nuances, issues & limitations, work-arounds, enhancements and supplemental work that i can compile in the first post.

and, feel free to post a guide or informative post in this thread that i can direct to if you'd rather not create a separate thread.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Apr 2023 00:47 Edited at: 24th Apr 2023 00:48
added:
SetSoundInstanceRate() does nothing (works fine on WIN V2023.01.25)
GetSoundMaxRate() & GetSoundMinRate() = 1
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Apr 2023 18:59 Edited at: 15th Oct 2024 19:11
from Discord chat with Ranietz re: Studio HTML Export's Fullscreen bug:
Quote: "the Fullscreen paramater in SetWindowSize( ) can be set to enter FS Mode in HTML."

Usage:

the .js Fullscreen link in the Studio-generated HTML file should be removed a la Demo at itch.io

note potential issues when scaling via browser @ different modes (FS/Non-FS); can return to original values but, for example, i scale browser and Windows™ so this is not completely Responsive.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 11th Aug 2023 02:31 Edited at: 11th Aug 2023 02:40
Sound/Music may become garbled or not play at all when focus on canvas is lost (scrolling away or selecting/opening another tab/instance during play). removing SetVSync(1) rectifies (with loss of VSync which may not be necessary/can be controlled with full, manual control via timer-based actions/movement?)

*my recent issue involved .ogg music play (looping) and most (but not all) browsers (including Edge).

Login to post a reply

Server time is: 2024-11-21 12:25:07
Your offset time is: 2024-11-21 12:25:07