HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Guess The Celebrity
  • About us

Building A Game Using CSS Animation

All CSS timers and interval functions are handled by its Animation feature. To demonstrate this feature, take a look at this tutorial for building a Whack-a-Mole game using CSS Animation.

In the tutorial, the game revolves around two ideas.

  1. Animations are used to determine events according to a set pattern
  1. Player actions are determined by changing an element’s position

To build the game, there are two main animations. The first is the ‘hole’ animation which depicts a hole in the ground. While the second is a ‘mole’ animation that shows a mole creature. Transitioning from these two animations will determine the player’s set of actions.

Clicking on a mole animation will earn points while clicking on a hole animation will deduct points. For more information, check out the rest of the tutorial.

Share List

You might also find this interesting:


  1. Hearthstone card effect in CSS An interesting question was posed via Twitter recently. It was about finding a way to create a card browse/hovering effect like the one in the popular card game Hearthstone using...

  2. 2D Skeletal Animation Tutorial If you want to learn how to make your HTML5 game characters move smoothly, you can check out this 2D skeletal animation tutorial from Kestrel Moon.  This guide will teach...

  3. Building your Own Tipsy Tower Game using Phaser and Box2D Phaser is one of the most popular frameworks for developing HTML5 games. Here is a series of tutorials that will help you build your own Tipsy Tower game using this...

  4. Pure CSS Platform Game Is it possible to make an HTML5 game with CSS only? No Javascript? The answer is apparently yes. Here’s a platform game that was made with pure CSS code. The author...

  5. HTML5 Game Development Facebook, Twitter and G+ The official HTML5GameDevelopment.org Facebook page up at: http://www.facebook.com/Html5GameDevelopment The official HTML5GameDevelopment.org Twitter account is at: https://twitter.com/#!/gamedevhtml5 The Google Plus page is up at: https://plus.google.com/b/106608051085232600929/ All are updated automatically via the...

Animation, event intervals, timers
Games-4, HTML5-4, Misc

License HTML5 Games

Are you a company looking to license HTML5 games? We recommend MarketJS.com, a B2B platform for licensing games.

MarketJS has over 300 HTML5 games for licensing. They also provide additional services such as game reskin, custom development, and white label portals.

Html5 Game Development


Follow @GameDevHTML5



WHAT’S NEW

  • GPT3 Voting Board

  • Game Localization For Food Delivery App

  • HTML5 Games in Guest Room Tablets

  • What’s New in Phaser 3.50

  • Particle and Sprite Editors in Babylon.js 4.2



NEW DEMOS

  • Vertical Platformer Games Using GDevelop

  • HTML5 Games for HR Technology

  • Building Vertical Platformer Games using Kaboom

  • Vertical Endless Runner Prototype

  • Particle and Sprite Editors in Babylon.js 4.2


ENGINES

  • Vertical Platformer Games Using GDevelop

    Last time, we introduced GDevelop as a viable option for no-code game engines. Now, let’s try building vertical platformer games using GDevelop. GDevelop comes with two behaviors to build platformer …Read more

  • Best Practices in Building HTML5 Games

    As the saying goes, “Quality is always the result of intelligent effort.” This timeless quote by John Ruskin summarizes most of the best practices in building HTML5 games by today’s …Read more

  • GDevelop – Free and Easy HTML5 Game Engine

    If you are looking for a free and easy HTML5 game engine, check out GDevelop. This game creator is designed to be used by everyone, with its no-code, open-source, free, …Read more

SEARCH OUR ARCHIVES

CONNECT

rss twitter

HTML5 Game Development is proudly run by 3P Solutions Inc

GOT NEWS?

Send new engines, demos, information and tips to hello@html5gamedevelopment.com

MONTHLY MEETUP

In boston? Join us for the Monthly HTML5 Game Development meetup.

BOOKS

We're in the process of writing a few books about game development. Coming soon!

Copyright HTML5gamedevelopment.com