O'Reilly logo

HTML5 Game Development HOTSHOT by Makzan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hotshot challenges

There are different ways we can further improve the game.

  • Adding special items:

    There can be special items that can affect the battle result. For example, there can be an item that heals the health points before the battle. Or, there can be an item that adds 10 power values to the card for three rounds.

    These cards can be purchased at the in-game store. And this usually involves virtual coins. The coins can be earned by winning the game.

  • Multiple players:

    By setting up a socket server and using the HTML5 web socket API, we can make the opponent a real player. On each selection, one side sends the selected power value to the server and a push to the other player. On the other side, the value from the server appears on the opponent's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required