HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Wind And Solar
  • 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

  • Unity’s Pricing Scheme Changes

  • Unity Game Engine Pricing Fee

  • Open-source 3D Game Engine with Sketchfab Integration

  • MODD.IO Updates – Improved No Coding Required Game Engine

  • GPT3 Voting Board



NEW DEMOS

  • New BabylonJS Feature Within Skybox

  • Creating a Mobile HTML5 RPG – Guidelines for Beginners

  • How to Use HTML5 Games To Engage Social Media Followers

  • Running HTML5 Games for Online Competitions

  • Vertical Platformer Games Using GDevelop


ENGINES

  • Unity’s Pricing Scheme Changes

    In an open letter to the Unity community, the company announced the details of its pricing scheme changes. In the letter, the Personal plan will remain free and there will …Read more

  • Unity Game Engine Pricing Fee

    Early in September 2023, Unity Technologies announced the Unity game engine pricing fee. Starting on 1 January 2024, the company will charge game developers a fee (2 tiers) for each …Read more

  • Open-source 3D Game Engine with Sketchfab Integration

    PlayCanvas, an open-source 3D game engine, has added Sketchfab integration into its latest updates. This improvement gives game developers access to Sketchfab’s high-quality 3D, AR, and VR content. To access …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 [email protected]

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