Jump to content

Original Asteroids in JavaScript by Static Binary Translation


norbert_kehrer
 Share

Recommended Posts

Hi,

 

I am Norbert and just started with HTML5 development. As my first project I tried to port the original Asteroids game from 1979 to JavaScript using the Canvas element.

 

The project is a remake of a Java project of mine from almost ten years ago. I translated Atari's great vector arcade game Asteroids to JavaScript. Asteroids was originally written by Ed Logg of Atari Inc. in 1979, and my JavaScript version was created by applying the method of static binary translation to Ed's code. That means, that the program code originally written in the machine language of the 6502 CPU of the Asteroids machine was converted in a one-to-one manner to JavaScript. The translation was automized by a Java program, which generates semantically equivalent JavaScript code for each 6502 instruction and applies some optimization techniques to the generated program (e.g., removal of redundant flag calculations). The outcome is an exact simulation of the original, first Asteroids game.

 

Here is the link to the game: http://members.aon.at/~nkehrer/ast_js/AsteroidsJS.html

 

And here is a screenshot:

 

asteroids_js.jpg

 

Sound and timing have still some potential for improvement.

 

Greetings

 

Norbert

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...