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.

Conclusion

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

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
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.

  • Linux News
    • OSI accepting individual memberships.
    • OpenGL 4.3 and ES 3.0.
    • License Protection
    • Raspberry Pi ramps up production.
    • FSFE protects licences when bankruptcy strikes.
    • Gaming passwords secured with My1login.
    • Web Apps new to Ubuntu.
    • LPI Forum
    • RSA Anti Rogue App.
    • US Cell Phone Right-to-Know Act.
  • 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.

  • Go_Mobile_Intro.pdf
  • 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.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95

News