Skip to content

initial commit - #1

Open
DaBusyB wants to merge 6 commits into
masterfrom
brandi-apetsi
Open

DaBusyB wants to merge 6 commits into
masterfrom
brandi-apetsi

Conversation

@DaBusyB

@DaBusyB DaBusyB commented Jan 23, 2019

Copy link
Copy Markdown
Owner

No description provided.

@DaBusyB
DaBusyB requested a review from kyranmccann January 23, 2019 20:14
Comment thread assignments/prototypes.js
* should inherit destroy() from GameObject's prototype
*/
function CharacterStats(attributes) {
this.healthPoints = attributes.healthPoints;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you need to call the parent here

Comment thread assignments/prototypes.js
this.name = attributes.name;

}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

object.create parent here

Comment thread assignments/prototypes.js
* should inherit takeDamage() from CharacterStats
*/
function Humanoid(attributes) {
this.team = attributes.team;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

parent call here

Comment thread assignments/prototypes.js
this.language = attributes.language;

}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

object.create parent here

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