VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
JavaScript + HTML5 GameDev Tutorial: 8-Ball Pool Game (part 1)

JavaScript + HTML5 GameDev Tutorial: 8-Ball Pool Game (part 1)

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn to build an 8-ball pool game from scratch with HTML5 and Javascript. Part one of a three part series. Part 2: https://youtu.be/Am8rT9xICRs Part 3: coming soon -Github repo: https://github.com/henshmi/Classic-Pool-Game -Game demo: https://henshmi.github.io/Classic-Pool-Game/ -- Tutorial created by Chen Shmilovich. -Chen's YouTube channel: https://www.youtube.com/channel/UCLUtNUb2G2XHp9Zty__D3xw -Chen on LinkedIn: https://www.linkedin.com/in/chen-shmilovich/
Date: 2022-03-14

Comments and reviews: 7


hi, i have a question,-
i'm doing a Demo Quiz with javaScript, but i stuck in one place i don't know what to do.-
i made just 3 questions and i made all the functions and everything works very well, BUT i want to add to each question a value, for example, the first question = 5 the second = 2 the third = 8 etc.-
now my problem is that i couldn't do that, i want every time the user clicks on the correct answer he will get the value of the question if it's correct then he will get +5 if not he will get -5 (for example).-
in the end, he will has the scour of the correct questions and anther scour of the Wrong answers.-
i feel i tried every thing and i couldn't do it!-
thank you in advance.

reply

I'm not sure if changes at 22:49 are the best way to handle it. I looked for this part of the code on your repo but couldn't find it. I wanted to run multiple game at the same time to learn about NEAT (Neural networks stuff for the once who haven't heard of it). With your approach I won't be able to have simultaneous games because those functions will work on the PoolGame variable always instead of working on their specific Game object. Do anybody knows how to correct this?
reply

Great project, kind of hard for a beginner as i'm unfamiliar with a bunch of terms used here. It follows the -just copy me and i'll explain later- pattern of a lot of tutorials, which for me don't really work as well as explaining everything thoroughly as it is being done. Great initiative however, looking forward to part 2.
reply

at 21:25
for this code: -
loadAssets(PoolGame.start);-
I'm getting this error code: Uncaught ReferenceError: loadAssets is not defined
at index.html:20
Anyone can help?
Discord= harison#1337

reply

Thanks for the project! I'm about 22 minutes in, I tried opening the file in my browser but I get an error message that -callback- is not a function (assets.js, line 9). Anyone know what the issue is here?
reply

This is really helping me to learn JS, thank you for the detail in describing how each line of code effects the game! Awesome job!
reply

Sir i am Monoj from india sir i want to develop 8 ball pool game so can you develop me 8 ball pool game please tell me.!!
reply
Add a review, comment






Other channel videos