Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Webfighter

Webfighter is an R-Type- and Tyrian-inspired game where you must hunt down an alien bug and destroy it, pick up new weapons as you go along, and get the high score!

View on the Firefox Marketplace.
Read the full developer walkthrough.

Difficulty: Medium

Code Breakdown:

  • 2% HTML
  • 6% CSS
  • 92% JavaScript

 

Web API Usage

Canvas
Used to generate the game graphics.
Fullscreen
Allows the game to be played in fullscreen mode.
In-app Payments
The player can purchase items in a store that will aid their quest. This shows the workflow for in-app payments.

Note: If you view this app on the Firefox Marketplace, you may be told that you can't view it because this app is not available for your region. This is due to the in-app payments, and the fact that payments are not enabled in many countries yet. If you set your region to Spain, for example, you will see the app. The in-app payments only work on Firefox OS, and do NOT actually charge you anything. They are just examples, to show how to implement in-app payments.

 

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, cvan
 Last updated by: chrisdavidmills,