Mayhem by Matt: HTML 5 Version

warning: Creating default object from empty value in /home/buckman/public_html/neo/modules/advanced_forum/advanced_forum.module on line 492.
Matt Barton's picture

Mayhem: Play it now in your browser!Mayhem: Play it now in your browser!Here's my game "Mayhem by Matt" now fully playable in your browser! Blast those planes, crush those blocks, destroy the mighty PLANE GOD OF ROBOT DEATH that waits for you at the end...!

Mayhem by Matt
The music in this version is by Kevin MacLeod. My old music wouldn't work because they were in MIDI format. I also made some gameplay and coding tweaks, particularly to the collision code. Enjoy!

Overall, the conversion process wasn't bad for this one...Mostly just cleaning up bad code from the original. I learned a lot of stuff making Jeepney Jeepers that I was able to apply here, though I still left some of the spaghetti--hey, if it works, don't fix it, right? Have fun! Just click "read more" to play the game. NOTE: For whatever reason, if you're on Firefox you may not be able to click on the "START" button below. Just hit your ENTER key instead!


Comments

Bill Loguidice
Bill Loguidice's picture
Offline
Joined: 12/31/1969
Works awesome! I can't wait

Works awesome! I can't wait to have a collection of these so we can establish an AA-specific games sub-site.

n/a
Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Well, it works in IE, Safari,

Well, it works in IE, Safari, and probably Chrome (I assume that's what you're using, Bill). I can't get it to register my mouse clicks with Firefox.

n/a
Bill Loguidice
Bill Loguidice's picture
Offline
Joined: 12/31/1969
Firefox has issues
Matt Barton wrote:

Well, it works in IE, Safari, and probably Chrome (I assume that's what you're using, Bill). I can't get it to register my mouse clicks with Firefox.

Right, Martin Parrot confirmed that on Google+ too with Firefox. Chrome is definitely fine, as that's what I'm using, yes. If I get a chance, I'll test it on my iPad 2 and the TouchPad tonight, though I think you'd need to make considerations for touch controls in the programming.

n/a
Rowdy Rob
Rowdy Rob's picture
Offline
Joined: 09/04/2006
Firefox, Chrome, Opera
Matt Barton wrote:

Well, it works in IE, Safari, and probably Chrome (I assume that's what you're using, Bill). I can't get it to register my mouse clicks with Firefox.

I can't get Firefox to work. It doesn't seem to register when I click the "Start" button.

Chrome seems to run it fine.

Opera also seems to run it fine, but Opera utilizes the arrow keys to scroll the browser window up and down. Needless to say, it's hard to play "Mayhem" when the game screen keeps scrolling out of view when you climb ladders.

Still, it's very impressive that it works at all! You now have an online game to your credit! It seems that your game is actually showing the HTML5 abilities/limitations of the various browsers.

Unfortunately, I don't have enough consistent energy to program a game right now, because seeing all this has me psyched to get in on the Gamemaker HTML5 bandwagon.

Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Also, Gamemaker HTML 5 has

Also, Gamemaker HTML 5 has some serious bugs...Second time in a row it's messed up my sprites on a re-load...I have to go in and re-select the images to go with the correct sprites each time.

n/a
Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
I just played through and got

I just played through and got stuck on some show-stopper bugs. Looks like there are STILL major issues with the collisions with moving blocks...Yawn. What's especially aggravating is that GM 5 itself is so glitched I have to re-do a bunch of stuff every time I load it up.

n/a
Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Okay....I think I found the

Okay....I think I found the last of the collision issues (here's hoping). This stuff gets sooo subtle.

Uploading fixed version now. And another one..or six.

Okay, I was able to get all the way through it without noticing any bugs. Good luck to the rest of you guys! I know you're gonna like defeating the boss at the end, and you wouldn't want to miss the Armchair Arcade level. :)

n/a
Jake (not verified)
Every time I beat the boss,

Every time I beat the boss, the game just sits there. Occasionally a couple explosions appear and I think something is going to happen, but then I just sit around and eventually have to commit suicide. I thought maybe that was the point - some meditation on the futility of war and life or something, but I think it is just a bug.

Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Ugh

Ouch. That is a big all right. Seems like HTML 5 broke the code worse than I thought. Anyway, I'll open her up again tomorrow and see if I can fix it.

n/a
Matt Barton
Matt Barton's picture
Offline
Joined: 01/16/2006
Not a bug on my end
Jake wrote:

Every time I beat the boss, the game just sits there. Occasionally a couple explosions appear and I think something is going to happen, but then I just sit around and eventually have to commit suicide. I thought maybe that was the point - some meditation on the futility of war and life or something, but I think it is just a bug.

It works fine on my end. However, I think the culprit is my particle effects--I had about 6 or 7 different fireworks going off, and apparently HTML 5 GM really hates that kind of thing...So I took them all out. It seems to be working now, but please let me know otherwise... Thanks for letting me know.

I'm uploading it now, so make sure to give to give it about an hour and then clear your cache in your browser and such.

n/a

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.