Bug 358694

Summary: Can teleport ball when coming out of pause
Product: [Applications] kollision Reporter: John Eric Sanders <spamgoeshere>
Component: generalAssignee: Paolo Capriotti <p.capriotti>
Status: CONFIRMED ---    
Severity: normal CC: kde-games-bugs-null, schwarzer
Priority: NOR    
Version First Reported In: 0.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description John Eric Sanders 2016-01-28 17:44:12 UTC
When the game comes out of a pause event (either through a pause key press or by the window losing focus [mine was through focus-follows-mouse, and mousing over a different window]), the player ball will appear under the new location of the mouse.  This can be used to hide in one corner of the playing field, then teleport to a new (hopefully safe) location.


Reproducible: Always

Steps to Reproduce:
Method A
1.Pause game with P keypress
2.Move mouse
3.Unpause game

Method B
1.  Set focus-follows-mouse to TRUE
2.  Place a window from any other application next to play field.
3. During play, move mouse to other application's window.
4.  Continue from step 2 in Method A.

Actual Results:  
Player ball escaped danger, teleporting to new location.

Expected Results:  
Teleportation should not be allowed.

Suggested fix -- display the player ball during pause events, and only allow coming out of pause when mouse is over the ball.
Comment 1 Frederik Schwarzer 2016-02-04 13:19:49 UTC
Hmm, not sure how a fix for this could look like.

One reasoning might be that this is not a competitive online game with global stats and if you wanted to cheat against yourself, you could just edit ~/.config/kollisionrc and add your preferred high score. :)

Or would it be feasable to relocate the mouse cursor?