HylianDev wrote:
Cool engine! I'm always happy to see great new(ish) technologies like HTML5 put to use.
One thing I'd like to point out: If I jump, let go of the jump button, and press it again before I touch the ground, it makes me jump again when I land. You might be doing this intentionally, which is cool, though if you're going for more SMB accuracy, probably make it to where you can only jump if you're touching the ground on the bottom, and the jump button was pressed on this frame and not on the previous frame.
Yes, this is intentional, and really it's due to the nature of HTML5. Since consistent frame rates are harder to achieve using javascript, this code is designed to avoid the feel bad moment of pressing jump as you land, and not jumping at all due to some delay.
I think this was originally suggested by the developer of the engine. However, computers and especially mobile phones have much improved a lot with respect to javascript and speed of computation in the years since this engine was first made. It's possible this feature is no longer necessary, but I see no reason to remove it just yet. Though as you say, it's not typical of a mario game.
While I haven't seen much traction on my Twitch stream, I'm going to keep up with it anyway, just for the heck of it. I'm considering streaming on the weekend too, in addition to my normal streaming schedule.
Thanks for the comments, HylianDev, much appreciated!
[quote="HylianDev"]Cool engine! I'm always happy to see great new(ish) technologies like HTML5 put to use.
One thing I'd like to point out: If I jump, let go of the jump button, and press it again before I touch the ground, it makes me jump again when I land. You might be doing this intentionally, which is cool, though if you're going for more SMB accuracy, probably make it to where you can only jump if you're touching the ground on the bottom, and the jump button was pressed on this frame and not on the previous frame.[/quote]
Yes, this is intentional, and really it's due to the nature of HTML5. Since consistent frame rates are harder to achieve using javascript, this code is designed to avoid the feel bad moment of pressing jump as you land, and not jumping at all due to some delay.
I think this was originally suggested by the developer of the engine. However, computers and especially mobile phones have much improved a lot with respect to javascript and speed of computation in the years since this engine was first made. It's possible this feature is no longer necessary, but I see no reason to remove it just yet. Though as you say, it's not typical of a mario game.
While I haven't seen much traction on my Twitch stream, I'm going to keep up with it anyway, just for the heck of it. I'm considering streaming on the weekend too, in addition to my normal streaming schedule. :)
Thanks for the comments, HylianDev, much appreciated!