Advertisement

What Engine should i use for a HTML5 browser card game?

Started by November 15, 2020 01:54 PM
5 comments, last by 8Observer8 3 years, 11 months ago

Hello all,

I'm not a developer but I want to run a website with several HTML5 games, mainly Card games for example blackjack.

I spoke with several companies but they all have very different opinions about the Engine to use. The main goal is to offer the game direct in the browser. Maybe in the future on Facebook as well. I want the game to have really beautiful card animations like shuffling the cards, dealing the cards, and tipping up corners of the cards.

What game engine would you advise for HTML5 games in the browser for the best results and more important, for in the future. Not that I choose for a dying engine to work with.

Also, I was told that WEB GL is going to be replaced by WEB GNU. (I'm really a rookie no idea what I'm talking about here) but is that something to pay attention to as well by choosing for a certain Engine now?

Phaser 3: https://phaser.io/

Advertisement

Can you make the same kind of animations in Phaser3 as in for example Unity?

I do not know what animations do you mean. Run examples of animations and see code examples here: https://phaser.io/examples/v3/category/animation

Beginning example in JavaScript (ES5) and Phaser 3:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/phaser@3.24.1/dist/phaser.min.js"></script>
</head>

<body>
    <script>

        var gamePlay = new Phaser.Class({
            Extends: Phaser.Scene,
            initialize: function GamePlay() {
                Phaser.Scene.call(this, { key: "GamePlay" });
            },
            preload: function () {
                console.log("preload");
            },
            create: function () {
                console.log("create");
            },
            update: function () {

            }
        })

        var config = {
            type: Phaser.AUTO,
            width: 400,
            height: 400,
            scene: gamePlay
        };

        var game = new Phaser.Game(config);
    </script>
</body>

</html>

Will your card game be 2D or 3D? Phaser is for 2D games only. If you want to make 3D games you can use Three.js or Babylon.js. All these tools use JS for scripting but they support TypeScript. Babylon.js is written in TS. I prefer to write my simple games in pure WebGL and TypeScript (and Qt C++ OpenGL ES). WebGPU is not supported on my notebook like Vulkan. WebGL 1.0 and OpenGL 3.3 (and ES) will be actual many decades.

Advertisement

If you want to make a mutiplayer card game than read my messages here: https://www.gamedev.net/forums/topic/708606-most-quickmodernworthwhile-way-to-learn-javascript/​ Ask me and I glad to help with your game.

This topic is closed to new replies.

Advertisement