Build Candy Crush using JavaScript HTML and CSS

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Create a candy crush clone with javascript html and css! In this tutorial, you will learn to create Candy Crush using HTML, CSS, and JavaScript. You will learn to swap candy pieces, crush candy pieces, and generate new ones.
    Code: github.com/ImK...
    Demo: imkennyyip.git...
    candycrushgame...
    Website: www.kennyyipco...
    Java Game Programming Projects Playlist:
    • Java Game Programming ...
    JavaScript Game Programming Projects Playlist:
    • JavaScript Game Progra...
    Subscribe for more coding tutorials 😄!

Комментарии • 51

  • @KennyYipCoding
    @KennyYipCoding  2 года назад +7

    Check out the playlist of web project tutorials here!
    ruclips.net/p/PLnKe36F30Y4bLhA-st9sC4ZthyV7nsL2Q
    Got a tutorial suggestion? Let me know down below!

  • @Vrillon2025
    @Vrillon2025 Год назад +4

    You are a genius dude I been looking for someone that is good enough to pull off this app game idea I have I know you are capable I believe in you and don't even know you

  • @DistantFoil6634
    @DistantFoil6634 7 месяцев назад +2

    This is a really fun and educative video! Keep up the good work bro ❤

  • @sebastiancolon3612
    @sebastiancolon3612 11 месяцев назад +1

    Brooooo you are beast. I take bootcamp on front end and that was my first project. You code clean and easy to understand. So bad I don't so this tutorial before that.

  • @Marlin-Gamedev
    @Marlin-Gamedev Год назад +2

    You have an incredible skill for tutorial explanation!! Thank you very much for sharing this with all of us.

  • @melonytips
    @melonytips 4 месяца назад

    hey there! great great video man! really got me unstuck and also really appreciate how you explain

  • @olavocaixeiro9732
    @olavocaixeiro9732 Год назад +2

    Rly enjoyable tutorial and project, looking foward to make my own improvements, thank you!

  • @SameerAbbasMughal
    @SameerAbbasMughal 2 года назад +1

    Its awesome video for Beginners. Keep it up dude. I really like this video

  • @Dylan-i7j
    @Dylan-i7j 4 месяца назад

    this would of been easy if can just copy and paste, you are legend for this bro

  • @youtuber6369
    @youtuber6369 2 месяца назад

    Wow!!! it's awesome !!!!

  • @pb-nk5pb
    @pb-nk5pb 2 месяца назад +1

    Bro striped , wrapped candy and choco is not becoming after mixing 4 -5-6 candy please tell me solution

  • @Deejapreety
    @Deejapreety 2 месяца назад

    Thank you so much, i really appreciate it.👍

  • @stedbenj
    @stedbenj Год назад

    Subscribed! Bell. Thank you for this channel!

  • @Ochieng_23
    @Ochieng_23 5 месяцев назад

    This is a great video. How did you learn how to code this well.

  • @adembenabdallah9678
    @adembenabdallah9678 2 года назад

    Good Idea think you for your video we wait for more ❣❣

    • @KennyYipCoding
      @KennyYipCoding  2 года назад

      Glad you found this tutorial helpful! Make sure to subscribe to see more tutorials like this !

  • @yashwardhansingh4213
    @yashwardhansingh4213 Год назад +1

    Thank You So Much
    🥰🥰

  • @Kevin-ou1zg
    @Kevin-ou1zg 4 месяца назад

    Can you add the sound folder to your github for game sounds? Looking for sound effects but it is a bit of a rabbit hole

  • @smile-xy1ot
    @smile-xy1ot 11 месяцев назад

    Thank you for this video

  • @gtbaba123
    @gtbaba123 Год назад

    Wow ty god i found ur channel

  • @jdevcast6527
    @jdevcast6527 2 года назад +1

    Great tutorial on building a basic match 3 style game. Thanks! Is there a way to convert this to canvas so I can add visual effects? I want to access the images on a pixel level basis, so I can add glow, shift, blur and other effects.

    • @jdevcast6527
      @jdevcast6527 2 года назад

      @@bartdemeyere9766 Sounds really interesting. Do you have any link to the code or pseudo-code?

    • @stedbenj
      @stedbenj Год назад

      @@bartdemeyere9766 Did you happen to get a chance to put up the repo for the canvas approach? Much appreciated.

  • @mcgungtominay
    @mcgungtominay 4 месяца назад +1

    where u find these background images, bruh?

  • @educationaldevta5456
    @educationaldevta5456 5 месяцев назад

    Sir theres no stripped candy code in the github......pls provide me i want to learn

  • @FatWokeHog
    @FatWokeHog Год назад

    Where did you get the background image from?

  • @Kevin-ou1zg
    @Kevin-ou1zg 4 месяца назад

    has anybody gotten smoother transitions like when dropping the candies they look like they are falling down, or when crushed they make an explosion or something?

  • @giuliagiacomodonato2390
    @giuliagiacomodonato2390 11 месяцев назад

    thank u i love u

  • @Anubhavmaurya-lw4gb
    @Anubhavmaurya-lw4gb 2 месяца назад

    bro can we play in mobile phone

  • @arupde6320
    @arupde6320 2 года назад

    good . be regular

  • @razerbleeds9524
    @razerbleeds9524 4 месяца назад

    can you teach me how to crush 4 or 5

  • @jackisgoofingoff5510
    @jackisgoofingoff5510 Год назад

    Instead of random, is there any algorithm to generate the candies?

    • @KennyYipCoding
      @KennyYipCoding  Год назад +2

      It is possible that some levels are manually designed so you always see the same board layout at certain levels. They could also use more advanced techniques to reduce randomness so that there is a higher or lower chance of getting specific crush combinations, etc) levels that require you to get the chocolate ball twice. This is something that you’d have to do more research on I guess

  • @chheangthina1266
    @chheangthina1266 5 месяцев назад

    Hello i can't input function drage in Candy game becuse i input it, i can't see img?? please tell me about why??

    • @KennyYipCoding
      @KennyYipCoding  5 месяцев назад

      easiest way to figure out what went wrong is to compare your code to the completed code in github. You might've missed a step or made a typo. Also make sure your folder setup is correct so the js file can access the images path correctly.

  • @adedamoladaniel3088
    @adedamoladaniel3088 9 дней назад

    @kennyYipcoding please provide the folder of the candies

    • @KennyYipCoding
      @KennyYipCoding  9 дней назад

      As mentioned in the video, it’s in the GitHub link in the video description

  • @svn6193
    @svn6193 Год назад

    3:59

  • @sukanyakar4483
    @sukanyakar4483 10 месяцев назад

    how can i make the turns counter logic in simple js?

    • @KennyYipCoding
      @KennyYipCoding  10 месяцев назад

      In the html, you can add a p tag with an id so that you can access the tag in JS. Then in JS add a variable to keep track of the number of turns and every time you drop a piece onto another, you reduce the turns count by 1 and update the html text.

  • @pokemontrainer8910
    @pokemontrainer8910 Год назад

    Hey the score is not reseting to zeroevry time I reset it
    I mean that it is increasing by a certain after I refresh and start playing

    • @KennyYipCoding
      @KennyYipCoding  Год назад

      Thats because when the game is loaded, the board is randomly generated, and the code is constantly checking if candy pieces could be crushed. Therefore if the board loads with 3 candies in a row in some places, those will be crushed.

  • @sulthanatha1308
    @sulthanatha1308 Год назад

    where u put the turns left code on js?

    • @KennyYipCoding
      @KennyYipCoding  Год назад

      I didn’t put that for this tutorial but it’s something you can implement on your own. Should be simple since it’s just a turnsLeft int counter with a gameOver boolean

  • @secretchannel8710
    @secretchannel8710 2 года назад

    How can i get every user's score detail? Like if I want to reward a user who reached in 1000 score, how I will get to know about score??

    • @KennyYipCoding
      @KennyYipCoding  2 года назад

      There should be a global variable keeping track of the score count!

    • @duggusharma5194
      @duggusharma5194 2 месяца назад

      Declare a variable which store 1000 and if the score reaches 1000 make a pop for congratulating player use alert to do it or make a proper pop box to appear

  • @sriya658
    @sriya658 2 года назад +1

    how to animate

    • @Ahmed38735
      @Ahmed38735 4 месяца назад +1

      with JavaScript

  • @allpersonalityguy
    @allpersonalityguy 2 года назад

    How do I build an app version of this

    • @KennyYipCoding
      @KennyYipCoding  2 года назад +2

      you would need to learn android development with java or ios development with swift, or react native to create a mobile app.