benmj / cowtris

A falling block game with cows.
http://benmj.github.io/cowtris/
3 stars 1 forks source link

Piece takes a beat to move #16

Open benmj opened 11 years ago

benmj commented 11 years ago

The game isn't responsive enough for BAGs on high levels:

I think the problem is that when you hold down a left or right button, it takes a beat for the piece to start moving. That causes major issues at the fastest levels!

davisagli commented 11 years ago

Hmm, this one sounds tricky. Is she holding down the key or pressing it repeatedly?

benmj commented 11 years ago

Here's her first email:

A couple more things I've noted as I've played this evening - if you've heard of 'em already, disregard.

The first one might be tricky. And it also might be that my computer is slow...I think I remember being able to turn a piece and then turn it again or move it without having to stop holding down the first button. Does that make sense? It's really only an issue once the game gets really fast. Does that sound like a problem with my computer? I need to play again and see if I explained the right thing...

I don't think computer speed should be an issue. I haven't run any speed tests, but my gut tells me that there is not a lot of computation power required to rotate a few images and paint them to a canvas.

davisagli commented 11 years ago

Ah, maybe we aren't handling multiple keys at the same time correctly then. I remember this was a pain to get workign right in VB since I basically had to implement my own key handling rather than use the built-in events. (It was essential for supporting the two-player mode.)