Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Is using javascript module in html game possible

A topic by Anton created Aug 14, 2023 Views: 102
Viewing posts 1 to 1

Hi, I am reworking a web game I had made for a jam.
The original version was mostly a .html file with some <script> content.

I want to use typescript for the new version but I struggle to make it compile without the use of feature like importing module (I'm using the library axios).
I really would like it if my game was still playable from the project page, but I don't know if using those feature will prevent it.

Am I wrong in thinking that I can't use modules in embedded web game ?

For reference: I'm working on https://antonmakesgames.itch.io/emojiguessr

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.