Code Your First Game: Free Video Course on Udemy

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

hi
I am stuck at PT 7.
I am following the all steps but I am not able to move my paddles. As soon as I put cursor on the canvas my paddle disappear.
Please help.
Regards

maggie
Автор

hi i finished the course
but i accidentally deleted the whole document
can u please give me the final code?

Yeetzoid
Автор

Hi I'm stuck in the middle of lesson 2 can somebody help?
I have an unexpected error that the video lesson does not address and I cannot continue. The error the copnsole gives is this:

Uncaught TypeError: canvas.getContext is not a function
at window.onload (game.html:14)

My code is this:


<html>

some text
<candas id="gameCanvas" width="800" height="600"></canvas>


<script>
var canvas;
var canvasContext;

window.onload = function() {
console.log("Hello World!");
canvas =
canvasContext = canvas.getContext("2d");
canvasContext.fillstyle = 'Black';
canvasContext.fillRect(0, 0, canvas.width, canvas.height);
}
</script>


</html>
----

Thank you in advance. I was really getting into the course which is great and clear so far.

aoshot
Автор

how did I end up here? LOL cool I make games too

amazingsparckman