-
Notifications
You must be signed in to change notification settings - Fork 534
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
Game wont refresh #50
Comments
Yes, I also have this issue. After looking the code, it seems the following code // Read Game state
// (If game is ended or is playing)
GameManipulator.readGameState = function () {
// Read GameOver
var found = Scanner.scanUntil(
[
GameManipulator.offset[0] + GameManipulator.gameOverOffset[0],
GameManipulator.offset[1] + GameManipulator.gameOverOffset[1]
],
[2, 0], COLOR_DINOSAUR, false, 20
); I guess it's because the position of the GAME OVER is changed in the new version of Chrome? My system is:
|
@GritPixel I changed --- a/GameManipulator.js
+++ b/GameManipulator.js
@@ -28,8 +28,9 @@ var GameManipulator = {
gamestate: 'OVER',
// GameOver Position
- gameOverOffset: [190, -82],
+ gameOverOffset: [190, -75], The above change fixes this issue for me. Will send a PR later to make it compatible with different Chrome Browsers. |
compatible(chrome): v59 changed the `GAME OVER` position. (fix #50)
Sir, I had to change back the coordinates to [190, -82] for it to work for me. I am on a mac, and maybe this is system dependent. Great job with this though. |
I got the program to run on Ubuntu. It opens, detects the game, I press "s" then it brings chrome to focus and the Dino runs. The Dino hits the cactus but the program does not recognise this. It just sits on the game over screen. Even in the terminal "GameStatus: PLAYING". It does not change to "OVER". Help would be appreciated : /
The text was updated successfully, but these errors were encountered: