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

Fix lgtm warnings #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

chrisgzf
Copy link

@chrisgzf chrisgzf commented Oct 7, 2019

BTW I didn't really get to fully test my changes, because I don't think your game is easy run just by running index.html right? Hahaha.

@@ -1140,7 +1140,7 @@ var SisyphusSheepGame = function(){
backgroundColor: 0x90a4ae
};

renderer = PIXI.autoDetectRenderer(rendererOptions);
var renderer = PIXI.autoDetectRenderer(rendererOptions);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this break your game? And why does it work without the "var"? And why does your lgtm thing give this as a warning, yet when I do something about it, it breaks your game?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renderer needs to be global variable to be used by the library

@lgtm-com
Copy link

lgtm-com bot commented Oct 7, 2019

This pull request fixes 3 alerts when merging ad786dd into afa94eb - view on LGTM.com

fixed alerts:

  • 2 for Self assignment
  • 1 for Unused variable, import, function or class

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

Successfully merging this pull request may close these issues.

2 participants