• Wednesday , 27 May 2020

Coding “Snake” in 4 min 30 sec (plain browser JavaScript)

Code Canyon



Support on Patreon: https://www.patreon.com/gamkedo Try my free course: http://code-your-first-game.com (or full URL is https://www.udemy.com/code-your-first-game/ ) Next steps: http://gamkedo.com The (hacky) Snake source: https://pastebin.com/Z3zhb7cY About InteractionArtist, my 219 daily prototypes: https://www.youtube.com/watch?v=BgZrBpSISS0

Original source

3d Ocean

Related Posts

47 Comments

  1. 1000 subs with no videos?
    December 12, 2018 at 12:35

    What am i watching and why

  2. Mannerton
    December 12, 2018 at 12:35

    5:08 that's what he said

  3. Dinamita Playz
    December 12, 2018 at 12:35

    1:30 this guy talks so fast 😂 lol

  4. D Krisz
    December 12, 2018 at 12:35

    You're talking way too fast…
    I had to watch the video in 0.75x speed…

  5. davoq2012
    December 12, 2018 at 12:35

    El vídeo está adelantando

  6. Den Den Mushi
    December 12, 2018 at 12:35

    To cout random statements or words js the only thing I'm capable of

  7. Mikka
    December 12, 2018 at 12:35

    What are you using god damn it.

  8. Kyle Thomas
    December 12, 2018 at 12:35

    I actually followed along and it didn't work help!
    @Chris DeLeon of Gamkedo

  9. Zetsuke4
    December 12, 2018 at 12:35

    I can do the same as yours in 4 mins easily

  10. MaiEdits
    December 12, 2018 at 12:35

    That was quick

  11. Maurice Vandenheede
    December 12, 2018 at 12:35

    How can you do this?

  12. tuxmusicman
    December 12, 2018 at 12:35

    https://pastebin.com/sJ6kc5bi I added so it only deletes the part of the tail that you hit . . . I think lol. Any suggestions or corrections would be helpful.

    Update 1: I've been adding to it and added a redirect to another page. Let me know and I'll share it if you want. I'm trying to learn more complicated things to add for fun.

    Update 2: Added new stuff. Took away the second page and just used Javascript to change the current page. Has Play Again? button.

    Update 3: Found really cool styling and animation for the button. Added comments with sources of code.

    Update 4: If you ever read this, do you mind if I host this on my website. I wanted to ask since you wrote the base code and I'm just adding new features.

    Update 5: Put code into separated functions to make slightly easier to read. Still have to find functions. Could be objects in future. Started scoring system. Need smarter way so can keep making bigger.

    Update 6: Further put code in more organized functions. Out of bounds ends game. Maybe make game slower in future to start out? To make it easier to begin and make faster as collects apples? Add more apples and bombs on the canvas in the future?

  13. Qwenty.
    December 12, 2018 at 12:35

    Isnt this the exact same snake as in lethality.io?

  14. Ash
    December 12, 2018 at 12:35

    When you copy and pasted code from Youtube just so you could show it off to your friends.

    I am Mr. Hackerman

  15. Kamo Kamo
    December 12, 2018 at 12:35

    You say "Don't use my code".
    But you're code is in YouTube
    Wow

  16. gnamp
    December 12, 2018 at 12:35

    Talks fast; has fiancé.

  17. Artisiole
    December 12, 2018 at 12:35

    speedrun

  18. gorillaz over gorillas
    December 12, 2018 at 12:35

    plz code the whole World of Warcraft using Hello Kitty notebook

  19. TheJonttuu
    December 12, 2018 at 12:35

    I don't understand a f he's writing but im still watching the video

  20. Shadrz
    December 12, 2018 at 12:35

    Impressive

  21. Eric Frederich
    December 12, 2018 at 12:35

    Thumbnail says no engine or library. Sure

  22. studio BLOX
    December 12, 2018 at 12:35

    if you guys are impressed by this, you should be impressed about someone knowing a different language, that's what coding is, a different language. i'm not sure how many people are fascinating with coding more than a different language. they're both technically the same thing.

  23. Zoomin
    December 12, 2018 at 12:35

    and ubuntu seems to be a good choice

  24. math
    December 12, 2018 at 12:35

    I code html I do not get how you did that But most of it I did

  25. Good Dudley
    December 12, 2018 at 12:35

    Dude, what's the rush??

  26. LenyaKap
    December 12, 2018 at 12:35

    What about to do snake with python?

  27. MasterStranger1 ❷⓿❶❾
    December 12, 2018 at 12:35

    I was gonna be like HMMMMMM????

    Oh yea you TYPE fast jesus i csnt type that fast

  28. JustOTGFrame
    December 12, 2018 at 12:35

    Can I add this to my portfolio 😂

  29. Ayden Cook
    December 12, 2018 at 12:35

    I've coded some more complex games (thanks to you), but I can't seem to process how the array for the snake works in this one

  30. unboxing theboxx
    December 12, 2018 at 12:35

    Nice job Chris😊

  31. Anton Reinecke
    December 12, 2018 at 12:35

    How did Youtube…?
    Thing is, I just finished coding my own version of Snake, and then this video gets recommended to me.

  32. Douglas Harley
    December 12, 2018 at 12:35

    Would like for you to contact me 470.564.8012

  33. MagusUtopia
    December 12, 2018 at 12:35

    I need you to make me a game on roblox

  34. jason santana
    December 12, 2018 at 12:35

    wait are you using mac to program? i'm sorry but we cannot be friends now.

  35. dorpu64
    December 12, 2018 at 12:35

    i’m not a nerd
    codes snake

  36. SardsGamer
    December 12, 2018 at 12:35

    I CANT EVEN CODE A text in the Notepad in 1hr he Makes a GAME IN 4MINS
    WTF..?..?

    read more

  37. hufflepuff
    December 12, 2018 at 12:35

    yeah your a nerd xD

  38. Manrique
    December 12, 2018 at 12:35

    is he a rapper ?

  39. Chandler Morell
    December 12, 2018 at 12:35

    Join my Discord for coding!!

    https://discord.gg/5gCBGMY

  40. jack stone
    December 12, 2018 at 12:35

    WITCH SPOTTED

  41. Lowe Jonasson
    December 12, 2018 at 12:35

    I just watched a 7 min video and understood nothing.

  42. Cuneyt Mogolkanli
    December 12, 2018 at 12:35

    He has a problem 😃😃😃 hey dude sometime get out home…

  43. Legendary genie
    December 12, 2018 at 12:35

    I tried to do this but doesn't work tho… 🙁

  44. skwerzy2k
    December 12, 2018 at 12:35

    why the snake dont move

  45. Uranbilguun Badrah
    December 12, 2018 at 12:35

    My lil brother is here just changing his CMD's color themes and getting excited af

  46. The G's Master Channel
    December 12, 2018 at 12:35

    0:38 seconds in video thinks*Why is it 4 min and 30 sec? *remembers WTF?! It's 7:08

  47. John W
    December 12, 2018 at 12:35

    Amazing…nah not rly

Leave A Comment

You must be logged in to post a comment.