Original Game Boy becomes a Web app

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • vis~as
    • Sep 2006
    • 8928

    Original Game Boy becomes a Web app

    Imran Nazar's JavaScript emulator can run 1989-era Game Boy games in a Web browser.

    (Credit:screenshot by Stephen Shankland/CNET)
    One consequence of the steady increase in computer power is that newer machines can emulate the behavior of older ones, with software running fast enough to simulate operations that formerly required hardware.

    Now, in an illustration of just how far Web programming has become, one coder has begun a project called jsGB that lets a Web browser emulate Nintendo's original Game Boy handled videogame console.

    Programmer Imran Nazar has begun work to emulate the Game Boy in JavaScript, the Web programming language whose performance has become a top priority of browser makers today. JavaScript is used for everything from pop-up dialog boxes on Facebook to the Google Docs online productivity applications, but Nazar is busy adding 1989-era Tetris and similar games to the list.

    "New JavaScript engines such as [Firefox 4's JaegerMonkey] mean much higher speeds for the core processing, more than enough to cover emulation of a basic system," Nazar said in a blog post on Mozilla's gaming site. In addition, HTML5 now offers the Canvas element for easily controlling a two-dimensional graphical display, he said.

    "Why write a console emulator? It's a good way to learn the ins and outs of a particular console, and excellent for bringing together the lowest and highest levels of development," Nazar said. "And why build a console emulator in the browser, using JavaScript and HTML5? I say: why not?"

    The work spotlights the growing capability of Web-based programs. JavaScript performance increases, though hard to measure, are opening new horizons for Web programmers. The cloud computing philosophy, which can let people get access to information and use online tools wherever they have a browser, is gaining credibility. New Web standards and browser features such as offline storage, advanced graphics, and hardware acceleration improve what browsers can do.

    It's not all easy going. Perhaps the most advanced embodiment of the Web-app future, Google's Chrome OS, is stumbling on its way to market. Its troubles aside, though, it's clear more and more gets done in a browser window.the scope

    Nazar has been chronicling his Game Boy project at his Web site. It's interesting as much for the gory details of how the Game Boy work as for how Nazar brings them to JavaScript.

    He's not the first to tackle the subject, though. Another JavaScript Game Boy emulator from 2009 is available on the Web, though like Nazar's so far, it's also silent.

    A handheld computer introduced in 1989 doesn't have much horsepower. The Game Boy came with a modified Zilog Z80 processor, an 8-bit model that could only address a 16-bit memory space of 65,536 bytes--less than a thousandth of what typical computers have today.

    And its screen is simple, too. Its display measured just 160x144 pixels, each able to display black, dark gray, light gray, or white. The entire thing fits easily into a patch of "frame buffer" memory controlled through the HTML Canvas element.

    Nazar also has figured out how to simulate the input controls--a relatively simple layout with a four-way rocker switch and four control buttons.





    Powered by WizardRSS | Best Membership Site Software
Working...
X