Create an Account
username: password:
 
  MemeStreams Logo

Old school Computer games using <CANVAS>

search

Acidus
Picture of Acidus
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Acidus's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
Old school Computer games using <CANVAS>
Topic: Miscellaneous 9:29 pm EDT, Oct  8, 2009

This article talks about a guy who ported some older Sierra computer games to the browser using the CANVAS tag. Thats not whats cool. What is cool is this:

I was able to convert the logic to javascript, but there was one big problem: Sierra’s code used GOTO statements, and those could jump anywhere in the code, even inside a nested “if”-statement. It seemed unsolvable in javascript.

I sat down together with Sjoerd Visscher, one of my collegues at Q42, and we came up with a solution. Using a decompilation approach to get rid of nested “if”-statements and putting the whole shebang inside a huge switch/case statement, we could mimic line numbers and GOTO’s while maintaining performance. World domination was within reach :-D

He is emulating line numbers using a giant SWITCH Case where each "case" statement is a line number! Neat hack!

Old school Computer games using <CANVAS>



 
 
Powered By Industrial Memetics
RSS2.0