Sign in to follow this  
robertkleffner

[web] Live Beta: Infinite Mario in HTML5!

Recommended Posts

robertkleffner    100
Hey all! I am pleased to announce that you all will be the first to know about the live beta for Infinite Mario in HTML5. I've spent a couple of months porting the Java applet version written originally by Markus Persson (Notch) over to JavaScript.

The link is here: [url="http://mario.fromlifetodeath.com/dev/main.html"]http://mario.fromlif...m/dev/main.html[/url]

BUT FIRST:

There is an issue playing background music in Chrome. Well, there's just issues playing sound in Chrome in general, but background music especially. So there is currently no background music in the Chrome version. If you have any suggestions, I'd be happy to hear them! Except for Flash. I want to keep this strictly non-Flash.

Firefox 4 and Safari seem to work the best. Obviously any IE is out of the question. I have not extensively tested any version lower than 4 for Firefox, so be prepared for some bugs.

The Controls:

S: Enter level on Map, Jump in level
A: Shoot fireball (if fire powerup, obviously)
Left, Right: Movement!

The source code is not compressed (for lower speed browser connections, it is unlikely you will get much enjoyment from my highly unoptimized load process). This means you a free to browse around and see how things were done, or offer suggestions if you have any. Eventually, in a more finalized version, I will be minifying the source code and the uncompressed version to GitHub.

Enjoy!
Rob Kleffner

Share this post


Link to post
Share on other sites
robertkleffner    100
Final version live. Same issues with sound in browsers except Firefox 4. May audio development for HTML5 continue as fast as possible...

[url="http://mario.fromlifetodeath.com/"]http://mario.fromlifetodeath.com/[/url]

Share this post


Link to post
Share on other sites
robertkleffner    100
Thank you for the notice. I should have the issue fixed.
I removed the background music from ALL live versions. Seems to not work even in FF4 on Windows. Sound is still included on the dev version, and I now think Chrome will perhaps perform the best out of all the browsers for the live version. I did notice a severe lag in FF4 on Windows 7, but that could be because I am running Windows 7 on a VM.

Share this post


Link to post
Share on other sites
Mussi    4409
Awesome, that was a long time ago :D. Sound worked fine for me as well in FF4 on Windows 7. It seemed to run too fast though, do you use fixed values that might cause the game to speed up with higher frame rates?

Share this post


Link to post
Share on other sites
robertkleffner    100
It should be frame rate agnostic. However, I did have it set at 30 FPS, so I decreased it to 24 FPS which is what Notch had his version at originally. It is slightly slower now. I'm not sure if I like it as much, it was more challenging at 30 FPS. :) But I'll leave it at 24.

Share this post


Link to post
Share on other sites
D_Tr    362
Played flawlessly through 3 levels of the game. Congratulations on your work! :) I have a question though: Couldn't this potentially cause you a problem if Nintendo found out about it?

Share this post


Link to post
Share on other sites
robertkleffner    100
Thank you all very much!
Perhaps, yes, but Notch still has his up, so I'm assuming it's all good for now. :) If they send over a cease and desist letter, I'll over to give it to them for free. Probably save me some bandwidth issues anyway.

In other news, a competitive version integrated with Facebook is up and running. Hacked it out in 3 hours, so... be wary. :)

Basically how it goes is you get 3 lives to get as far as you can. When you die, and if it's your high score, your high score on the leaderboard is updated. Coins count as 1 point, but getting 100 of them doesn't give you a 1-up, otherwise the game would never end. When you complete a level, you get 100 points plus the amount of time you had left, thus an incentive to finish levels as quickly as possible. :) Enjoy!

[url="http://mario.fromlifetodeath.com/competitive.php"]http://mario.fromlifetodeath.com/competitive.php[/url]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this