Fungi Forums

TMK Stuff => Game Blog => Topic started by: MEGAߥTE on April 08, 2008, 11:19:21 PM

Title: Super Mario in 14kb JavaScript
Post by: MEGAߥTE on April 08, 2008, 11:19:21 PM
(https://themushroomkingdom.net/board/proxy.php?request=http%3A%2F%2Fthemushroomkingdom.net%2Fimages%2Fblog%2Fmario.png&hash=8eb5d0d89f5e40370731470f079c70bd)

An interesting programming experiment sought to see whether a game could be stored in a single JavaScript file (http://blog.nihilogic.dk/2008/04/super-mario-in-14kb-javascript.html).  The author chose to implement Super Mario Bros. (http://themushroomkingdom.net/games/smb) for the project.  No Flash or Java was used.  While the game isn't coded as completely as the real game (e.g. one level, no power-ups, poor physics, bad music), it is neat to see what can be accomplished in browsers with a small amount of code.  Look at it as a proof of concept of the internet to come.  The author also talks about a few tricks he used, with sprite storage analogous to the way sprites were stored on the NES.  As the game makes use of recent additions to JavaScript/HTML, try upgrading your browser if it doesn't work properly.

Link: nihilogic (http://blog.nihilogic.dk/2008/04/super-mario-in-14kb-javascript.html)
Title: Re: Super Mario in 14kb JavaScript
Post by: ShadowBrain on April 09, 2008, 07:31:31 AM
Look at it as a proof of concept of the internet to come.
You mean the one that's going to revolutionize the face of and/or completely blow up the Earth?
Title: Re: Super Mario in 14kb JavaScript
Post by: Bag of Magic Food on April 09, 2008, 05:02:52 PM
Wait, is that screenshot from the game?  I couldn't get to 1-2 when I played.
Title: Re: Super Mario in 14kb JavaScript
Post by: Super-Jesse on April 09, 2008, 05:29:29 PM
No that's been grabbed from TMK's smb archive.
Title: Re: Super Mario in 14kb JavaScript
Post by: Suffix on April 09, 2008, 11:43:58 PM
Nope, that's definitely a screenshot from the game. Note the enormous coin, five digit score, and 0-0 level. That's the beginning of 1-1, not 1-2!
Title: Re: Super Mario in 14kb JavaScript
Post by: MEGAߥTE on April 09, 2008, 11:51:38 PM
It was re-replaced.
Title: Re: Super Mario in 14kb JavaScript
Post by: missingno on April 09, 2008, 11:52:28 PM
That took up about five minutes of my time.
Title: Re: Super Mario in 14kb JavaScript
Post by: Bag of Magic Food on April 10, 2008, 12:32:15 AM
Megabyte confuses me and then uses my confusion to confuse Suffix.  The cycle of confusion continues.
Title: Re: Super Mario in 14kb JavaScript
Post by: ShadowBrain on April 10, 2008, 07:42:26 AM
^ *Plays "The Circle of Life"*
Title: Re: Super Mario in 14kb JavaScript
Post by: Linkin800 on April 10, 2008, 07:45:21 PM
Megabyte confuses me and then uses my confusion to confuse Suffix.  The cycle of confusion continues.

But then why am I confused of you being confused of him being confused with that confusion of confusion?
Title: Re: Super Mario in 14kb JavaScript
Post by: Super-Jesse on April 10, 2008, 10:36:52 PM
Ok, MB originally used a picture from the JavaScript story, but it wasn't in a proper format to work, so in a rush before work i picked an smb stock photo just to have something there, knowing he or I would change it later.

See, this is why it's best to comment on the story, not the stupid mistakes I make. Then again, we probably wouldn't have any replies..... :-P