Let me know if anyone has a solution to this. And yet iframes are not ideal and currently have some minor limitations. Therefore in case of games iframe should function according to the user expectations. Whenever I do it this way, the whole website background turns gray (you know that Playcanvas gray color) and then all of the html sits on top of that gray color and the game never launches in any visible way. And for the most games the concept of a url link to a specific game state does not make any sense at all (as well as backward/forward browser navigation). notice that this also includes the settings and the engine in the head: Now, this doesn’t work whenever I try and embed it this way by dropping the scripts into the section that has the css to constrain the game. the iframe fills the section styling perfectly: First Card ![]() The webpage is currently setup like this with an iframe and it works great. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java. I can’t show the website because its for a client, but I can describe the issue. Hi, I’ve seen in a few places that the recommended way to embed a Playcanvas game into a website is via an iframe but I can’t currently do that on the project I’m working on as it adds more dependencies that can’t be there.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |