Holding down direction key locks snake

Bug #645963 reported by Tom Bell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snakes
High
Tom Bell

Bug Description

When holding down a direction key, the snake is locked to the path of the direction key that was pressed and will not be moveable untill the queue of direction instructions are complete. This is a major bug for players who prefer to hold the keys down while moving and makes the game almost unusable! It must be fixed before any release

Tom Bell (bushbaby2511)
Changed in snakes-game:
importance: Undecided → High
Revision history for this message
Josh Brown (joshbrown) wrote :

This is definitely a major issue and will need to be fixed before 1.0.

Changed in snakes-game:
milestone: none → 1.0
status: New → Triaged
Revision history for this message
Tom Bell (bushbaby2511) wrote :

This is sort of fixed in my linked branch. It works but is slow to react, prehaps due to getch handling of the input queue?

Revision history for this message
Josh Brown (joshbrown) wrote :

I've messed around with your code but I can't figure out how to stop it slowing down the snake's reactions. We must find a way to fix this bug without introducing other serious bugs.

Revision history for this message
Tom Bell (bushbaby2511) wrote :

I've fixed this is the latest revision by flushing the input queue, It seems to work fine for me.

Revision history for this message
Josh Brown (joshbrown) wrote :

Fixed in lp:~snakes-game/snakes-game/deb, revision 35.

Changed in snakes-game:
assignee: nobody → Tom Bell (bushbaby2511)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers