Setup guide

Game Embedding with Topaz Games

Embedding Topaz Games's games into your online casino platform enhances user experience by providing seamless integration and gameplay directly within your site. This is achieved by embedding the game in an iframe, which requires the url generated from the session management process.


Embedding the Game

To embed the game, you need to include an iframe in your website's HTML code. The src attribute of the iframe will point to the game URL with the sessionId as a query parameter.

Example of Embedding Code:

<iframe
    src="https://play.topaz-games.com/mines?session_id=1234567890"
    width="1100"
    height="700"
    frameborder="0"
    allowfullscreen>
</iframe>

For mobile users

For user experience on mobile devices, we recommend opening the game in a new tab or window to ensure the best display and interaction.


Best Practices

  • Responsive Design: Ensure that the iframe is responsive to fit various screen sizes, especially for mobile users.
  • Testing: Thoroughly test the embedded game on different devices and browsers to ensure compatibility and a smooth user experience.
Previous
Session Management