norbert_kehrer Posted August 2, 2015 Share Posted August 2, 2015 I made another static binary translation of a 6502 CPU-based arcade game to JavaScript. It is the old, but very nice car-racing game Sprint, which was originally written by Atari back in 1976 (Sprint 2 for two players) and in 1978 (Sprint1 for one player), respectively. The JavaScript code was automatically translated from the original game's program code. A Prolog program 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 arcade game. The graphics interface and the emulation of the Sprint video hardware were directly coded in JavaScript and rely on HTML5 and the Canvas element. The video hardware of the old arcade machine was only capable of showing very simple 2D character-based playfield graphics with four moving objects (sprites). Today's car-driving games normally have 3D graphics, so I thought it would be nice to have a 3D interface also for Sprint. I wrote an alternative video hardware simulator for Sprint, where the same video RAM and sprite hardware registers, which the original Sprint video circuitry shows as simple 2D character graphics, are interpreted as coordinates and objects in three-dimensional space. The orignal game, in which you take a bird's eye view of the race track, becomes a 3D game seen from the first-person perspective of the driver's seat. But keep in mind, that it is still the completely same game logic and the same program from 1976 running, just graphically interpreted differently! My 3D modelling and programming skills (and also my computer's graphics card speed) are quite limited, so my 3D version is very simple and still suffers from - what I think are - bugs in the (apart from that, really great) Three.js JavaScript 3D library. So, please consider this just a proof of concept. Now, click here to try Sprint directly in your browser.. It is an arcade game, so don't forget to insert coins first by pressing the "5" key, and then start it with the "1" key. Here are example screenshots for the original and the 3D version: In 3D: Thigydaze, sombriks and kenshm 3 Quote Link to comment Share on other sites More sharing options...
rich Posted August 4, 2015 Share Posted August 4, 2015 Beautiful stuff Quote Link to comment Share on other sites More sharing options...
James Cat Posted August 7, 2015 Share Posted August 7, 2015 You've made what I always wanted to make but never had time, *jealous* you've done it with style though, hats off to you, look amazing. Atari Sprint was the first video game I ever saw, in a cabinet at the swimming pool, Bradford, Monday nights, '78/'79 - I was 5. Quote Link to comment Share on other sites More sharing options...
pixelactivity Posted August 11, 2015 Share Posted August 11, 2015 awesome! I can remember that I played it when I was a kid Quote Link to comment Share on other sites More sharing options...
jdnichollsc Posted August 24, 2015 Share Posted August 24, 2015 Ohh man, very nicee. For now, I created random routes and career 2D: http://codepen.io/jdnichollsc/pen/EjJozYhttp://codepen.io/jdnichollsc/pen/PqgvmR I want to develop this: http://codeincomplete.com/posts/2012/6/22/javascript_racer/ Regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.