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

Movement Not working for me #3

Open
KamKamee opened this issue Oct 17, 2023 · 4 comments
Open

Movement Not working for me #3

KamKamee opened this issue Oct 17, 2023 · 4 comments

Comments

@KamKamee
Copy link

Im new to game/website development and I wanted to recreate this game and modify it for my school subject but as i was gonna test the game out using my browser it wont work for me....

I inpect the website and i get spammed with these errors

"classes.js:60 Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
at Sprite.draw (http://127.0.0.1:5500/classes.js:60:7)
at http://127.0.0.1:5500/index.js:209:16
at Array.forEach ()
at animate (http://127.0.0.1:5500/index.js:208:15)"

@MylchenkoAlexandr
Copy link

And what the Image state? Image url is exists? This error about your image (path)!

@KamKamee
Copy link
Author

@MylchenkoAlexandr oh I dont know yet where can I exactly see if the image path is correct or not may you please help me?

@MylchenkoAlexandr
Copy link

I try to run - movement work correctly! Use the WASD keyboard keys ;)
I just run index.html and all still work, without any exceptions.

@KamKamee
Copy link
Author

@MylchenkoAlexandr Is that so... I tried recreating the project using the raw codes and run it on WASD but it seems that I am still having trouble with the movements... I guess its just for me huh

but anyways ty anyways for helping me ill try to research more on my problem

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

2 participants