Discover the best of the web!
Learn more about Digg by taking the tour.
Super Mario in 14kb Javascript
blog.nihilogic.dk — FTA "Here's an experiment in keepings things small and confined to one Javascript file." gotta love it.
- 3684 diggs
- digg it
- JasonHears, on 04/09/2008, -1/+236don't go left....
- Dokument, on 04/09/2008, -1/+11yeahh.... i'm also loving the Parkinson's Mario.
- chrisaug18, on 04/09/2008, -0/+30....or past the end
- antiorblkflag9, on 04/09/2008, -0/+23That's pretty much always been a seminal rule for Mario games
- lime148, on 04/09/2008, -1/+6Ha ha! ...Seminal.
- nhprm, on 04/09/2008, -0/+3PATERNALISTS!!!
- mmortal03, on 04/09/2008, -0/+1Yep, except for the levels where there were secrets to the left.
- lime148, on 04/09/2008, -1/+6Ha ha! ...Seminal.
- mrm3x1can, on 04/09/2008, -0/+14damn my curiosity
- cowsgonemadd3, on 04/09/2008, -0/+12I went left....call me curious george....I broke the game.
- Squigly, on 04/09/2008, -0/+8I didn't even think of it until you told me not to. And then I did :P
- GliTCH82, on 04/09/2008, -12/+4"Also, those of you complaining about the faithfulness of this implementation or how it's not complete are really missing the point of this excersize."
No, we're not missing the point, but it would be a lot more impressive if you went for quality first, then made it small. I would gladly trade size for quality, given the processing power and bandwidth available today.- GliTCH82, on 04/09/2008, -6/+4Okay, to those idiots burying me, if you think this is impressive, the entire Super Mario Bros. game on the NES fit on a 320 kilobit ROM cartridge (around 40KB). This one ***** level, without the .js compression is around 144 KB. Is it still that impressive?
- Mejogid, on 04/09/2008, -0/+4Perhaps it's occurred to you that the NES was a system designed for games and included much of the requisite functionality, whereas javascript contains extremely limited graphics support. Or that a javascript file is never going to be as economical in file size as a hand-tuned assembly executable. Or that if you're interested in an accurate implementation you can go and use an emulator, and this is a proof of concept and exercise in pushing a language to limits for which it wasn't designed.
Seriously, why the hell would you want to make a fully featured and faithful implementation in javascript? How would that serve more of a purpose than this?
- Mejogid, on 04/09/2008, -0/+4Perhaps it's occurred to you that the NES was a system designed for games and included much of the requisite functionality, whereas javascript contains extremely limited graphics support. Or that a javascript file is never going to be as economical in file size as a hand-tuned assembly executable. Or that if you're interested in an accurate implementation you can go and use an emulator, and this is a proof of concept and exercise in pushing a language to limits for which it wasn't designed.
- vmos, on 04/09/2008, -0/+5you're missing the point, just because power and bandwidth is available on your system is no reason to squander it. If you want a perfect mario then go and buy the game or download the rom
- GliTCH82, on 04/09/2008, -2/+2Quite simply put, you're wrong. Sacrificing functionality for a lower file size isn't an excuse, there is nothing impressive about what this guy did.
- t0ken, on 04/09/2008, -0/+3Please, by all means make a "complete" and thus "impressive" version of this. This was a proof-of-concept. Not something for you to play all day long. If they had intended to recreate the game then they probably wouldn't have done it in Javascript, don't you think? :
- GliTCH82, on 04/09/2008, -3/+1So what exactly did they prove with this concept? That it's possible to code bloated versions of popular 8-bit games that aren't feature complete? If they were testing their compression system they could have done that with anything, why bother making a shoddy Mario game?
- dkbg, on 04/10/2008, -0/+2Quite simply GliTCH82, you are ridiculously stubborn and your unwillingness to see past your own disgruntled opinion is laughable.
- GliTCH82, on 04/10/2008, -1/+1I guess we'll just have to agree to disagree, then.
- GliTCH82, on 04/09/2008, -6/+4Okay, to those idiots burying me, if you think this is impressive, the entire Super Mario Bros. game on the NES fit on a 320 kilobit ROM cartridge (around 40KB). This one ***** level, without the .js compression is around 144 KB. Is it still that impressive?
- theodenking, on 04/09/2008, -0/+2Cut them a break, it's in javascript ffs.
- funkytaco, on 04/09/2008, -5/+455Sorry, Mario, but your princess.js is in another castle.js
- Zarokima, on 04/09/2008, -17/+17Another? I didn't even come across the first one.
It's neat that all this fits into a tiny 14kb script, but he really should have kept the mushrooms, that one pipe you can go down, and the end of the level (and while we're at it, have the brick blocks bounce when you hit them like the coin blocks).- d3faultnet, on 04/09/2008, -3/+31it's was probably incredibly difficult to code as it is, and you want MORE!?!? it won't be hard for you to get the source files, so why don't you go add it in eh?
- meeponline, on 04/16/2008, -0/+0Exactly. This is the source, if you want to add those things in:
http://www.nihilogic.dk/labs/mario/mario_compresse ...
But most probably you don't have to skill to do it. So don't complain about something unless you have paid for it or you could do better yourself.
- meeponline, on 04/16/2008, -0/+0Exactly. This is the source, if you want to add those things in:
- foofoobee, on 04/09/2008, -0/+10The point of this was not to create a fully playable game. As it says in the first sentence: this is "an experiment in keepings things small and confined to one Javascript file." It's just a toy, relax.
- Solis, on 04/09/2008, -1/+5What's the point in even making it 14kb then? Why not eliminate the goombas and the blocks too and make it even smaller? Point being if you're going to use World 1-1 of SMB, then you might as well make the entire level and see how small you can get it. This fails miserably.
- dinostabOMG, on 04/09/2008, -2/+2We'll leave that to you. Think you could have that by tomorrow morning?
- d3faultnet, on 04/09/2008, -3/+31it's was probably incredibly difficult to code as it is, and you want MORE!?!? it won't be hard for you to get the source files, so why don't you go add it in eh?
- burnin8r28, on 04/09/2008, -23/+4*****.js
- ZeroCool07, on 04/09/2008, -7/+2Lmao that was really good.
- wibambau, on 04/09/2008, -7/+2Well for his sake I hope at least they're in the same .jar
- GliTCH82, on 04/09/2008, -0/+5This is javascript, not java. This is all rendered and ran by built-in browser capabilities, you don't even have to have the Java Runtime installed, and all he needed to do was make one .js file.
- crazyshiver, on 04/09/2008, -0/+0http://digg.com/nintendo/Super_Mario_Galaxy_Homose ...
wft^^^
- Zarokima, on 04/09/2008, -17/+17Another? I didn't even come across the first one.
- Pottypotsworth, on 04/09/2008, -28/+6The bricks don't bump when you hit them as little Mario - Game is Meh :o)
- theaceoffire, on 04/09/2008, -5/+39You are Meh.
- spammishking, on 04/09/2008, -13/+2no you are
- evilesttoast, on 04/09/2008, -9/+2NO YOU!
- Spuy767, on 04/09/2008, -2/+9C-C-C-C-C-C-COMBO BREAKER?
- MewtwoReturns, on 04/09/2008, -1/+3DOIN IT WRONG -- it's NO U
- Airsoft1117, on 04/09/2008, -1/+4And you are indeed meh as well
- spammishking, on 04/09/2008, -3/+1no you are
- evilesttoast, on 04/09/2008, -9/+2NO YOU!
- spammishking, on 04/09/2008, -13/+2no you are
- Spuy767, on 04/09/2008, -2/+1I've seen something like this done in Flash, but not in the traditional Flash, written completely in action script, which is quite good.
- Iwantawii, on 04/09/2008, -2/+6http://i30.tinypic.com/xm28f9.jpg
- c0baltfish, on 04/09/2008, -0/+7Dipping into the mspaint are we?
- theaceoffire, on 04/09/2008, -5/+39You are Meh.
- crampy20, on 04/09/2008, -26/+4(even if you die you can jump around the screen.)
how is this minutia news?- iofthestorm, on 04/09/2008, -2/+70Because it's an awesome example of programming. This is real tech news, and people are impressed by it.
- Solis, on 04/09/2008, -3/+1Simple minded people are impressed by this. Looks like you and at least 62 others qualify.
- joebaloney, on 04/09/2008, -0/+1Hey studly, why don't you point us to some of your programming examples?
- Solis, on 04/09/2008, -3/+1Simple minded people are impressed by this. Looks like you and at least 62 others qualify.
- Spuy767, on 04/09/2008, -2/+7It's an example of the lost art of efficient programming. The exponential inreas in computer muscle has created a breed of lazy programmers. The original 128k mac would boot up in 12 seconds, and the typical application would launch in about 1, and that was on a an 8Mhz processor. Why, can't I, with three thousand times the computational muscle, manage to launch adobe photoshop in ten? Of course, the bulk of the problem is disk throughput, but all things considered, I would expect marginally better performance.
- Myztry, on 04/09/2008, -0/+2Same with the Amiga. In 1985, they released a 32 bit pre-emptive multitasking (the defining point of Modern Computing) GUI OS in just 256K of ROM. The Desktop component (Workbench) was just a small part of a 880K floppy (or Harddrive). The OS libraries were beautifully written and based around an Object Orientated design where typed results were returned as a structured objects.
Sure modern OS's are more complex but there is no where near the gain there should be going from 7Mhz to 3000+ Mhz. Not to mention the amazingly powerful components like modern video cards.
It's disappointing that nearing a quarter of a century later, the majority of computer are still 32 bit, and choking on some of the simplest of tasks despite having huge resources such as RAM, processor and hardware acceleration.
- Myztry, on 04/09/2008, -0/+2Same with the Amiga. In 1985, they released a 32 bit pre-emptive multitasking (the defining point of Modern Computing) GUI OS in just 256K of ROM. The Desktop component (Workbench) was just a small part of a 880K floppy (or Harddrive). The OS libraries were beautifully written and based around an Object Orientated design where typed results were returned as a structured objects.
- joebaloney, on 04/09/2008, -0/+0*Crap, meant to reply to spuy767*
I wouldn't say lazy programmers. Why bother trying to optimize a few instructions when the net result is totally lost within the swarm of huge OS's and apps and the few instructions you save are a fraction of a nanosecond.
It just isn't as important as it once was and would generally be a waste of time to spend that much time poring over tiny bits of code.
Applications are MUCH bigger and more complex now and it isn't feasible in modern applications to optimize the same way.
That being said, their is certainly a time and place for everything still, some programs do need optimized carefully and careful optimzation can make a big difference in specific places in an algorithm even in large scale applications.
- iofthestorm, on 04/09/2008, -2/+70Because it's an awesome example of programming. This is real tech news, and people are impressed by it.
- arcooke, on 04/09/2008, -40/+3There really should have been more effort put into this before it was released, even if it IS a proof of concept... simple things like preventing mario from going left, bumping blocks as small mario, plant enemies in the tubes.. leaving these incredibly simple things out is unacceptable considering how much work was put into it otherwise.
- theaceoffire, on 04/09/2008, -3/+35I was impressed.
- RyeBrye, on 04/09/2008, -2/+6I do agree with you about the missing things...
but - I think it came down to marginal analysis... The amount of effort to implement those things would not be worth the marginal benefit. - jokr004, on 04/09/2008, -1/+9but if they had added more, it wouldn't be a 14kb js
- kaniz, on 04/09/2008, -0/+14Had this been released as a "beta of a fully playable game that you are expected to pay for" then I fully agree
As a "Hey, this is a thing I've been working on because I'm geeky and like to try new things, what do you think?" - its fine. Its neat, it has me interested and I find it impressive.
Had this been released as a 'final playable product' on a internet gaming site - I'd fully agree with you. But, for what its released as / intended for - its fine. - Myonosken, on 04/09/2008, -1/+4Unacceptable? I think I can safely speak for everyone when I tell you to shut the ***** up, or do better.
- TheTjalian, on 04/09/2008, -1/+1+50, this demo is awesome.
- ghgh1313, on 04/09/2008, -6/+31does anyone else's browser download a file called "unknown" when you die?
- dcoolidge, on 04/09/2008, -4/+11nope
- liquidtaco, on 04/09/2008, -3/+16mine did. maybe this is just a conspiracy to install rootkits on everyone's computers.
- hadak, on 04/09/2008, -0/+4no, we're not sony here.
- GliTCH82, on 04/09/2008, -3/+2Because Sony is the only entity ever that actually released malware into the wild.
- hadak, on 04/09/2008, -0/+4no, we're not sony here.
- liquidtaco, on 04/09/2008, -3/+16mine did. maybe this is just a conspiracy to install rootkits on everyone's computers.
- MattNF, on 04/09/2008, -1/+10Yeah, it did for me.
- ligyron, on 04/09/2008, -1/+18Well they can't exactly name the file "heaven" or "hell"
- dcoolidge, on 04/09/2008, -4/+11nope
- hektur, on 04/09/2008, -4/+378Oh my god! Bush.js is the same as cloud.js.
- kevir, on 04/09/2008, -27/+4Your mom.js
- EwMo, on 04/09/2008, -2/+7is-hot.js
- turpenine, on 04/09/2008, -19/+4bush's head is in the clouds?
- pikagrue, on 04/09/2008, -0/+16You ruined my day.js
- jttennisplaya81, on 04/09/2008, -0/+11I still can't get over that =[
- hawk3210, on 04/09/2008, -0/+8My whole life has been a lie since I first realized that horrible, shocking news.
Not as much of a lie as the cake, however.
- kevir, on 04/09/2008, -27/+4Your mom.js
- chawkie, on 04/09/2008, -1/+39That is some deranged music...
- antdude, on 04/09/2008, -1/+8I didn't get any music. :(
- timisondigglol, on 04/09/2008, -13/+63Thats cute attempt. It doesn't play anything like Mario though.
Dugg for cool use of javascript regardless.- antiorblkflag9, on 04/09/2008, -2/+9Why are all of the boxes coins
And the goombas walk the wrong direction where the fire flower should be.- dubbs688, on 04/09/2008, -3/+4That, and the file is actually larger then 144KB, they used a compression tool to get it that small. Great idea, just poorly executed.
- MtheoryX, on 04/09/2008, -3/+5Your link/article of a better version would be ... where?
- GliTCH82, on 04/09/2008, -3/+2http://en.wikipedia.org/wiki/List_of_NES_emulators
- telepheedian, on 04/09/2008, -2/+3http://www.virtualnes.com
- MtheoryX, on 04/09/2008, -3/+5Your link/article of a better version would be ... where?
- dubbs688, on 04/09/2008, -3/+4That, and the file is actually larger then 144KB, they used a compression tool to get it that small. Great idea, just poorly executed.
- matters5, on 04/09/2008, -2/+6Read the ***** article: "It is by no means a complete clone or anything, it's not even an entire level and several key things are missing, such as mushrooms, Koopas and stuff. It was merely done as a sort of proof-of-concept and to see how small it could get."
- GliTCH82, on 04/09/2008, -5/+1Well, that's great, I wish I could get recognition for my jpeg compressed version of a Microsoft Paint bmp file version of the Mona Lisa that's under 2 KB. Sure it doesn't look like a Mona Lisa but it's an "exercise in seeing how small I can make something that's not quite as good as the original".
- tyywebb, on 04/09/2008, -0/+1ME LOVEE SUPER HIGH JUMP MARIO!!!!!!!
- antiorblkflag9, on 04/09/2008, -2/+9Why are all of the boxes coins
- scy1192, on 04/09/2008, -5/+11it may be my computer, but it's unplayable at 8 fps (I would estimate)
- Justin6512, on 04/09/2008, -3/+6yeah defiantly your computer
- theblt, on 04/09/2008, -0/+9http://www.d-e-f-i-n-i-t-e-l-y.com/
- bobartig, on 04/09/2008, -4/+3ran fine on my c2d macbook pro in firefox 2
- colonelxc, on 04/09/2008, -2/+4Nobody cares what computer you have.
- tyywebb, on 04/09/2008, -0/+2ran fine on my powerbook g4 in safari 3.1
- colonelxc, on 04/09/2008, -2/+4Nobody cares what computer you have.
- Justin6512, on 04/09/2008, -3/+6yeah defiantly your computer
- Flummoxer, on 04/09/2008, -20/+6Buried as inaccurate. >:( You can't go down the pipe to get the coins.
- Chugaboy, on 04/09/2008, -5/+4is that what you do down there?.js
- TheRealToma, on 04/09/2008, -2/+14Run into a goomba then hit jump! You can fly!!! Sorta...
- jttennisplaya81, on 04/09/2008, -0/+4You can keep jumping and you just stay in the air haha
Too bad you can't move left or right though. (You're dead)
- jttennisplaya81, on 04/09/2008, -0/+4You can keep jumping and you just stay in the air haha
- x0rcist, on 04/09/2008, -20/+3That game sucks. The music isn't close. The controls lag. I'll stick to the console, thank you.
- AntzNZ, on 04/09/2008, -0/+10It's to show of what can be done in such a small size, with javascript. Not for the sole purpose of entertainment.
- Garofoli, on 04/09/2008, -9/+2http://nintendo8.com/game/629/super_mario_brothers ...
WIN! - CLShortFuse, on 04/09/2008, -0/+163For comparison: The original Super Mario Bros NES cart is 40 kilobytes.
- iofthestorm, on 04/09/2008, -0/+95Well, this is actually only World 1-1 so this is more bloated, but then that was probably assembly-ish language or some low level language, whereas this is javascript with insane workarounds to get around Javascript's limitations. Personally, the javascript part is more impressive to me than the 14kb part.
- ers35, on 04/09/2008, -9/+2That means the NES cart is 320 kilobits.
This game is 14 kilobits.- akwok, on 04/09/2008, -0/+9That means the NES cart is 40 kilobytes.
This game is 14 kilobytes.- ers35, on 04/09/2008, -0/+1The submitter was incorrect in saying that the file was "14kb". Sorry.
- akwok, on 04/09/2008, -0/+1It usually helps to actually read the article before you comment anyways...
- akwok, on 04/09/2008, -0/+9That means the NES cart is 40 kilobytes.
- webtweakers, on 04/09/2008, -0/+1Javascript's limitations? Which ones?
- knetworx, on 04/09/2008, -0/+3As a game developer, the only thing that impresses me about this *at all* is that it's in javascript. If the other levels were included, and all functionality, this game would be well over the size of the original. It's not even close to the efficiency of the original game, even taking into account that this one's in javascript. You want to be impressed? Ask a studio who developed a game for the Nintendo DS to develop a game for a console. I've worked with people who have made games for the DS, and their code is amazing (and makes this stuff look pathetic).
Anyway, kudos for writing it in js, but I wouldn't go around bragging about the size unless you can finish the rest of the game with all functionality, and still have it under the size of the original.
- ers35, on 04/09/2008, -9/+2That means the NES cart is 320 kilobits.
- LocalDocal, on 04/09/2008, -2/+9Aside from the aforementioned World 1-1 only, the game is also noticeably missing some things from the original, such as mushrooms, animations, and so on. Hell, some of the coin blocks aren't even working.
- bobartig, on 04/09/2008, -0/+3if you hit a coin block on the edge, it doesn't work, gotta be square under it. I mean, its not SMB, but its a 'reasonable facsimile' made from completely different tools.
- Coded1, on 04/09/2008, -1/+9Don't forget that was after compression using hardware geared for gaming and a programming language to suit it. Not some script that is meant for you to make minor changes to a web page to amuse visitors.
- joebaloney, on 04/09/2008, -0/+2Yeah, but a lot of it is the basic graphics setups and algorithms which are included here in level1. So adding an extra level would not take up nearly as much space.
- iofthestorm, on 04/09/2008, -0/+95Well, this is actually only World 1-1 so this is more bloated, but then that was probably assembly-ish language or some low level language, whereas this is javascript with insane workarounds to get around Javascript's limitations. Personally, the javascript part is more impressive to me than the 14kb part.
- qwerty314, on 04/09/2008, -1/+18Not perfect, but dugg for 14kb.
- wondertwins, on 04/09/2008, -2/+18that was pretty fun. However I was dissapointed when i jumped off the ledge and there was no flag.
- Justin6512, on 04/09/2008, -0/+6there's no mushroom at the beginning either :(
- DavidTTT, on 04/09/2008, -12/+1i know its mario but come on ppl theres only so many things you can do to this game
- sailadayaway, on 04/09/2008, -6/+1Trying to jump and move switches my screens in Spaces... =(
- megagram, on 04/09/2008, -0/+6Stop holding down Control wihile playing? Get a better keyboard?
- telepheedian, on 04/09/2008, -1/+1Get a real computer?
- djam, on 04/09/2008, -4/+1This is cool :D
- cccelestial, on 04/20/2008, -0/+0Super Mario is the best game!!!
- jayb1rd, on 04/09/2008, -13/+8The only "Super Mario" I believe in right now is Mario Chalmers.
Rock Chalk Jayhawk!- nhprm, on 04/09/2008, -1/+3I never got why its 'rock chalk' What does that mean? I thought it was rock chock Jayhawk.. like.. chock full of pride, or something. In any and all cases, its lame
- jayb1rd, on 04/09/2008, -0/+3From KUsports.com:
"The tradition of the Rock Chalk Chant dates to 1866. The chant first began as "rah rah rah Jayhawk" repeated three times. Several years later, an English professor suggested Rock Chalk so that it would rhyme with Jayhawk. It was also suggested because of all the chalk rock- or limestone- found throughout the region.
In 1897 it became the official cheer for Kansas University. The Rock Chalk chant is a tradition that must be heard to be appreciated.
The chant begins low and gradually builds in volume. There are pauses between each word to allow the students a few seconds to yell and scream. By the end of the chant, the gym erupts as students yell as loud as they can."
U.S. president Teddy Roosevelt called it the greatest college chant he had ever heard. In the 1920 Summer Olympics, Albert I of Belgium asked for a typical American college yell, and gathered athletes replied with the chant.
- jayb1rd, on 04/09/2008, -0/+3From KUsports.com:
- ConDog86, on 04/09/2008, -3/+0pshhhh KU....go STATE!!!!!!!!!!!!!
- abird, on 04/09/2008, -0/+3Yeah, they were pretty impressive in the tournament. Only not.
- ConDog86, on 04/09/2008, -0/+0lol...cant say i didnt see it coming. but if beasley stays, we'll be you guys next year. did you check out mass street after the win?
- jayb1rd, on 04/09/2008, -0/+1I was there!
- ConDog86, on 04/09/2008, -0/+0I was there when you guys beat UNC.....nuts, thats all i can say
- ConDog86, on 04/09/2008, -0/+0lol...cant say i didnt see it coming. but if beasley stays, we'll be you guys next year. did you check out mass street after the win?
- abird, on 04/09/2008, -0/+3Yeah, they were pretty impressive in the tournament. Only not.
- nhprm, on 04/09/2008, -1/+3I never got why its 'rock chalk' What does that mean? I thought it was rock chock Jayhawk.. like.. chock full of pride, or something. In any and all cases, its lame
- D14BL0, on 04/09/2008, -1/+3Nice concept. Still needs work, but neat to kill time with.
- mediaspree, on 04/09/2008, -3/+9no bigness?
- VgRasta, on 04/09/2008, -1/+3That's what she said
- scarz99, on 04/09/2008, -12/+4This thing sucks.
- noig3, on 04/09/2008, -2/+2I agree. Prepare for thumbs down from the sheeple.
- wesw02, on 04/09/2008, -3/+3Sucks? Dude, it may not live up to your fan boy expectations of the game, but understand the beauty is that it is written in javascript.
- szeyean, on 04/09/2008, -4/+0dont go to right too much also when u complete.. ahahhaa
- slackerxpc, on 04/09/2008, -24/+4Sucks, there is no sense in making it small these days, everyone has at least a 5mb/s down / 2mb up connection and virtually unlimited storage space.... waste of time
- DeathJux, on 04/09/2008, -0/+21Efficiency is ALWAYS a goal to strive for, regardless of other circumstances.
- lucutus, on 04/09/2008, -0/+11You FAIL at the internets. A very small percentage has the connection speed you speak of world wide. Efficient code makes the financial world work. Would you want to wait for 17 connections and .net services to load up in order to swipe your debit card and pay for your beer? Do you have any idea how much data is still processed even in the USA at 2400 baud via modem? It's because it is reliable and works in poor conditions where MNP5 is all that can overcome the weak or noisey lines. Without efficient code this among many other data services would fail. Too many believe it's fine to just call on full libraries of code for one function rather that write efficient code and choose functions carefully based on load and cycles.
- psykiv, on 04/09/2008, -0/+22mb up? I only know a few people with 5mb down, but i dont know anyone who has 2mb UP at their house.
- Spuy767, on 04/09/2008, -0/+2Bill, is that you?
- Switch07, on 04/09/2008, -2/+35Mario without the shrooms?? what is this???
anyways... props for making it 14kbs - mediaspree, on 04/09/2008, -16/+11WTF the clouds ARE THE SAME AS THE BUSHES!!!
- Shrubber, on 04/09/2008, -2/+4It was that way in the original game too, for anyone who didn't get the joke.
- hadak, on 04/09/2008, -1/+2OMG RLY?
- quarkie, on 04/09/2008, -1/+6 loadSpriteData(aPalette2, aSpriteData[14]), // 19 Bush Left
loadSpriteData(aPalette2, aSpriteData[15]), // 20 Bush Mid
loadSpriteData(aPalette2, aSpriteData[16]), // 21 Bush Right
loadSpriteData(aPalette3, aSpriteData[14]), // 22 Cloud Left
loadSpriteData(aPalette3, aSpriteData[15]), // 23 Cloud Mid
loadSpriteData(aPalette3, aSpriteData[16]), // 24 Cloud Right
loadSpriteData(aPalette3, aSpriteData[17]), // 25 Cloud Bottom Left
loadSpriteData(aPalette3, aSpriteData[18]), // 26 Cloud Bottom Mid
loadSpriteData(aPalette3, aSpriteData[19]), // 27 Cloud Bottom Right
Seems like he used diff sprites....- Burn, on 04/09/2008, -0/+8Actually the code you just posted proved he is using the /same/ sprites, just with a different palette.
- quarkie, on 04/10/2008, -0/+1whoops. wow I read that wrong.
- Burn, on 04/09/2008, -0/+8Actually the code you just posted proved he is using the /same/ sprites, just with a different palette.
- Shrubber, on 04/09/2008, -2/+4It was that way in the original game too, for anyone who didn't get the joke.
- dagamer34, on 04/09/2008, -1/+5Playing this on OS X Leopard is a pain because Ctrl + arrow key = moving to a new space.
- woodman445, on 04/09/2008, -0/+2You can just push up to jump, not the same I know but it's a short game.
- Laxaloot, on 04/11/2008, -0/+1Why on earth are you pressing ctrl+arrow key for the game anyway? and also, you can just go into sys prefs and change what key combo is space change
- Psythik, on 04/18/2008, -0/+1Switch to Windows and/or Linux.
- hotsoda, on 04/09/2008, -0/+6Anyone care to experiment to see if this works with the iPhone/iPod touch?
- ddrace, on 04/09/2008, -0/+5It runs on my iPhone (very slowly), but you can't play it because there's no way to simulate the arrow keys, at least that I can figure out. Music doesn't seem to work, either, but I'm not surprised.
- headzoo, on 04/09/2008, -3/+1So is doing cool things with Javascript the new demo scene?
- hackysackwizard, on 04/09/2008, -2/+30Ahh, I see. He saved space by using the same sprite for the cloud as the bushes. Ingenious!
- agentb111, on 04/09/2008, -3/+1the cloud and the bush were the same sprite (just recolored) in the original NES version, too
my head exploded when I finally realized that.- ThreeDee912, on 04/10/2008, -0/+2I detect that someone's sarcasm detector is broken...
- agentb111, on 04/09/2008, -3/+1the cloud and the bush were the same sprite (just recolored) in the original NES version, too
- kahlessreborn, on 04/09/2008, -9/+1Its not a complete mario game, it doesn't have the music, no sound effects, and as small Mario you cant hit bricks to kill enemies from below. Also the enemies aren't timed as they are in the NES version.
- aplardi, on 04/09/2008, -1/+22Javascript..... iPhone... java script.... iphone...
/me tries
it runs... wow... you cant...control it.. but it runs... oh how i long for java script iphone games - badlogik, on 04/09/2008, -12/+6I can't play it in either Safari or Firefox :( The graphics are all jumbled.
- Tarkaan, on 04/09/2008, -2/+10Looks fine in FF.
- EwMo, on 04/09/2008, -2/+5Looks fine in Safari. I played the little version w/o music.
- Scira, on 04/09/2008, -2/+1Only the with music version gets jumbled for me in FF
- jserio, on 04/09/2008, -2/+1It is broken for me as well (ff 2). From the site:
-----
Also, I had a suspicion encoding could cause problems. "ap" had this to say in the comments:
"For me, rendering is broken if the browser default encoding is set to anything but Latin-1 (e.g. to Windows Cyrillic AKA Windows-1251)."
----- - smokyjoewood12, on 04/09/2008, -0/+2works in firefox for me
- Canadacdn, on 04/09/2008, -0/+21Damn, Mario's been training! He can outrun the friggin' screen!
- 955701, on 04/09/2008, -0/+3Argh! Damn you Google Desktop!!!
- Filter, on 04/09/2008, -0/+3Wow, it's not something I could stand to play for too long but in 14kb of javascript the guy has to be commended.
- Dricon, on 04/09/2008, -0/+2Cool for being such a small size, but it's not really playable.
- Dejital, on 04/09/2008, -0/+1Can't jump backwards... :(
- rsdigi, on 04/09/2008, -8/+1Wow it took someone over twenty years to cut a file in half? (the original SMB is 30kb) And they couldnt even get it done right? BTW, the NES limited the sprites to only four sets of three sprite colors anyway.
- Jibberwalk, on 04/09/2008, -1/+4I think you're missing the point. It's not necessarily the size of 14kB that is impressive... but intead the fact that it is coded in 100-percent javascript. That's a really neat achievement.
- Typhoon2009, on 04/09/2008, -2/+2And this is Javascript as in, say, www.internetisseriousbusiness.com right? Not Java as in, idk, Text Twist?
- grimward, on 04/09/2008, -7/+2Yeah, I don't get how this is "impressive" either if you compare it with the original. Buried for being well.. just lame I guess.
- Jibberwalk, on 04/09/2008, -1/+4I think you're missing the point. It's not necessarily the size of 14kB that is impressive... but intead the fact that it is coded in 100-percent javascript. That's a really neat achievement.
- rakstar, on 04/09/2008, -0/+19can't wait for the Super Mario Galaxy version
- Tarkaan, on 04/09/2008, -1/+2Also... I don't know if you're running in XP... But don't go CTRL-ALT-L or R.
- greenlight2001, on 04/09/2008, -0/+1Why? I don't want to try...
- jojo1224, on 04/09/2008, -0/+1WTF it does nothing and im running xp pro sp2. I tried CTRL-ALT-L and CTRL-ALT-R and got nothing. What was it supposed to do?
- exeterhomie, on 04/09/2008, -0/+0it doesnt do *****, except in opera web browser, it open links
- closetosomet, on 04/09/2008, -0/+4he's using integrated intel graphics, it flips your screen.
- Tarkaan, on 04/09/2008, -0/+1You are correct, sir! I don't recall this phenomenon with my old A30 (also Intel, IIRC)
- Gonasadude, on 04/09/2008, -6/+1It bother anyone else that this is called Super Mario? This version is just Mario Bros.
- wesw02, on 04/09/2008, -2/+1Yea, was going to comment about that.
- Doomsan, on 04/09/2008, -0/+3NO. It's called Super Mario Bros.
- wesw02, on 04/09/2008, -2/+1Yea, was going to comment about that.
- EwMo, on 04/09/2008, -0/+1You can still jump when you die. It's amusing... for about 10 seconds
- TimesHero, on 04/09/2008, -1/+2How would one get this working in eclipse? (I'm not a programmer, but I have a compiler... just in case...)
- andymadigan, on 04/09/2008, -0/+3It's JavaScript, not Java, no compiler needed. JavaScript and Java are not related, JavaScript was originally called LiveScript and was renamed for marketing purposes.
- homercles337, on 04/09/2008, -7/+1Is this IE only or something? ***** hacks...
- melonade, on 04/09/2008, -9/+3THE BUSHES LOOK LIKE THE CLOUDS
- TimeLincoln, on 04/09/2008, -3/+2I wonder if when Super Mario first came out people were like "WOW look at those graphics!"
- troopa, on 04/09/2008, -0/+7Yep, that's basically how they felt, actually.
- Maver1c, on 04/09/2008, -2/+7Yes they did, why wouldn't they? You're kids won't be impressed with the games you played either.
- Twelve-60, on 04/09/2008, -1/+6You are kids won't be impressed?
- Maver1c, on 04/10/2008, -0/+2*****.
- Twelve-60, on 04/09/2008, -1/+6You are kids won't be impressed?
- Maver1c, on 04/09/2008, -2/+7Yes they did, why wouldn't they? You're kids won't be impressed with the games you played either.
- Pherdnut, on 04/09/2008, -1/+1It definitely compared favorably to Mario Brothers on the Atari 5800.
- o0joshua0o, on 04/09/2008, -0/+3Yes, I distinctly remember being astounded at how good the graphics looked on my brand new NES.
- PersonX2, on 04/09/2008, -0/+1Yoiu speak as if those were ancient times. Yes, we did think the graphics were awesome. I also remember thinking the same with SuperNES, Sega Genesis, 3DO, and Playstation.
- Krettis, on 04/09/2008, -0/+1I remember playing this for the first time and the graphics just blew me away.... This game-era was beyond my imagination.
- troopa, on 04/09/2008, -0/+7Yep, that's basically how they felt, actually.
- R75700, on 04/09/2008, -0/+1when you die, you can keep jumping. Press up as he falls after getting killed. I did it for about 2 minutes before I just let him fall off the screen.
-
Show 51 - 85 of 85 discussions

