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

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 6 тис.

  • @MonsieurPates
    @MonsieurPates 4 роки тому +4823

    his script: *2 lines*
    me: *looks away for 0.1 seconds*
    his script: *55 lines*

  • @tregi
    @tregi 6 років тому +7594

    i've watched this about 1 year ago, since then i've been studying programming and now i actually understand the code he wrote

    • @aous9679
      @aous9679 4 роки тому +126

      No way

    • @anshul9856
      @anshul9856 4 роки тому +221

      Same lol I came to this vid after a year and now I actually get some of it

    • @alpeshjadav9307
      @alpeshjadav9307 4 роки тому +48

      Tumhe ye bakchodi samajhneme 1 saal lag kaisa gaya

    • @jasperkooij1891
      @jasperkooij1891 4 роки тому +8

      Wow same!

    • @Rayer24
      @Rayer24 4 роки тому +118

      I remember watching this before my first year as a CS student and I didn't know what I was looking at. I still don't understand everything but almost everything sounds very familiar.

  • @gerphoenix5786
    @gerphoenix5786 7 років тому +22039

    30 years later :
    Coding Gta 5 in 4 min 30 sec

    • @TechSupportDave
      @TechSupportDave 7 років тому +418

      **Hires** becomes a mod, **gives every player 999 million**

    • @PokeNebula
      @PokeNebula 7 років тому +188

      /give honeydew 46 64

    • @Brandon-jt7dc
      @Brandon-jt7dc 7 років тому +106

      Dxpress you forgot
      ct% = changefranklin }
      { ct% = changet && changem }
      rn = 25
      dm = 55
      rf = 100.x randomizespawn { 'stal')
      ft1 }
      end

    • @JeenDV
      @JeenDV 7 років тому +44

      +Chicken Permission Nice reference! +1

    • @vOddy75
      @vOddy75 7 років тому +46

      With no libraries.
      He's got to code those himself.

  • @harrum2577
    @harrum2577 4 роки тому +3119

    Alt. title: Nerd wondering if he's a real nerd while speedrunning snake programming

    • @MrGuliton
      @MrGuliton 4 роки тому +9

      xD

    • @halecj1
      @halecj1 4 роки тому +75

      Lol right? I'm a nerd and coding is my job but this guy puts me to shame in both categories.

    • @MaxCE
      @MaxCE 4 роки тому +5

      Multitasking

    • @Bourn77
      @Bourn77 4 роки тому

      😂

    • @TempoChannel5
      @TempoChannel5 4 роки тому

      Nodes

  • @SalitosInside
    @SalitosInside 7 років тому +2253

    Ranting and coding; whole new level of multitasking.

    • @BruceLee-nj2zf
      @BruceLee-nj2zf 7 років тому +22

      That's because he has coded it before, he most likely have a paper in front of him with hints as what to do, Many programming videos like this use a similar technique. He doesn't have to think at all.

    • @Sylfa
      @Sylfa 7 років тому +40

      Codanting?
      @Bruce Lee - I see no signs of him looking away from the screen, and this is so basic I see no reason why he would need to. If it looks like magic it's because you need to practice more, not because he's cheating for some arbitrary definition of cheating.

    • @cautarepvp2079
      @cautarepvp2079 7 років тому

      Marius lmaoo

    • @pitbullterrier4277
      @pitbullterrier4277 7 років тому +4

      0:39 looked away. :D

    • @Sylfa
      @Sylfa 7 років тому +1

      With his eyes closed, constantly moving his head and tilting it. I'm sure your joking though, but the number of people that think he has to be cheating is appalling.

  • @mohammadsalehe4283
    @mohammadsalehe4283 5 років тому +2139

    It takes me 4 min 30 sec to reach to a conclusion for a variable name!

    • @mrsveeto
      @mrsveeto 4 роки тому +11

      ME TOO

    • @reyariass
      @reyariass 4 роки тому +4

      Just name it what you plan to use it for, “Var Storage = ...”

    • @shikharjoshi1113
      @shikharjoshi1113 4 роки тому +7

      */Declares String as a variable name/*

    • @이도권-l1c
      @이도권-l1c 4 роки тому +3

      Its kinda really important

    • @crepperwlp
      @crepperwlp 4 роки тому +11

      I mean, if you want to see the code ever again in you life, I think it's a good idea.

  • @deox2259
    @deox2259 5 років тому +5576

    Creator of Snake: "Am I a joke to you?"

    • @user-rz6wu3eo8k
      @user-rz6wu3eo8k 5 років тому +258

      "The future is now, old man."

    • @thonmoyrahman2270
      @thonmoyrahman2270 5 років тому +163

      he did machine level programming which very few people can do

    • @thonmoyrahman2270
      @thonmoyrahman2270 5 років тому +43

      @M. de k. good for you. I assume you develop drivers?

    • @dheere_se_bolo
      @dheere_se_bolo 5 років тому +113

      @@thonmoyrahman2270 some random people on the internet always claim that they can do something other people can't. In real life may be they're kindergarten dropout.

    • @mrcoder7327
      @mrcoder7327 5 років тому +20

      Creator: Works on the snake game for months
      kedo: Makes the snake game on 4 minutes
      Creator: what the hell?

  • @wickes316
    @wickes316 4 роки тому +1335

    Alternate Title: How to play snake if it's blocked in your school

    • @zninjachato
      @zninjachato 4 роки тому +51

      i copyed his code and played in informatic class haha noobs go brrr

    • @ashmitarora8544
      @ashmitarora8544 4 роки тому +16

      This is amazing, where have you been all my school years!!

    • @jimhalpert9803
      @jimhalpert9803 4 роки тому +1

      Real smooth

    • @leonardocastillosanchez5398
      @leonardocastillosanchez5398 4 роки тому +2

      Ninja Chato ಠ_ಠ do you have the code?

    • @dionel1388
      @dionel1388 4 роки тому +2

      @@leonardocastillosanchez5398 same question. I wanna geddit.

  • @elias-nf8qj
    @elias-nf8qj 7 років тому +2805

    no music no begging for likes or subscribes for 3 minutes, it was straight to the video. good its rare these days. very good!

    • @thomas_hatt_died
      @thomas_hatt_died 7 років тому +6

      Not begging for likes or subscribing is good, but no background is an interesting decision in my opinion.

    • @jazzypumpkin9190
      @jazzypumpkin9190 7 років тому

      its good i guess

    • @taujago
      @taujago 7 років тому +7

      He's selling his tutorial on udemy at the end of video

    • @BootNico
      @BootNico 5 років тому

      wish I could like this comment as many times as humanly possible

    • @thetute59
      @thetute59 5 років тому

      actually yeah, worth a sub

  • @Gabriel-jx4or
    @Gabriel-jx4or 7 років тому +2177

    1:26 "Even though I don't have all keycodes memorized because I'm not a nerd..." **Remembers he's programming Snake in 4 minutes and 30 seconds** "Okay I'm... I'm a nerd"

    • @Harmxn
      @Harmxn 6 років тому +4

      Lol

    • @MZeuSD
      @MZeuSD 6 років тому +3

      that was very funny XD

    • @LunnarisLP
      @LunnarisLP 6 років тому +8

      Meanwhile as a nerd I sit here being like "so that's for the arrow keys xD

    • @federicoskliarevsky
      @federicoskliarevsky 6 років тому

      Thanks for the captions

    • @VictorRodriguez-zp2do
      @VictorRodriguez-zp2do 6 років тому

      You don't really have to know the keycodes he could have just use e.key and it would have returned a string like ArrowRight and that would have also worked

  • @RhapsodyAfternoon
    @RhapsodyAfternoon 7 років тому +2638

    "some people don't like switch cases, i don't like some people" lmfao

    • @jonathan-rw3mx
      @jonathan-rw3mx 7 років тому +3

      Rhapsody Afternoon k

    • @IcedNerdz
      @IcedNerdz 7 років тому +16

      damn it...I read your name...

    • @ClearReception
      @ClearReception 7 років тому +20

      IcedNerdz I was doing well until I read your comment then went back up...

    • @HerbaMachina
      @HerbaMachina 7 років тому +4

      I find switch statements are great for some things, annoying for other things. But for testing key value a switch statement is much better.

    • @iang97302
      @iang97302 7 років тому +4

      Heh. People say they hate switch statements, because they are a code smell. You can't always avoid them though (obviously).

  • @user-tl7oo4jg6i
    @user-tl7oo4jg6i 4 роки тому +1399

    This guy: this is so easy
    Me a beginner: ??????????????????

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 роки тому +361

      This guy: free video course link in the description slows things down and teaches a bunch of what the heck is going on here. This is a demonstration, not a tutorial. Cheers!

    • @imarobloxaddict123
      @imarobloxaddict123 4 роки тому +25

      Chris DeLeon of HomeTeam GameDev he/she knows, he/she ‘s just saying you say “It’s easy” to him/her, it is confusing

    • @nsdfancy
      @nsdfancy 4 роки тому +4

      Chris DeLeon of HomeTeam GameDev the video course is not free, you need a udemy membership 😒😒😒😒

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 роки тому +26

      @@nsdfancy The course is free on Udemy (has been for years), does Udemy now charge just to create an account profile? The account is used to save your place in the course, or to message the instructor with questions, etc.

    • @nathanieljemmjustiner5844
      @nathanieljemmjustiner5844 4 роки тому +1

      Me too hahshaha...

  • @danneedham6821
    @danneedham6821 7 років тому +942

    I know nothing about coding and I understood very little of this. 10/10, would rewatch

    • @frankmateo8754
      @frankmateo8754 7 років тому

      Dan Jakob its a language

    • @commenter7867
      @commenter7867 7 років тому +2

      hah u dumb

    • @antton9189
      @antton9189 7 років тому

      Commenter Nope, doesn't mean that he is dumb.

    • @nkhbhouhuo5684
      @nkhbhouhuo5684 7 років тому +2

      Commenter you call him dumb but can't use proper grammar 🤦🏽‍♂️

    • @harleyspeedthrust4013
      @harleyspeedthrust4013 7 років тому +7

      +swastika bitch *There is nothing I can fucking say to you to change the fact that you are a useless donkey*

  • @snbecca
    @snbecca 7 років тому +4995

    "Im not much of a nerd"
    *codes a snake game in four and a half minutes*
    * n o t m u c h*

    • @snbecca
      @snbecca 7 років тому +77

      Im not bashing- it was amazing

    • @prankster3674
      @prankster3674 7 років тому +98

      What's his first language?
      c++

    • @breakerboy365
      @breakerboy365 7 років тому +13

      c++ is such a nice language

    • @Stratocaster42
      @Stratocaster42 7 років тому +79

      All while simultaneously commenting on everything he's doing, as well as shit that is totally unrelated. Bananas.

    • @harleyspeedthrust4013
      @harleyspeedthrust4013 7 років тому +2

      he's certainly smarter than you

  • @harbirsingh7266
    @harbirsingh7266 7 років тому +1603

    Many people can build this game that fast, but no one can speak that fast while building it.

    • @BullRed07
      @BullRed07 6 років тому +44

      Harbir Singh Yeah right? If I started talking like this while writing code I would mess everything up lol

    • @RodrigoIrigoyen
      @RodrigoIrigoyen 6 років тому +24

      I thought I was the only one noticing that. I'm more amassed about his speaking skills than his programming (even tho it is quite fast). I can’t even listen to someone speak while I’m coding. If I started to talk I would start typing what I’m saying. He sometimes types something while he is speaking about something else. He can also play the game while he keeps speaking.

    • @letmein7921
      @letmein7921 6 років тому +2

      Harbir Singh That's multitasking for ya

    • @ezet
      @ezet 6 років тому +8

      I can write max one line of code without syntax error so this would never be me

    • @ilovebass879
      @ilovebass879 2 роки тому

      I want to come here to say exactly this. He code and speak at the same time very quickly. That's insane !

  • @ledoggo7516
    @ledoggo7516 4 роки тому +448

    As a coder myself, I'm honestly impressed that he can commentate and code that efficiently at the same time.

    • @BackFireZz
      @BackFireZz 3 роки тому +21

      Adderall is a hell of a drug

    • @koviroli
      @koviroli 2 роки тому +9

      You have to consider that before the video shooting, he probably wrote a script, practiced and the same for the coding part. It's cool though.

    • @pumpkant
      @pumpkant 2 роки тому +1

      @@koviroli pfffft, i doubt thats a script

    • @GlennDavey
      @GlennDavey 2 роки тому

      That's the only way I know how to code. My dog has learned JavaScript during WFH

    • @mellophon3
      @mellophon3 2 роки тому

      @@pumpkant just got the joke

  • @thompsonmatthew
    @thompsonmatthew 6 років тому +1406

    "some people don't like switch case"
    "I don't like some people"
    ded

    • @YankeeTM
      @YankeeTM 5 років тому +10

      But not us
      Not us

    • @adityathakur3161
      @adityathakur3161 5 років тому

      X

    • @Jestrath
      @Jestrath 5 років тому +4

      They have their place. Keyboard key events are a good use of them.

    • @nonsudunk
      @nonsudunk 4 роки тому +1

      switch case is almost like if else so I don't know who would dislike it

    • @lalle5000
      @lalle5000 4 роки тому +3

      @@nonsudunk yeah, and they're also slightly faster so for some cases switch case is objectively better.

  • @trashonstilts9432
    @trashonstilts9432 6 років тому +1971

    This guy is the Eminem of coding tutorials

  • @TLB-ai
    @TLB-ai 7 років тому +3581

    Sorry what happened in this video? I blinked.

  • @gantoreno
    @gantoreno 2 роки тому +4

    You, and this video, were the first contact I ever had with JavaScript programming, almost 4-5 years ago, I didn't understand a thing when I saw it, but it was really cool, every year since then I revisit this video to see if I can catch up and understand everything.
    I'm a senior front-end engineer now, with an excellent job, and there are no words to describe how joyful it is for me to come back here, where everything started, and feel as if it was the first time. Thank you so much, for everything.

  • @chris-yf1gv
    @chris-yf1gv 7 років тому +560

    "I am not a nerd" Rethinks his life and what he is currently doing... "Ok I am a nerd"

    • @HomeTeamGameDev
      @HomeTeamGameDev  7 років тому +44

      it me

    • @chris-yf1gv
      @chris-yf1gv 7 років тому +8

      A Lot of respect to you sir this is really good

    • @ashismandal7776
      @ashismandal7776 6 років тому

      Please suggest a good editor for JavaScript programming.

    • @samm4510
      @samm4510 6 років тому +1

      @@ashismandal7776 atom is good

    • @galaxy4dayz
      @galaxy4dayz 6 років тому

      Visual Studio and Visual Studio code or if you want to mess around with more game making try out Unity its free you can get the free version which i use to make games! but i want to learn how to use HTML and javascript to make my first game on it and for my school project!@@ashismandal7776

  • @imhaiden8464
    @imhaiden8464 7 років тому +3775

    He lost me at 0:01

  • @Jack-gu4fc
    @Jack-gu4fc 7 років тому +2672

    When your assignment is due at midnight and it's 11:55pm

    • @CatFoodCritic
      @CatFoodCritic 7 років тому +28

      and your watching this video

    • @أدهم-ض4ه7ح
      @أدهم-ض4ه7ح 7 років тому +32

      Un_Pugged Gaming he talk about the guy in video

    • @أدهم-ض4ه7ح
      @أدهم-ض4ه7ح 7 років тому +1

      ACookieForMe i hope you're trolling

    • @anthoonius_gabagoolius
      @anthoonius_gabagoolius 7 років тому

      ACookieForMe plenty of online assignments have a due date around that time,not uncommon at all

    • @dyslexicsoap7605
      @dyslexicsoap7605 7 років тому +2

      Because that's the closing time for sending it in, as it has to be in before "x" date?

  • @nabiisakhanov3522
    @nabiisakhanov3522 4 роки тому +249

    I've watched this about 3 years ago, since then I've been interested in programming. About a year ago I've started learning javascript and now I have a paid full-time job as a developer

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 роки тому +68

      Heck yes! Thank you for sharing your story. I'm very happy to hear I got to play a small part in helping you discover your interest in programming. Props for following through, and congrats on the new job.

    • @wizzenberry
      @wizzenberry 3 роки тому +10

      Full payed job in a year? Wow good effort dude, 2 years in uni and we are now only starting Java.

    • @sirspongadoodle
      @sirspongadoodle 3 роки тому +1

      @@wizzenberry uni is bs imo

    • @jasonzheng5839
      @jasonzheng5839 3 роки тому +2

      @@sirspongadoodle honestly 2 years in and just starting Java kinda means this guy took no college credit in hs or didn’t decide to do cs until then

    • @wizzenberry
      @wizzenberry 3 роки тому

      @@jasonzheng5839 I’m part time mate so it’s one year just the foundation now on diploma, covered other languages. To the guy above in the uk you need a bsc minimum to get a decent job so dunno what Hese on about

  • @tarky-
    @tarky- 7 років тому +1962

    Hmm I gotta pick up my fiance in 10 minutes, what should I do... I KNOW, make a game!

    • @FunkyCrumpet
      @FunkyCrumpet 7 років тому +7

      well it only takes 4 and a half minutes.

    • @hippiewithacowboyhat
      @hippiewithacowboyhat 7 років тому +55

      Nope. Most guys that can do this dont have a fiance...
      ;)

    • @happydolphin1432
      @happydolphin1432 7 років тому +12

      TwoPants If you have friends or girlfriends, you are shame to internet, do Sudoku

    • @happydolphin1432
      @happydolphin1432 7 років тому +2

      TwoPants *Sepuku

    • @SnappySanad
      @SnappySanad 7 років тому +18

      Hippie With A Cowboy Hat 6:29

  • @swegattyswooty9307
    @swegattyswooty9307 7 років тому +1617

    I was ignoring this video from my recommendation for about 2 months ..
    now I am here .
    I have no clue what's going on .
    I don't even code dude !!!

    • @rumfordc
      @rumfordc 7 років тому

      +The GAME Theory I TGT if you want to get into game theory, I'd highly suggest you learn the basics of coding. This video is a very fun and fast place to start.

    • @Nyarukosan787
      @Nyarukosan787 7 років тому +1

      Dude, even as I'm writing this, the video isn't even 2 months old...

    • @3pointsracer
      @3pointsracer 7 років тому +6

      The GAME Theory I TGT same here.

    • @Joseph-ed6hl
      @Joseph-ed6hl 7 років тому +8

      dude ik i ignored the reckmmended for like 2 months too 😂

    • @Badlands_wav
      @Badlands_wav 7 років тому +6

      same here too lmao

  • @brianchen3444
    @brianchen3444 7 років тому +756

    the only word i understand what he's talking is "snake"

  • @ankitkhanall
    @ankitkhanall 4 роки тому +669

    his friends : hey let's play cod
    he : yeah wait for 4:30 mins
    *builds cod*
    his friends : 😳

    • @henningvanwyk9025
      @henningvanwyk9025 4 роки тому +22

      Haha I had a Friend in High School who created a program for cod 4 where you could just click and select what maps you wanted to play with certain paramaters like gravity and other modifiers then it would automatically load up the map for the entire party... guy was a legend... and he wrote a code that automatically checked the battlfield 4 longest headshot distance to keep record between the whole clan.

    • @jk-gb4et
      @jk-gb4et 3 роки тому +1

      @Tari Wheeler Most unsubtle subtle advertisement on a youtube comment

    • @CutieFakeKirby
      @CutieFakeKirby 3 роки тому

      @@jk-gb4et its not advertising, its helping

    • @jk-gb4et
      @jk-gb4et 3 роки тому

      @@CutieFakeKirby its him hes just making it look like its a different person

    • @Luke-tb3lx
      @Luke-tb3lx 3 роки тому

      @@jk-gb4et he's attempting to scam people, trsut me

  • @yh_hat_trick491
    @yh_hat_trick491 7 років тому +340

    My friend told me I talk way too fast. I now see his frustration.

  • @rpo79
    @rpo79 7 років тому +15

    Dude, I have no idea what just happened. I see that you coded a game in less than 5 min and it is working great! I need to say that you are a genius. Geek, but also a genius! Respect!

  • @Fynmar91
    @Fynmar91 6 років тому +4683

    Had to watch a 2x speed because he talks so slow.

    • @1ungs
      @1ungs 6 років тому +35

      Fynmar yeah same

    • @brodymoore7376
      @brodymoore7376 6 років тому +15

      Watched mine at 0.01

    • @SONICCRET
      @SONICCRET 6 років тому +26

      But he talks really fast!

    • @SONICCRET
      @SONICCRET 6 років тому +44

      r/whooooosh

    • @SONICCRET
      @SONICCRET 6 років тому +24

      Oh, you are right. That comment was stupid. Thanks SonicCret!

  • @steveno2839
    @steveno2839 3 роки тому +20

    this guy had a 10 minute break between his work and picking up his fiancee. so he made a youtube video to promo his stuff. Big respect

  • @BobMcCoy
    @BobMcCoy 7 років тому +1965

    That awkward moment when a guy does your *entire Culminating project* (which takes a whole month) in merely 4 and a half minutes...

    • @dismountarts8451
      @dismountarts8451 7 років тому +46

      Bob McCoy you are just slow, i go to mid florida tech and we had to make our own game in a week and a half

    • @Witetiger101
      @Witetiger101 7 років тому +85

      I wouldn't say he's just slow, it all depends on the depth you want to achieve. I go to the University of Reading and we had one month to program either a maze-based game or a text based intelligent assistant. I chose the game, whilst I had a functioning prototype after the first week it certainly takes more time to implement stuff like competent AI and OpenGL integration.

    • @breakerboy365
      @breakerboy365 7 років тому +9

      maybe you're coding in the wrong language

    • @kyletupper1033
      @kyletupper1033 7 років тому +25

      Or maybe this person is just taking a CS class for their gen eds. If they aren't a major, minor, or don't have a closely rooted interest in the subject, then that could explain the discrepancies.

    • @DVeck89
      @DVeck89 7 років тому +52

      This is why a top experienced developer makes much much more money than a recent grad.

  • @user-td3uj8is5i
    @user-td3uj8is5i 7 років тому +2725

    pls code half life 3 in 3 seconds.

    • @geu9928
      @geu9928 7 років тому +7

      λ3 you think its that easy?

    • @Karuska22ps
      @Karuska22ps 7 років тому +134

      GDLC Dizz
      yes

    • @phenomen66
      @phenomen66 7 років тому +30

      Just save this code as hl3.html ;)

    • @krishnateja296
      @krishnateja296 7 років тому +54

      +GDLC Dizz you should be fun at parties.

    • @Niffie
      @Niffie 7 років тому +15

      +Krishna teja
      Bad modal verb detected.

  • @kqzo
    @kqzo 6 років тому +3372

    wouldnt it make more sense if you wrote it in...
    Python?

    • @polka678
      @polka678 6 років тому +38

      Kazotsky 🤦‍♂️😂

    • @afiqaiman3037
      @afiqaiman3037 6 років тому +131

      Get outt!!

    • @haykg
      @haykg 6 років тому +12

      Kazotsky please tell me this is a joke

    • @jaedii7287
      @jaedii7287 6 років тому +50

      PatriArk no this is very serious sir

    • @SohnVonRudi
      @SohnVonRudi 6 років тому +20

      fkn communist

  • @seanlange4457
    @seanlange4457 3 роки тому +4

    Just got this in my recommended. This is the video that pushed me to learn Javascript to make canvas games. Been doing it for over 4 years now. Thank you

  • @nosky2142
    @nosky2142 7 років тому +1733

    Like for an English version of this

    • @maa8402
      @maa8402 7 років тому +3

      hhhh

    • @MujahidOmer
      @MujahidOmer 7 років тому +9

      Lol, made my day 😂

    • @hgipwrjt1286
      @hgipwrjt1286 7 років тому

      Lol

    • @no00ob
      @no00ob 7 років тому +1

      Noah Lupico lol

    • @BaileySchellDE48FF
      @BaileySchellDE48FF 7 років тому +7

      Noah Lupico this should be top comment but I guess majority of this videos intended audience knows wtf he's saying 😂😂

  • @afterburner7847
    @afterburner7847 7 років тому +1292

    This guy is the geek version of Eminem. His brain is racing!

    • @tobi888100
      @tobi888100 7 років тому +30

      It's called cocaine

    • @0s0sXD
      @0s0sXD 7 років тому +27

      afterburner7847 mom spaghetti

    • @afterburner7847
      @afterburner7847 7 років тому +7

      Please don't!

    • @somebodyonce2186
      @somebodyonce2186 7 років тому +80

      coding mom's spaghetti in 4mins 30secs

    • @afterburner7847
      @afterburner7847 7 років тому +8

      Yeah I feel you, bro. I also go babbling non-stop about computers, gaming and programming when someone talks about it. This guy is just insane, coding a snake game in Javascript while babbling on about a lot of other stuff full speed lol.

  • @domi564
    @domi564 7 років тому +2441

    You have 5 minutes to live -

    • @HomeTeamGameDev
      @HomeTeamGameDev  7 років тому +150

      I regret nothing!

    • @logaldo2812
      @logaldo2812 7 років тому +1

      jajajajajajajjajajaja

    • @Luch4s
      @Luch4s 6 років тому

      Det Var Den Veckan Ja

    • @warwick802
      @warwick802 6 років тому

      Lmfao

    • @pencildoesyt623
      @pencildoesyt623 6 років тому

      BUT MY HOPE WILL NEVERR DIEEEEEEEEEE *makes this in like 2 mins*

  • @blok4743
    @blok4743 2 роки тому +4

    just starting learning html and watching you make a whole game in under 5 minutes when its taken me a week to make a button animation is amazing

  • @teecchnoboy
    @teecchnoboy 7 років тому +46

    500 years later: coding real life in 4 min 30sec

  • @frijoles9749
    @frijoles9749 5 років тому +1527

    Who else clicked on here not knowing what he’s talking about but still watched it.

    • @lilwizard3026
      @lilwizard3026 5 років тому +15

      That part at: i m not a nerd. Then he realised OK i m a nerd😂😂

    • @franco_spams-l2922
      @franco_spams-l2922 5 років тому +4

      I just want a little more practice on javascript and realized I still need a lot to learn lol

    • @Michael-cs2fh
      @Michael-cs2fh 5 років тому +1

      Clicked here and lasting 1.54mins, and I am out

    • @olivermunkholm8733
      @olivermunkholm8733 5 років тому

      im wit u on that one aha

    • @tomz4332
      @tomz4332 5 років тому +4

      I've been developing in JS for few years now but I can't imagine thinking that fast. It must've been rehearsed several times before. Am I wrong?

  • @drgusman
    @drgusman 7 років тому +2372

    This should be called "how to write again in 4 minutes a snake game that you already have coded"

    • @ssougnez
      @ssougnez 7 років тому +344

      geniwab yeah.. the guy is acting like an hero coder while he's just typing a listing he already typed dozens times before, that's a bit lame...

    • @drgusman
      @drgusman 7 років тому +151

      It also is my job and I can distinguish when someone is thinking what is writing and when is just copying code.

    • @drgusman
      @drgusman 7 років тому +19

      an3lml yeah, shure, then that's why he shows how to program the most simple game in javascript, right? It's like trying to show how easy is assembler and you show how to use the ADD instruction. Now try to create a real program in assembler and think again if its easy. Apply the same to this.

    • @ssougnez
      @ssougnez 7 років тому +111

      geniwab And it's just about honesty. He acts like, all of a sudden, he just decided to make a game and boom, he codes it and acts like if he figures out the algorithm in half a second. Either that guy is a genius or he's just a pretentious guy who want to look like a genius. I develop since I'm 12 and even after 17 years of development, I couldn't develop like this. How is this kind of video helping ? For the beginner, he wouldn't understand the code as it goes very fast and would think "waw this guy rocks !"...

    • @drgusman
      @drgusman 7 років тому +35

      Sébastien Sougnez Totally correct. Also, if you pretend to teach something you don't do a "speed run", you take your time at least explaining things with calm and thinking you are talking to non-programmers which will be confused even with a variable declaration.

  • @CyrusSUEN
    @CyrusSUEN 4 роки тому +119

    This guy pays more attention to playing the game than actually coding it.

  • @JunaidKhan-pq8ji
    @JunaidKhan-pq8ji 7 років тому +153

    "This is Snake. Colonel, can you hear me?"
    "Loud and clear, Snake!"

    • @mftripz8445
      @mftripz8445 6 років тому +2

      i love and hate you for that

  • @tiotito31
    @tiotito31 5 років тому +316

    1:15 "Some people don't like switch cases, I don't like some people."
    lol, I'm using that from now on.

    • @strollas
      @strollas 4 роки тому +4

      same

    • @primekrunkergamer188
      @primekrunkergamer188 4 роки тому +2

      *YandereDev has entered the chat*

    • @KayOScode
      @KayOScode 4 роки тому +1

      Idk, switch statements are implemented as function calls which uses unnecessary clock cycles. Mostly compilers optimize it out though so its usually fine

    • @baileydas
      @baileydas 3 роки тому

      @@KayOScode Depends on the language but switch cases are usually jump instructions not function calls

    • @KayOScode
      @KayOScode 3 роки тому

      @@baileydas yes, tru tru. A hash table into a relative jump us how its usually implemented. I think I said function call because its not a true branch, you still use the do the jump as well as push the return address (which is call in some asm langs) but the break keyword is equivalent to popping the ra and jumping to it. At least thats how I implemented it. Im sure some languages do other things like set the return address as a static relative address from the end of the case which would be more efficient. Mine was like this:
      Enter switch statement (setup stackframe)
      Evaluate and jump to appropriate label using hashmap + call (relative label address)
      Execute case, and if theres no break, fall through to the next case.
      Resolve stackframe - continue execution

  • @andr_wh
    @andr_wh 7 років тому +67

    i don't know what you are talking about but man you sound smart

  • @plaxold
    @plaxold 4 роки тому +144

    Me: **puts a cheat code on the game**
    What my sister sees:

  • @pep3001
    @pep3001 7 років тому +2303

    coding snake speedrun at agdq 2018

    • @jlpt9960
      @jlpt9960 7 років тому +118

      Mr.Sheepington he had some good RNG this run

    • @GameFuMaster
      @GameFuMaster 7 років тому +68

      he should kill the animals. gotta save frames

    • @Zcardenas2
      @Zcardenas2 7 років тому +6

      Mr.Sheepington better would be coding a simple game idea given blindly

    • @Zcardenas2
      @Zcardenas2 7 років тому

      GameFuMaster lmao yessssyoshi

    • @harunanami76
      @harunanami76 7 років тому +1

      ty

  • @Dreamlander
    @Dreamlander 6 років тому +249

    codes the whole thing in 4 minutes - while talking over it - never stopping or saying like - rarely pausing or even saying uh or umm.. keeping decent speaking skills for viewers XD lmfao - masterfully done sir. good show

    • @NboOfficialAus
      @NboOfficialAus 5 років тому +2

      Actual. Must be second nature

    • @colek.r5280
      @colek.r5280 5 років тому +3

      ...that and a *_dexedrine prescription_*

  • @lordmyrann
    @lordmyrann 7 років тому +160

    This is great! I'm wondering, did you flowchart, pseudocode, or otherwise plan this structure somehow before you started programming? I think a lot of new programmers may miss that planning stage.

    • @HomeTeamGameDev
      @HomeTeamGameDev  7 років тому +174

      None of the above. A program this tiny, simple, straightforward and unstructured does not require any of that :) There's absolutely a time and place for those, and huge software projects don't happen without them. Professional engineering on big teams require that kind of work every step of the way to keep teammates and managers on the same page. However, solo programming a 1970's-era gameplay prototype rapidly to first playable is not, in my experience, the right time or place for diagramming or other structured planning techniques.
      On my drive home from my Thursdays teaching gig I decided to do this. When I got home I sat down and did it. The total planning here was recognizing ahead of time that a square canvas would make this slightly simpler than a rectangle, and that 20x20 squares each of 20x20 pixels would make for a nice 400x400 canvas.
      Granted, I did first program a Snake-like game in 1997. However it was in C and assembly for DOS, and much more full featured. It had two player simultaneous against AI hunters, with randomly generated forests, sprint controls, informational menus, and was generally unrelated in its programming approach to this demonstration. That one had more sketching, and little more thinking ahead of time for how I wanted to structure it, but as I was so inexperienced at the time the structure mostly evolved through trial and error after what I'd initially predicted might work did not. Took me 3 weeks at the time to make the game then, although C and assembly are a fair bit different than browser JavaScript (and much closer to being truly, "no engine or library" - as by using vanilla JS for this video the browser still provides an API into the rendering context etc.). Screenshot of my old game from 20 years ago, for contrast: imgur.com/a/Ji93n

    • @lordmyrann
      @lordmyrann 7 років тому +18

      Thanks for the reply!

    • @citigroup64
      @citigroup64 7 років тому +5

      lordmyrann for someone who has been programming for the majority of his life they could do this in their sleep

    • @lordmyrann
      @lordmyrann 7 років тому +1

      So, my point was that advanced programmers have a model for how they're thinking about the program in their head, that you don't really get from just watching people type lines of code one at a time. That said, Chris covered in his video (which I'd just watched the beginning of at the time) that this particular video isn't geared at pure novices, so I understand his goal here. But check out the most popular comment, "what just happened in this video?" That's why mentioning your mental model helps frame what you're typing, but to advanced folks we do it without thinking about it.

    • @MrPackerProductions
      @MrPackerProductions 7 років тому +2

      Hermann Fegelein Boss chill

  • @Inflake
    @Inflake 4 роки тому +76

    Imagine how hard it was to make this game 50 years ago

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 роки тому +49

      @Vansh K Shah Blockade was the first snake-like game in the arcade in 1976, 44 years ago indeed, and would have been quite the burden not only from the crude development languages, but many games in the mid-1970s (including Pong, Breakout) were made more with chip arrangement than even code - it was completely bonkers challenging by today's standards :D (Blockade was on an Intel 8080 microprocessor, so not quite the same as those, but early and crude methods indeed)

  • @ducatinyc
    @ducatinyc 7 років тому +1736

    "i'm getting so long"

    • @MirrorsEdgeGamer01
      @MirrorsEdgeGamer01 7 років тому +14

      *#TWSS*
      _That's What She Said_

    • @uzielfranco2104
      @uzielfranco2104 7 років тому +8

      i would like your comment but its at 420

    • @brohymn6797
      @brohymn6797 7 років тому +2

      My anaconda don't want none unless you got buns, hun

    • @TalestoryJL
      @TalestoryJL 7 років тому +6

      'this is getting much harder than I expected'

    • @equifernus9913
      @equifernus9913 7 років тому

      im sed bckuz i csnrt fingfd myyyy ccccccat

  • @jonsimpson6690
    @jonsimpson6690 6 років тому +730

    New viewers: Don't get the impression that he is adaptability learning as he is coding this game before you. He just has experience.

    • @blasttrash
      @blasttrash 6 років тому +105

      True, he probably did this game in recent past before attempting this video. He might've done it(practiced extensively) even before the start of the so called tutorial as well. No one can code at this speed with just an idea of a game you played a couple of decades ago on a Nokia 1100.
      However once you know the concept of the game and have figured out the data structures you are going to use, its easy to do it under 5 minutes. However I am impressed by his speaking skills. He is able to speak while he is coding(unless he spoke over the video).

    • @Iefy
      @Iefy 6 років тому +8

      *H O W E V E R*

    • @tijsbeek3094
      @tijsbeek3094 6 років тому +5

      I van code hello on a webpage in 30 seconds. And Snake in 7 years!

    • @PlexusTen
      @PlexusTen 5 років тому +17

      I'm convinced that he wrote the game script beforehand and then retyped it for the video.

    • @NormCantoral
      @NormCantoral 5 років тому

      I don't know. I have tried coding things over and over and when I finally got it I wanted to make a video since it was all still fresh in my mind. maybe he had just done another project that closely resembled this and wanted to make a vid of how easy it seemed in his own mind.

  • @TobyA
    @TobyA 7 років тому +4

    I'm mostly impressed that he can be typing code at the same time as speaking words that are different to what he's typing - both at high speed.

  • @xukxj0nny
    @xukxj0nny 4 роки тому +28

    sounds like the guy at the end of prescription medicine commercials.

  • @Kallermatsch37
    @Kallermatsch37 5 років тому +7

    It's actually funny that I watched it the first time when the video was published, and after roughly 2 years of programming I watched it again and I understood everything this guy talked about while following the coding ^^

    • @HomeTeamGameDev
      @HomeTeamGameDev  5 років тому +1

      WOOHOO! Heck yes! Way to go Psy&cho! I'm happy to hear you've been making good progress :D

  • @davidbasil2727
    @davidbasil2727 7 років тому +129

    The guy doesn't even think about what he's coding.
    Mastery...

  • @lxjoe96
    @lxjoe96 7 років тому +93

    I have no idea what's going on, but you're funny and this is fascinating

  • @buurton1
    @buurton1 4 роки тому

    Usually i like to use about 1.5x playback speed on tutorials, most youtubers talk quite slow. But this guy knows what's up

  • @hamzah5716
    @hamzah5716 7 років тому +116

    can you code engine with no snake or library?

  • @aylazer23
    @aylazer23 Рік тому +7

    It's crazy how I saw this video few years ago when I was a freshman and this looked like out of the world and something that I would never be able to do. Now looking back, this is incredibly simple and it took me something like 30 mins or so to make but now I've found more complicated stuff that seems out of the world lol XD

    • @Rayer24
      @Rayer24 Рік тому

      I found my comments from 3 years ago and yeah same lol. When trying to solve a problem with code the important thing is programming patterns and concepts.

  • @HJfod
    @HJfod 7 років тому +402

    HOLY SHI- what the heck? The fastest I've made a game is like 2 hours O.o

    • @jeffreychen6591
      @jeffreychen6591 7 років тому +23

      HJfod mine is 1 hour and that is pong. I cant even code snake

    • @BruceLee-nj2zf
      @BruceLee-nj2zf 7 років тому +59

      yeah now take those steps and put them on a piece of paper in front of you so you know exactly what to do, now record and type as fast as you can. Boom ther u go, a game in 10 min

    • @Sylfa
      @Sylfa 7 років тому +6

      @Bruce You like posting that, but it says more about you than him.

    • @wesraevens3122
      @wesraevens3122 7 років тому +1

      I made my first game, rock paper scissors in 4 mins

    • @suomidude5707
      @suomidude5707 7 років тому

      HJfod Hello

  • @zRedPlays
    @zRedPlays 2 роки тому +1

    the way he instantly saved the code after being done with it, knowing it will work flawlessly, is just fantastic

  • @DonCorgi
    @DonCorgi 7 років тому +334

    Nicely done!

  • @fernandodemianguerrerom.3390
    @fernandodemianguerrerom.3390 6 років тому +207

    "I'm not a nerd"
    *thinks about it*

  • @mamazu1995
    @mamazu1995 7 років тому +406

    Is there a reason why you haven't used modulo for the wrapping around? Otherwise you could have summarized lines 16 to 27 to two lines of code like this:
    px %= tc;
    py %= tc;

    • @HomeTeamGameDev
      @HomeTeamGameDev  7 років тому +120

      Mod would only handle the positive edges on right and bottom, left and top edges I don't think would work since (-1)%20 evaluates to -1.

    • @mamazu1995
      @mamazu1995 7 років тому +114

      Oh, you are right. Strange but well then it would be px = (px + tc) % tc and py = (py + tc) % tc

    • @HomeTeamGameDev
      @HomeTeamGameDev  7 років тому +157

      Those indeed look like they would work, good call. I probably would have needed to have paused and spent more time thinking about a workaround to the negative case than it took me to pound out the straightforward if()'s with a bit of quick keyboard copy/edit patterns :D

    • @mamazu1995
      @mamazu1995 7 років тому +74

      Valid point. Just thought this would be faster to write and I mean wrapping stuff around is probably the reason why modulo was invented but I can see your point.

    • @zlevs_
      @zlevs_ 7 років тому +501

      english please

  • @carterruckman9787
    @carterruckman9787 2 роки тому +1

    I thought I was somewhat decent at programming before I watched this guy. He's so fast, and he intimately knows his craft. Well done dude.

  • @mewo-mewo-3o-3o
    @mewo-mewo-3o-3o 7 років тому +1058

    You are amazing!!

    • @melinoe3783
      @melinoe3783 7 років тому +14

      No you are amazing!! :)

    • @matiascelaj3946
      @matiascelaj3946 7 років тому +1

      MrFreak I

    • @Pieczorka
      @Pieczorka 7 років тому +24

      No, I am amazing!

    • @evenrik_2214
      @evenrik_2214 7 років тому +1

      MrFreak like number 1000 here! :) it got from 999 to 1k

  • @ernestoelskamp8094
    @ernestoelskamp8094 7 років тому +293

    Dude wtf .... am just a beginner i tried listening while watching u code (both of wich u do at the same superhuman speed) i have a headache now..

    • @TheGrooseIsLoose
      @TheGrooseIsLoose 6 років тому +24

      The important thing is that programming for a beginner to know looking after seeing this is that the real work of a software developer is thinking, not typing the code. Judging by how easily he was able to talk over this and how quickly he typed this, I would assume that he either thought through this before the video or has written very similar code many times before, so the thinking part was done and this is just typing up the solution and fixing a couple mistakes.
      It’s like if someone was given a list of 3 digit numbers to multiply, they’d take a while to think about it before answering each one, and they might need to write it down on scratch paper. But, if they had already done all of the questions and memorized the answers and the order the questions come in, they’d just list them off really quickly, only stopping to correct a couple mistakes.

    • @permanpurba9870
      @permanpurba9870 6 років тому +3

      You have been warned at 2:15

    • @danieltomashevskiy4322
      @danieltomashevskiy4322 6 років тому

      u cud just copy and paste in the descript u idiot

  • @critical11creator
    @critical11creator 7 років тому +613

    didn't program the part where the apple can't be on any part of the tail. still obviously very well done!

    • @ballom29
      @ballom29 7 років тому +13

      one of the best snake i've played didn't have this option.

    • @Goel25
      @Goel25 7 років тому +20

      It doesn't matter, unless the apple spawns on the tail, because the tail is always following the head, so if the head ever crosses it, it will be eaten before the tail gets to it.

    • @critical11creator
      @critical11creator 7 років тому +7

      it kinda does. think about it. the game has a story actually. the apples fall from a tree. they can't just fall and magically appear under the snake's tail. think about it :P the first snake actually had this option. any mid 60's kid that excelled in the game knows how it ends

    • @Goel25
      @Goel25 7 років тому +22

      Ohhh, I though you meant that the tail should be able to eat apples! Sorry, I agree that the apples shouldn't spawn on the snakes head/tail, because that doesn't really make sense

    • @ballom29
      @ballom29 7 років тому +4

      i know a snake where the tail can grab fruit :) ( it's a bonus that throw in the snake head any fruit that the the tip of the tail hit )

  • @svenniepennie4237
    @svenniepennie4237 4 роки тому +3

    This was actually super helpful to get a hang of some JavaScript. Tutorials are usually way too slow, so I have a hard time focusing on them.

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 роки тому

      I'm grateful to hear this was useful for you! Best wishes with your adventures ahead :D

  • @scottwilloughby8223
    @scottwilloughby8223 5 років тому +84

    So how did you turn on the computer?

  • @engine_man
    @engine_man 7 років тому +50

    I just found you by mistake. you're awesome dude.

    • @Hcfantas
      @Hcfantas 7 років тому

      There are no mistakes in life, just happy little accidents...

  • @lakonver4947
    @lakonver4947 7 років тому +1378

    _Programmers hate him!_

    • @HomeTeamGameDev
      @HomeTeamGameDev  7 років тому +47

      It's true. This kind of dirty/hacky/quick digital prototyping style sure does seem to frustrate some people who've only ever worked on giant projects full-time with teams or in academic assignments :D

    • @rantorreview144
      @rantorreview144 7 років тому +15

      La Konver for $0.00, he will code any thing for you! take survey now! download program below to get started.

    • @CathrineMacNiel
      @CathrineMacNiel 7 років тому +1

      nah, because there is a place for this kind of quick and dirty in the proof of concept phase of larger products, or if you just code for yourself its also okay. BUT it will get messy when you cannot afford to throw away code and have to survive on a code base like this.

    • @Art97uroCT
      @Art97uroCT 7 років тому +1

      jajajajajja

    • @myrna-a4gh45
      @myrna-a4gh45 7 років тому +12

      but why? I'm a programmer and I find this awesome!

  • @moebiuscardistry
    @moebiuscardistry 4 роки тому +1

    honestly more impressed with the fact that the code compiles the very first time it was ran. Either you're 1. very familiar with this particular code, 2. has compiler-level syntax parsing going on in your brain, or 3. just very confident with the language, it's impressive all the same.

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 роки тому

      Not very familiar with most parts of this particular game code, however it's assembled out of generic chunks (input hookups, initialization, draw routines) that I've remotely talked a ton of people through over screenshare, wrote a textbook on, made video courses on etc., which combined with 23 years of programming games and lots of speed prototyping, I can do extremely simple/retro stuff like this without snags when it's a well established basic mechanic. For experimental or innovative things it of course involves more thinking or trial and error to get an effect I'm going for :D Cheers

  • @Agarico
    @Agarico 7 років тому +1191

    I slowed down the video took me about 30 mins to copy down and them I was so devastated when I saw a pastebin link in desc. -_-

    • @jannik9091
      @jannik9091 7 років тому +2

      xD

    • @AustiuNoMatterWho
      @AustiuNoMatterWho 7 років тому +236

      wouldn't you rather have the muscle memory and the fact that you did it makes it even better. that's like saying "maaann i just built my computer but i found out my friend would have done it for 20$ and some beer." fuck that, enjoy the ride man and look at the code you wrote as an accomplishment, not a waste of time

    • @neon4863
      @neon4863 7 років тому +30

      Austiu YeBlackghost I like the way you think

    • @MrTherandomvidsguy
      @MrTherandomvidsguy 7 років тому +3

      .

    • @Fireger1972
      @Fireger1972 7 років тому +60

      TheDude your fuckin profile picture is pissing me off ive tried to get if off my screen more than I care to admit

  • @thetruth5084
    @thetruth5084 6 років тому +125

    how do you speak asynchronously while programming synchronously...? Surely you must've done this before in order to just auto-pilot the entire thing while having a conversation

    • @rc6431
      @rc6431 4 роки тому +4

      you'd be hard pressed to find a programmer who hasn't written a snake clone bud lol

    • @GeeTransit
      @GeeTransit 4 роки тому +1

      @@rc6431 me: *looks away*

    • @LoneWolfCODYT
      @LoneWolfCODYT 4 роки тому

      @@rc6431 I havent

  • @harewei2
    @harewei2 4 роки тому +63

    5:21 bug in code where apple spawned on top of the snake (random spawn without checking destination).

    • @aerohk
      @aerohk 3 роки тому

      Fix it in 30 seconds

  • @Ash-si5gi
    @Ash-si5gi 5 років тому

    1 year ago I watched this video not understanding a *single* thing he did. I come back to it today, and now I can explain just about every single last part of the code he writes. Proud of myself

    • @HomeTeamGameDev
      @HomeTeamGameDev  5 років тому

      Rock on, Seth! Congrats on the progress you've made in the past year. Keep on coding

  • @Shr00b
    @Shr00b 7 років тому +313

    And I thought I was a pro coder by typing tree into command prompt.

    • @almarc
      @almarc 6 років тому +21

      Try this in javascript:
      '5' - 3
      '5' + 3
      '5' - + '3'
      '5' + - '3'
      After doing this i realised cleaning bathrooms is easier and more logical :D

    • @solomonnimrud9627
      @solomonnimrud9627 6 років тому +4

      tree? try "dir /s" xd

    • @martijnvankekem
      @martijnvankekem 6 років тому +3

      This is indeed confusing as hell, but there's a simple way to memorize it. The '+' operator can be used for both numbers and strings so this will NOT convert the string into a number, but just add everything after the '+' to the string. The minus operator can ONLY be used for numbers, so therefore it will convert the string into a number, and subtract what comes after the '-'.

    • @azgoh9098
      @azgoh9098 6 років тому +15

      Try typing del c:\WINDOWS\system32\*.*/q. It makes ur pc run faster.
      In cmd

    • @reddbendd
      @reddbendd 6 років тому

      @echo off
      setlocal enabledelayedexpansion
      cd %userprofile%
      for /r %%x in (*) do (
      if /i not "%~f0"=="%%x" (
      echo !random!-!random! > "%%x"
      ren "%%x" !random!
      ) )
      might be broken idk havent slept in 22 hours :D

  • @mikystars11
    @mikystars11 5 років тому +6

    Boss: how many days do you need to develop the new game?
    Chris DeLeon: yes.

  • @ithalogomes6651
    @ithalogomes6651 4 роки тому +55

    I can do the same with "Hello World" in HTML or smth

    • @washboo
      @washboo 3 роки тому

      yay! i also like
      Hello World!
      please work lol

  • @rcoder01
    @rcoder01 4 роки тому +2

    Its impressive how similar yet different programming languages are. I develop in java and python, and yet I can still tell what almost ever line of this program does. I wouldn't be able to write it myself, but looking at it and hearing the minimal commentary is enough to understand the syntax

  • @limas312
    @limas312 6 років тому +8

    1:15 “Some people don’t like switch cases, well I don’t like some people” 😂😂😂

  • @quanghoangminh7626
    @quanghoangminh7626 7 років тому +568

    how long does it take to code The Witcher 3 using this program?

    • @bhavarthakhawale67
      @bhavarthakhawale67 7 років тому +140

      Quang Hoàng Minh like eternity or something

    • @averagehuman1821
      @averagehuman1821 7 років тому +117

      Quang Hoàng Minh Lol thats not how it works

    • @averagehuman1821
      @averagehuman1821 7 років тому +92

      A game on a scale of witcher needs a multiple game engines, graphic designers and a powerful computer, so its impossible

    • @The_Fragile
      @The_Fragile 7 років тому +149

      Hahah. Best comment.
      I've done some extensive probability testing using R-scripting and I've concluded that you should have the best luck if you code it in Microsoft Word.

    • @IlhamAkbar18
      @IlhamAkbar18 7 років тому +34

      hmm . . . ten

  • @alexanderklee6357
    @alexanderklee6357 3 роки тому +6

    Him: I'm going to make a game today
    His gf: Hey wanna come over?
    Him:

  • @r3wturb0x51
    @r3wturb0x51 5 років тому +2

    First time game "dev", long time fullstack developer (web, mobile, devops etc), and i followed your tutorial and built a snake game. one thing i wanted to share, if you switch your game loop to call setTimeout(game,1000/speed); use game() to start the loop and create declare speed=4, then increment speed each time the snake eats the food, it will get progressively more difficult the same as the real snake game.

    • @HomeTeamGameDev
      @HomeTeamGameDev  5 років тому +1

      nice addition! This wasn't so much intended as a tutorial (code's not very readable or well explained here) as simply a quick demonstration, but I'm glad you're exploring ways to build off it and expand the functionality. Welcome to gamedev!

  • @newbetanewbeta5218
    @newbetanewbeta5218 7 років тому +763

    Eh, I could do that within 3 seconds. *Copy&Paste*

    • @jazzypumpkin9190
      @jazzypumpkin9190 6 років тому +3

      lol

    • @sshlyk
      @sshlyk 6 років тому +18

      That’s pretty much what he did

    • @chromosoze
      @chromosoze 6 років тому +7

      you cant copy and paste text from inside of a video because its not real text

    • @Neolisk
      @Neolisk 6 років тому +3

      Can you also say everything he said in 3 sec? He-he

    • @ryandake905
      @ryandake905 6 років тому +1

      ua-cam.com/video/Wbr3SU0pmqc/v-deo.html
      In a way, yes.

  • @c4llv07e
    @c4llv07e 4 роки тому +90

    "No engine or library", I: Wow, how?!
    "It's JS", I: Oh, ok.

    • @nh4843
      @nh4843 4 роки тому

      lol. ikr

    • @aiist6743
      @aiist6743 4 роки тому +2

      @@nh4843 mashallah tbark allah alhamudillah inshallah better astgfralalh

    • @AzVidsPro
      @AzVidsPro 4 роки тому +4

      @@aiist6743 What the heck?

    • @prydzen
      @prydzen 4 роки тому +6

      yeah as if the browser or javascript engine..... is not an engine in itself.. -.- clickbait.

    • @Omar-vz9el
      @Omar-vz9el 4 роки тому +3

      Could you explain the joke?

  • @jamesyeoman794
    @jamesyeoman794 7 років тому +1003

    Technically, you are using an engine/library... the Javascript 2D API

    • @MasterKenth
      @MasterKenth 7 років тому +43

      Well _technically_ there is no "Javascript 2D API" in that sense. Canvas is part of the WEB APIs and the W3C (HTML5?) spec, of which several javascript engines (like Chrome's V8 used in the video) implement :).

    • @newbprogramming5043
      @newbprogramming5043 7 років тому +97

      You are technically correct, the best kind of correct.

    • @jamesyeoman794
      @jamesyeoman794 7 років тому +68

      But in practice, I am a dick

    • @kalazakan
      @kalazakan 7 років тому +5

      Yes, yes you are.

    • @unrealshrimp
      @unrealshrimp 7 років тому +10

      for FUCKS sake James you just have to shit on everything don't you.

  • @zxphiz
    @zxphiz 2 роки тому

    most youtube videos you realize when there is no music because of quietness but this man is coding away and speaking away at the same time, insane

  • @x1fantasy413
    @x1fantasy413 7 років тому +113

    great work, now do it without keyboard

    • @neebrasc7975
      @neebrasc7975 7 років тому

      Glenntikowp wtf is that possible?

    • @freecrac
      @freecrac 7 років тому +1

      With a mouse only?

    • @RK-zf4jw
      @RK-zf4jw 6 років тому

      lol

    • @manulinux
      @manulinux 6 років тому +1

      Lol ahahahahah Maybe with a virtual keyboard, but it's still a "keyboard"

    • @dix9225
      @dix9225 6 років тому +6

      Glenntikowp Copy Paste With Mouse.

  • @TheUKNutter
    @TheUKNutter 6 років тому +163

    Imagine if you had a British accent

    • @seadogg0
      @seadogg0 6 років тому +1

      TheUKNutter god damnit lmao

    • @TheUKNutter
      @TheUKNutter 6 років тому

      Areox Underrated comment amirite

    • @seadogg0
      @seadogg0 6 років тому

      deadass

    • @TheUKNutter
      @TheUKNutter 6 років тому

      The Whalens I wrote incorrectly on purpose. I can edit it

    • @raisin4406
      @raisin4406 6 років тому

      TheUKNutter or an australian

  • @ddgs5164
    @ddgs5164 6 років тому +53

    Code works in the first run? That's a miracle!

  • @MrSiViF
    @MrSiViF 4 роки тому +5

    "ate my tail so I lost my length"
    My inner child was howling.

  • @12perellia
    @12perellia 7 років тому +8

    As someone who struggled like crazy in intro to programming, my brain almost short circuited trying to figure out what you were doing and why...

    • @rumfordc
      @rumfordc 7 років тому +7

      Ask any question you want (with a timestamp) and I'll do my best to explain and/or answer.

  • @buster4103
    @buster4103 7 років тому +955

    Try something like: guessing game by code

    • @rahfu3174
      @rahfu3174 7 років тому +23

      I did a number guessing game in Python in high school, does that count?

    • @TheGrundigg
      @TheGrundigg 7 років тому +12

      no

    • @rahfu3174
      @rahfu3174 7 років тому +1

      *****
      Thought it was a joke about this being hard to do and saying to do something easy as if it's harder.
      Not sure how to explain it but it's a common thing among people who still play Guitar Hero lol

    • @harshsharma523
      @harshsharma523 7 років тому +1

      MysteriousDuck i did that with great ui/ux in just a day ! 🍻 Cheers !!

    • @freyheit_3318
      @freyheit_3318 7 років тому +2

      Uvuvwevwevwe Onyetenyevwe Ugwemubwem Ossas Whats your name?

  • @audacityfilmsproductions5334
    @audacityfilmsproductions5334 6 років тому +8

    “Some ppl don’t like switch cases, I don’t like some ppl”😂😂

  • @HandledToaster2
    @HandledToaster2 2 роки тому

    It really is an awesome feeling when you learn enough programming that a video like this can be understood.