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

Extend function is not working #3

Open
r34117y opened this issue Mar 21, 2020 · 0 comments
Open

Extend function is not working #3

r34117y opened this issue Mar 21, 2020 · 0 comments

Comments

@r34117y
Copy link

r34117y commented Mar 21, 2020

For those who have problem with extend function: it seems to be missing in current version of ROT.js. You should add this to the top of Game.js file:

Object.prototype.extend = function(a) {
this.prototype=Object.create(a.prototype);
this.prototype.constructor = this;
return this;
};

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

1 participant