-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Object Oriented JavaScript #51
Object Oriented JavaScript #51
Conversation
…orks into object-oriented-javascript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Minor change: numerical comparison now changed to comprasion with obj property
Minot change: forEach and push methods changed to .map method
Little mistake in last commit comment -_- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Jobe Myself Забавна штука, я теж так можу, хе :3
а як видалити =Ґ
@Eugene-CG why you close this PR? |
Sorry, I want to delete my comment and click everything I see |
To avoid this situation I always use my code editor instead of web interface) don't worry about the same commit message, if you want to change it use |
Already changed :3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Eugene-CG great job!
A couple of improvements and we are done.
if (this.y < tileSize.height - charactersSize.charboy) { | ||
setTimeout(() => { | ||
alert("You won"); | ||
this.y = tileSize.height * 4 - charactersSize.charboy; | ||
this.x = tileSize.width * 2; | ||
}, 100); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method name is imperative, however the body assumes a condition. This confuses me as a peer developer.
You may want either rename the method or do conditional checks elsewhere where coordinates change happens and let this method just set some coordinates imperatively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last issue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
Object oriented javascript
Demo
Code base
The code is submitted in a dedicated feature branch.
Only code files are submitted.
Please, review.