Why casino games moved to HTML5
Online casino games used to depend on a browser plug-in. Phones never supported it, and browsers dropped it. HTML5 replaced it with standards built into the browser itself. One version of a game now reaches every device.
What an HTML5 casino game is made of
| Part | Role |
|---|---|
| Game client | The code that runs in the browser: reels, interface, animations, sound |
| Rendering engine | Draws the game using the graphics card, through WebGL |
| Assets | Images, animation data and audio, packed to load fast |
| Game server | Decides each result and keeps the record of every round |
The client displays the game. It does not decide the outcome. Results come from the server, which is why a player cannot change them from the browser.
The technologies involved
- JavaScript or TypeScript for the game logic on the client.
- A 2D engine on top of WebGL, to draw sprites and effects smoothly.
- Skeletal animation for characters and symbols, most often Spine 2D.
- Web audio for music and effects.
The constraints that shape the work
- Loading time. Everything is downloaded before the first spin. Heavy assets lose players before the game starts.
- Portrait and landscape. The same game must work held upright in one hand and on a wide screen.
- Touch. Buttons must be large enough for a thumb.
- Memory. Mobile browsers close pages that use too much.
- Sound rules. Browsers block audio until the player has interacted with the page.
How a game reaches players
The game is hosted on a game server and opened inside the casino's site. Operators receive games either directly from a provider or through an aggregator that connects many providers at once. Platforms such as Stake Engine host the game and supply the server side themselves: read what Stake Engine is.
Who builds them
A front-end game developer builds the client, working with artists, animators and a mathematician. The roles are described in what an iGaming developer does.
Need a slot built for the browser?
Art, animation and code from one team. Custom slots from €4,000.
Get a quote