html5 and DOM gets no love for mobile apps/games?

Started by
10 comments, last by Sik_the_hedgehog 12 years, 1 month ago
I was just looking to get inspired and checked out a couple browser mmo's only to find one using html5 in a way far simpler than I ever expected players to tolerate, yet it seems populated.

For example, the game "Lord of Ultima" from EA, uses a canvas game window with what appears to be a DOM interface, which is just a front end "vew" to some database tables updated constantly with ajax.

When a player performs an action, the server starts a timer incrementing table entries for that item. The client simply refreshes it's elements display of table records via ajax every second.

It's basically battling database "records" vs "records". No npcs, no players to synchronize.

Very basic chat, it's like the absolute minimum required to call it an mmo....very interesting as it seems extremely simplistic. Also decent application of canvas in a browser game by a large company. Gave me several ideas to incorporate.

Edit:: Also I'll have to check out the setTimer instead of setInterval. I found when I cut down on globals and wrapped properties/methods within an object it seems to perform very well.

Also looking at custom webkit or standalone V8 framework to run canvas games, I think V8 is on the money converting javascript to machine-code at runtime...now if only they can do the same for mobile devices...
Advertisement
Edit:: Also I'll have to check out the setTimer instead of setInterval. I found when I cut down on globals and wrapped properties/methods within an object it seems to perform very well.

The main difference between setTimeout and setInterval is that the former just calls the callback once while the later keeps calling it constantly (until explicitly removed). Both have exactly the same timing accuracy issues I mentioned before, which is why I suggest against using them for timing purposes and suggest getTime for the job instead (leaving setTimeout/Interval for just keeping the main loop going on regularly).
Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

This topic is closed to new replies.

Advertisement