Javascript Beer Pong - How to Code Javascript Games

preview_player
Показать описание
Today I show you how I created a beer pong website! It's made with html, css and regular javascript.

You start with the ball moving top to bottom by a css animation, and you click to stop it at the desired height. Then it starts moving side to side. You click again to shoot the ball. If it lands on a cup then it gets removed and you shoot again. Keep going until you hit all six cups!

Leave a comment below telling me how long it takes you to complete!

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

Awesome stuff Shawn, very creative as always! 57 seconds was my PB :) Hope things are good with you in the midst of all this craziness!

UnhistoricActs
Автор

You are the best person ever on YouTube shawn b

derekaldrich
Автор

Hey, nice work there ! Looks fun good idea.

How long you've been coding it ?

martinguzlej
Автор

the only thing i'd add is - write more structured - ie a function called isInCup() - etc.. to make the code more readable

psychomonk
Автор

Hi
I want to use your code(easiest game ever - Jump Game) for my HTML book.
Let me know is there any copyright issues if i use the
kindly reply

sahanalr
Автор

hi, speak game play guitarra, noob and study

walney
visit shbcf.ru