Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting Racer causes car to allways go left or right #3

Open
jamesludlam opened this issue Mar 14, 2017 · 2 comments
Open

Restarting Racer causes car to allways go left or right #3

jamesludlam opened this issue Mar 14, 2017 · 2 comments

Comments

@jamesludlam
Copy link

jamesludlam commented Mar 14, 2017

Restarting Racer causes car to allways go left or right after crashing once
fixed by adding:

public void resetButtons()
{
up = false;
down = false;
left = false;
right = false;
}

method to gamearena.java and calling in Racer in the start function

@finneyj
Copy link
Owner

finneyj commented Mar 14, 2017

cool. Doing this patch in here should let this happen transparently:
https://github.com/finneyj/Racer/blob/master/GameArena.java#L203

Can you confirm if this works, and if so, send me a Pull Request?

@ghost
Copy link

ghost commented Mar 20, 2017

It has worked however I do not know how to send you a pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants