Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Fix game initialization bugs. #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

KoolTheba
Copy link

Behaviour Expected

game

expectations

  • Scene should be rendered without enemies or player
  • No Errors should be shown in the console

Current Bugs

  • ReferenceError: allEnemies is not defined
  • ReferenceError: player is not defined
  • Uncaught TypeError: player.update is not a function
  • Uncaught TypeError: player.render is not a function

@KoolTheba
Copy link
Author

Please @hbkwong can you review this PR? I've just tried to solve the initialization issue in the game in order to help others students too ;-)

Copy link

@himanshu-pareek himanshu-pareek left a comment

Choose a reason for hiding this comment

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

I think, the objective of not providing Player and Player prototypes functions is that everyone should learn how to declare objects and methods by himself/herself from scratch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants