14- Making HTML5 Game: Object-Oriented Programming (Part 1). Javascript Tutorial Guide

preview_player
Показать описание
Episode 14 about making a video game in HTML5. In this video, I introduce the concept of Object-Oriented Programming.

If you have any question, feel free to post a comment below or send me a Youtube PM.

Рекомендации по теме
Комментарии
Автор

Yeah, this is the time in school where you start losing students as well... Seriously, don't spend time trying to type what he is doing. Just download his finished code. Then watch the video many times over many days in a row, until you KNOW what he is doing intuitively. This is the point in programming where copying code no longer matters or works anymore. You must UNDERSTAND the concepts to proceed. You must be able to download his code, read it, KNOW what it all does, and then use it or change it to suit your purpose. That is literally what successful programmers do in their job all the time. Read, select and use others code. A programmer's job is not writing NEW code. (There is no 'new' code) It's understanding the concepts and finding the correct code (in libraries, written by smarter people than you) to achieve your goal.

SorrySuckYou
Автор

is an Amazing tutorial! The BEST ive done so far!

jokai
Автор

Too much coding is done offscreen. Also you are confusing x, y and spdX, spdY in the constructor. On minute 9:30 I got many errors and not your shown result. Thanks to your "end code" I was able to fix the issue. Normally I like your videos but this part is awful. (The coding and the shown results are two different recordings. Correct me if i am wrong.)

workerunionmember
Автор

@ about 8:57 i think got to remove - line 32 - "self.update();" before you run game to test. Because when createPlayer() is called when game first starts....it calls Entity constructor....then when it gets to -line 32 - runs code for "player" variable....which is still "undefined". "player" is not defined till the end of createPlayer() function is will happen "after" -line 32- self.update() has finished running....which will fail because "player" is not defined yet. Anyway thats how mine failed and i removed line well as had to change all of spdx and spdy to spdX and it worked ....

jokai
Автор

hmm...each minute that passes from 9:00 onwards, there are many changes to the code that are not shown onscreen....just be very observant as you follow along...

jokai
Автор

One difference between the start code and the end code are the functions Player and Actor, which aren't created in this video.

toobreenedtolive
Автор

First of all, let me say, thank you for the videos, I have learned a lot. However, this one was hard to follow, I believe you deleted a couple of blocks of codes and you did not show what was being deleted. So my game it's broken. anyways I am still trying to fix it. thanks again for the video !!

GringoProductions
Автор

Seriously man. I've been learning with all your videos. But this one I don't even know how to describe it. You can't just make a tutorial assuming that we know, because that's why it's a tutorial. Like everyone said, too much programming offscreen. I followed every single step you made. Yet I got errors. I don't know what I have to type, and I what I have to ignore in the video. More confusing than the escher's cube.

recondito
Автор

I'm not getting anything with the revised entity fn, complete source code please?

stickyfingies
Автор

I think it would make much more sense to have the something else be responsible for updating and drawing rather than the entity itself. The entity should only be responsible for managing it's own internal state.

mercantilistic
Автор

Can you show how to make something like a startup menu ? (before you start a game, and when you die you restart at the menu )

VinnieboyFE
Автор

hey i followed the tutorial to the letter but my web browser just gets spammed with player is not defined and if i change the instances of player to self.whatever needed to be done then all my things are on the screen for one minute the next they are all gone please help

elijahhewson
Автор

What does "return self" mean?

STARGATES
Автор

Can someone share the xomplete source thus far wirh me?  Im getting bugs but I dont know where

stickyfingies
join shbcf.ru