Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using it for a Defold game? #8

Open
lonnietc opened this issue May 25, 2022 · 3 comments
Open

Using it for a Defold game? #8

lonnietc opened this issue May 25, 2022 · 3 comments

Comments

@lonnietc
Copy link

Hello,

I have been briefly working with Defold and have some HTML5 games that generate a WASM file and also an asmjs.js for the game.

In discussing things on the discord channel it was suggested that just maybe your defold-playable-ads repo might be a very good way for me to consolidate all of the files in that game into a single HTML file and I wanted to ask how this could be done as I am unclear on the steps needed.

I have the Deofld HTML5 bundle game directory but how should I proceed from there?

Any help would be greatly appreciated.

@aglitchman
Copy link
Member

I have the Deofld HTML5 bundle game directory but how should I proceed from there?

Could you please try follow the instructions? -> https://github.com/aglitchman/defold-playable-ads#installation--usage

@aglitchman
Copy link
Member

a very good way for me to consolidate all of the files in that game into a single HTML file

Why do you need that? Could you please explain the point.

@lonnietc
Copy link
Author

Hello,

I'm creating a type of Defold game "widget" with the intent that it should be extremely easy for someone to add to their website with just a few lines of JavaScript to call the widget. The idea is that, like other online widgets, they can pass a few parameters to it like UserID, height, width, etc. and then the widget will show up on their site.

Right now, the Defold HTML5 bundles have many files and it should be better if there was only one file to call and pass the parameters.

Initially, I was trying to determine if it might be possible to repack the Defold game HTML5 game WASM engine and game files in the archive directory into some type of single package but no real solution seems to be around so it was suggested on the Defold Discord channel that maybe to somehow use your defold-playable-ad repo work as a possible way to take the game_asmjs.js along with the other needed files and package that into a single file.

My purpose here is to explore that as a possibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants