Writing apps for Firefox OS phones

Improving Life

If you run this game, your first complaint will pertain to the efficiency of the program. The program works well with small cultures, but it slows to a crawl as soon as the number of cells grows. I have likely overlooked ways of making GoL more efficient and the JavaScript more optimal. Feel free to give the code a bash by downloading it [11] and playing with it.

The second problem is usability. This app is screaming for a zoom function in edit mode. Even when the cells are 2x2 blocks on the canvas, they are tiny. No fat (or even thin) fingers will be able to place a cell accurately on the playing field without a stylus. Again, feel free to make your own changes and improvements.


Although the GoL app is far from perfect, it shows how easy it is create an app for the Firefox OS mobile platform and illustrates some of the ways you can implement the assets Mozilla makes available.

If you already develop web apps using HTML5, you're basically done. If not, HTML, CSS3, and jQuery are well-documented and relatively easy technologies to master, so you should be able to begin creating your apps in no time.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Programming the Cell

    The Cell architecPIture is finding its way into a vast range of computer systems – from huge supercomputers to inauspicious Playstation game consoles. We'll show you around the Cell and take a look at a sample Cell application.

  • Firefox OS Smartphones

    JavaScript, HTML5, and a liberal helping of Linux and Android inheritances: This is Firefox OS, the smartphone operating system Mozilla created to push into the low-end smartphone market. We tested the Keon and Peak models by Geeksphone.

  • Canvas Fingerprinting

    We'll tell you about some powerful new ad tracking techniques and how you can stop them.

  • Firefox OS vs. Android

    Firefox OS has come out of nowhere to challenge Android and iOS in the mobile operating system market. We'll show you what is different about Firefox OS and compare a recent Firefox OS phone with a comparable Android device.

  • HTML5 Offline

    An offline cache in your browser and a bit of HTML5 acrobatics combine for interactive web applications that keep working even when the Internet connection breaks down.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95