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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ค. 2017
  • New way to learn game development online: HomeTeamGameDev.com (previously called Gamkedo Club) Free weekly tips in your inbox: GameDevTraining.com Free intro course: code-your-first-game.com The (hacky) Snake source: pastebin.com/Z3zhb7cY About InteractionArtist, my 219 daily prototypes: • InteractionArtist 219 ...
  • บันเทิง

ความคิดเห็น • 6K

  • @SirPasta-vx9jn
    @SirPasta-vx9jn 4 ปีที่แล้ว +4819

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

  • @tregi
    @tregi 5 ปีที่แล้ว +7607

    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 ปีที่แล้ว +222

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

    • @alpeshjadav9307
      @alpeshjadav9307 4 ปีที่แล้ว +47

      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.

  • @harrum2577
    @harrum2577 3 ปีที่แล้ว +3117

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

    • @MrGuliton
      @MrGuliton 3 ปีที่แล้ว +9

      xD

    • @halecj1
      @halecj1 3 ปีที่แล้ว +75

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

    • @MaxCE
      @MaxCE 3 ปีที่แล้ว +5

      Multitasking

    • @Bourn77
      @Bourn77 3 ปีที่แล้ว

      😂

    • @TempoChannel5
      @TempoChannel5 3 ปีที่แล้ว

      Nodes

  • @wickes316
    @wickes316 3 ปีที่แล้ว +1332

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

    • @zninjachato
      @zninjachato 3 ปีที่แล้ว +51

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

    • @ashmitarora8544
      @ashmitarora8544 3 ปีที่แล้ว +16

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

    • @jimhalpert9803
      @jimhalpert9803 3 ปีที่แล้ว +1

      Real smooth

    • @leonardocastillosanchez5398
      @leonardocastillosanchez5398 3 ปีที่แล้ว +2

      Ninja Chato ಠ_ಠ do you have the code?

    • @dionel1388
      @dionel1388 3 ปีที่แล้ว +2

      @@leonardocastillosanchez5398 same question. I wanna geddit.

  • @gerphoenix5786
    @gerphoenix5786 7 ปีที่แล้ว +22081

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

    • @TechSupportDave
      @TechSupportDave 7 ปีที่แล้ว +417

      **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

    • @NummerJeen
      @NummerJeen 7 ปีที่แล้ว +45

      +Chicken Permission Nice reference! +1

    • @vOddy75
      @vOddy75 7 ปีที่แล้ว +46

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

  • @mohammadsalehe4283
    @mohammadsalehe4283 5 ปีที่แล้ว +2138

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

    • @mrsveeto
      @mrsveeto 3 ปีที่แล้ว +12

      ME TOO

    • @reyariass
      @reyariass 3 ปีที่แล้ว +4

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

    • @shikharjoshi1113
      @shikharjoshi1113 3 ปีที่แล้ว +7

      */Declares String as a variable name/*

    • @user-xf9bo6eq8f
      @user-xf9bo6eq8f 3 ปีที่แล้ว +3

      Its kinda really important

    • @crepperwlp
      @crepperwlp 3 ปีที่แล้ว +11

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

  • @user-tl7oo4jg6i
    @user-tl7oo4jg6i 4 ปีที่แล้ว +1400

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

    • @HomeTeamGameDev
      @HomeTeamGameDev  4 ปีที่แล้ว +360

      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...

  • @ledoggo7516
    @ledoggo7516 3 ปีที่แล้ว +450

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

    • @BackFireZz
      @BackFireZz 2 ปีที่แล้ว +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 ปีที่แล้ว

      @@pumpkant just got the joke

  • @SalitosInside
    @SalitosInside 7 ปีที่แล้ว +2249

    Ranting and coding; whole new level of multitasking.

    • @BruceLee-nj2zf
      @BruceLee-nj2zf 6 ปีที่แล้ว +21

      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 6 ปีที่แล้ว +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 6 ปีที่แล้ว

      Marius lmaoo

    • @pitbullterrier4277
      @pitbullterrier4277 6 ปีที่แล้ว +4

      0:39 looked away. :D

    • @Sylfa
      @Sylfa 6 ปีที่แล้ว +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.

  • @Omenxiiii
    @Omenxiiii 7 ปีที่แล้ว +1067

    The fuck is going on here

    • @tolbydamit
      @tolbydamit 7 ปีที่แล้ว +87

      Cocaine + competent developer = game.

    • @Jose_T131
      @Jose_T131 7 ปีที่แล้ว +62

      hookers and cocaine my friend...

    • @Autos389
      @Autos389 7 ปีที่แล้ว +5

      Cocaine + guy who's done this game a dozen or two times = rapid demo

    • @angryidahobusdriver
      @angryidahobusdriver 7 ปีที่แล้ว +7

      mainly math and variables. I think so ;0

    • @etherlords88
      @etherlords88 7 ปีที่แล้ว +4

      Bryson Ruud a stoned code labour explaining his life

  • @ankitkhanall
    @ankitkhanall 3 ปีที่แล้ว +669

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

    • @henningvanwyk9025
      @henningvanwyk9025 3 ปีที่แล้ว +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 2 ปีที่แล้ว +1

      @Tari Wheeler Most unsubtle subtle advertisement on a youtube comment

    • @CutieFakeKirby
      @CutieFakeKirby 2 ปีที่แล้ว

      @@jk-gb4et its not advertising, its helping

    • @jk-gb4et
      @jk-gb4et 2 ปีที่แล้ว

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

    • @Luke-tb3lx
      @Luke-tb3lx 2 ปีที่แล้ว

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

  • @nabiisakhanov3522
    @nabiisakhanov3522 4 ปีที่แล้ว +248

    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 2 ปีที่แล้ว +1

      @@wizzenberry uni is bs imo

    • @jasonzheng5839
      @jasonzheng5839 2 ปีที่แล้ว +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 2 ปีที่แล้ว

      @@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

  • @RhapsodyAfternoon
    @RhapsodyAfternoon 7 ปีที่แล้ว +2632

    "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 6 ปีที่แล้ว +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 6 ปีที่แล้ว +4

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

  • @Gabriel-jx4or
    @Gabriel-jx4or 6 ปีที่แล้ว +2174

    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

    • @fedecolo2010
      @fedecolo2010 6 ปีที่แล้ว

      Thanks for the captions

    • @VictorRodriguez-zp2do
      @VictorRodriguez-zp2do 5 ปีที่แล้ว

      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

  • @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

  • @CyrusSUEN
    @CyrusSUEN 3 ปีที่แล้ว +121

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

  • @BobMcCoy
    @BobMcCoy 7 ปีที่แล้ว +1964

    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 ปีที่แล้ว +51

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

  • @deox2259
    @deox2259 5 ปีที่แล้ว +5586

    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?

  • @gantoreno
    @gantoreno ปีที่แล้ว +3

    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.

  • @seanlange4457
    @seanlange4457 2 ปีที่แล้ว +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

  • @elias-nf8qj
    @elias-nf8qj 7 ปีที่แล้ว +2809

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

    • @1hkd29
      @1hkd29 6 ปีที่แล้ว +6

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

    • @jazzypumpkin9190
      @jazzypumpkin9190 6 ปีที่แล้ว

      its good i guess

    • @taujago
      @taujago 6 ปีที่แล้ว +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

  • @TLB-ai
    @TLB-ai 7 ปีที่แล้ว +3583

    Sorry what happened in this video? I blinked.

    • @satyammishra4224
      @satyammishra4224 7 ปีที่แล้ว

      theluckyboy54321 lolol

    • @cadevine1000
      @cadevine1000 7 ปีที่แล้ว +21

      You must take a long time to blink

    • @cadevine1000
      @cadevine1000 7 ปีที่แล้ว +2

      J. Corraux Right then

    • @johaneduardo10
      @johaneduardo10 7 ปีที่แล้ว +7

      cadevine1000 I

    • @itstyler2832
      @itstyler2832 7 ปีที่แล้ว +6

      Look who it is hahahahahha

  • @plaxold
    @plaxold 3 ปีที่แล้ว +143

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

  • @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

  • @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 ปีที่แล้ว +5006

    "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

  • @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.

  • @dilipnishad1264
    @dilipnishad1264 3 ปีที่แล้ว +12

    After 56 years later:
    Coding Cyberpunk 2077 in 1hr !!

  • @harbirsingh7266
    @harbirsingh7266 6 ปีที่แล้ว +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 !

  • @Jack-gu4fc
    @Jack-gu4fc 7 ปีที่แล้ว +2674

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

    • @CatFoodCritic
      @CatFoodCritic 7 ปีที่แล้ว +28

      and your watching this video

    • @user-jo2wp1hb1c
      @user-jo2wp1hb1c 7 ปีที่แล้ว +32

      Un_Pugged Gaming he talk about the guy in video

    • @user-jo2wp1hb1c
      @user-jo2wp1hb1c 7 ปีที่แล้ว +1

      ACookieForMe i hope you're trolling

    • @anthonytamez170
      @anthonytamez170 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?

  • @zRedPlays
    @zRedPlays 2 ปีที่แล้ว +1

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

  • @buurton1
    @buurton1 3 ปีที่แล้ว

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

  • @swegattyswooty9307
    @swegattyswooty9307 7 ปีที่แล้ว +1619

    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 😂

    • @YoungPricelessFamily
      @YoungPricelessFamily 7 ปีที่แล้ว +6

      same here too lmao

  • @trashonstilts9432
    @trashonstilts9432 6 ปีที่แล้ว +1975

    This guy is the Eminem of coding tutorials

  • @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

  • @HandledToaster2
    @HandledToaster2 2 ปีที่แล้ว

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

  • @poopingbuffalo2095
    @poopingbuffalo2095 7 ปีที่แล้ว +1881

    Hurry up, dude.

  • @user-td3uj8is5i
    @user-td3uj8is5i 7 ปีที่แล้ว +2725

    pls code half life 3 in 3 seconds.

    • @geu9928
      @geu9928 7 ปีที่แล้ว +8

      λ3 you think its that easy?

    • @Karuska22ps
      @Karuska22ps 7 ปีที่แล้ว +135

      GDLC Dizz
      yes

    • @phenomen66
      @phenomen66 7 ปีที่แล้ว +31

      Just save this code as hl3.html ;)

    • @krishnateja296
      @krishnateja296 7 ปีที่แล้ว +55

      +GDLC Dizz you should be fun at parties.

    • @Niffie
      @Niffie 7 ปีที่แล้ว +16

      +Krishna teja
      Bad modal verb detected.

  • @xukxj0nny
    @xukxj0nny 3 ปีที่แล้ว +28

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

  • @ithalogomes6651
    @ithalogomes6651 3 ปีที่แล้ว +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

  • @tarky-
    @tarky- 7 ปีที่แล้ว +1966

    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 ปีที่แล้ว +19

      Hippie With A Cowboy Hat 6:29

  • @teecchnoboy
    @teecchnoboy 7 ปีที่แล้ว +46

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

  • @Ash-si5gi
    @Ash-si5gi 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

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

  • @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.

  • @chris-yf1gv
    @chris-yf1gv 6 ปีที่แล้ว +561

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

    • @HomeTeamGameDev
      @HomeTeamGameDev  6 ปีที่แล้ว +43

      it me

    • @chris-yf1gv
      @chris-yf1gv 6 ปีที่แล้ว +7

      A Lot of respect to you sir this is really good

    • @ashismandal7776
      @ashismandal7776 5 ปีที่แล้ว

      Please suggest a good editor for JavaScript programming.

    • @samm4510
      @samm4510 5 ปีที่แล้ว +1

      @@ashismandal7776 atom is good

    • @galaxy4dayz
      @galaxy4dayz 5 ปีที่แล้ว

      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 6 ปีที่แล้ว +3780

    He lost me at 0:01

  • @rcoder01
    @rcoder01 3 ปีที่แล้ว +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

  • @Inflake
    @Inflake 3 ปีที่แล้ว +76

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

    • @HomeTeamGameDev
      @HomeTeamGameDev  3 ปีที่แล้ว +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)

  • @thompsonmatthew
    @thompsonmatthew 6 ปีที่แล้ว +1409

    "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.

  • @brianchen3444
    @brianchen3444 7 ปีที่แล้ว +756

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

    • @HarshG28
      @HarshG28 6 ปีที่แล้ว

      Brian Chen game too

    • @fareesdabadi8534
      @fareesdabadi8534 6 ปีที่แล้ว +2

      Peas and carrots

    • @TheFlyingE
      @TheFlyingE 6 ปีที่แล้ว

      That’s what captions are for

    • @clemoutoftime
      @clemoutoftime 6 ปีที่แล้ว +1

      i really don't think you get it, flyinge.

    • @abdallahabdillah8477
      @abdallahabdillah8477 6 ปีที่แล้ว

      HAHAHAH you made my day man

  • @milanmladenovic9364
    @milanmladenovic9364 3 ปีที่แล้ว

    Thank you very much! I know you said this isn't supposed to be a tutorial, but it inspired me to do something with canvas myself.

  • @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

  • @pep3001
    @pep3001 7 ปีที่แล้ว +2306

    coding snake speedrun at agdq 2018

    • @jlpt9960
      @jlpt9960 7 ปีที่แล้ว +119

      Mr.Sheepington he had some good RNG this run

    • @GameFuMaster
      @GameFuMaster 7 ปีที่แล้ว +69

      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

  • @yh_hat_trick491
    @yh_hat_trick491 6 ปีที่แล้ว +340

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

  • @DerpsGW
    @DerpsGW 2 ปีที่แล้ว

    This is an excellent video to watch to see if you are interested in code / game creation.

  • @marcdaaboul3020
    @marcdaaboul3020 3 ปีที่แล้ว +1

    He speaks the speed of my math teacher x2
    Thank you for not wasting our time

  • @nosky2142
    @nosky2142 7 ปีที่แล้ว +1736

    Like for an English version of this

    • @maa8402
      @maa8402 7 ปีที่แล้ว +3

      hhhh

    • @MujahidOmer
      @MujahidOmer 7 ปีที่แล้ว +9

      Lol, made my day 😂

    • @hgipwrjt1286
      @hgipwrjt1286 6 ปีที่แล้ว

      Lol

    • @no00ob
      @no00ob 6 ปีที่แล้ว +1

      Noah Lupico lol

    • @BaileySchellDE48FF
      @BaileySchellDE48FF 6 ปีที่แล้ว +7

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

  • @Fynmar91
    @Fynmar91 5 ปีที่แล้ว +4696

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

    • @1ungs
      @1ungs 5 ปีที่แล้ว +35

      Fynmar yeah same

    • @brodymoore7376
      @brodymoore7376 5 ปีที่แล้ว +15

      Watched mine at 0.01

    • @SONICCRET
      @SONICCRET 5 ปีที่แล้ว +26

      But he talks really fast!

    • @SONICCRET
      @SONICCRET 5 ปีที่แล้ว +44

      r/whooooosh

    • @SONICCRET
      @SONICCRET 5 ปีที่แล้ว +24

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

  • @hizokadarkwolf
    @hizokadarkwolf 3 ปีที่แล้ว

    I saw this some years ago, when I was starting to code seriously. So glad that youtube brought back these memories.

    • @HomeTeamGameDev
      @HomeTeamGameDev  3 ปีที่แล้ว

      Welcome back 👋 I'm glad you've gotten more into coding in the time since!

  • @moebiuscardistry
    @moebiuscardistry 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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

  • @zax1891
    @zax1891 7 ปีที่แล้ว +1059

    You are amazing!!

    • @melinoe3783
      @melinoe3783 7 ปีที่แล้ว +14

      No you are amazing!! :)

    • @matiascelaj3946
      @matiascelaj3946 7 ปีที่แล้ว +1

      MrFreak I

    • @Manotaurr
      @Manotaurr 7 ปีที่แล้ว +24

      No, I am amazing!

    • @evenrik_2214
      @evenrik_2214 7 ปีที่แล้ว +1

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

  • @afterburner7847
    @afterburner7847 7 ปีที่แล้ว +1293

    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 6 ปีที่แล้ว +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.

  • @r3wturb0x51
    @r3wturb0x51 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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!

  • @yayz_
    @yayz_ 2 ปีที่แล้ว

    Its even more impressive that he didn't stop and check for errors

  • @buster4103
    @buster4103 7 ปีที่แล้ว +957

    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?

  • @lakonver4947
    @lakonver4947 7 ปีที่แล้ว +1383

    _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

    • @Gustavo-ye1ko
      @Gustavo-ye1ko 7 ปีที่แล้ว +12

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

  • @TheDiabolocraft
    @TheDiabolocraft 2 ปีที่แล้ว

    this guys heart was racing for the entire speedrun I'm crying

  • @andykelly7321
    @andykelly7321 3 ปีที่แล้ว

    I had absolutely zero clue what language you were speaking, I still watched until the end.

  • @andr_wh
    @andr_wh 7 ปีที่แล้ว +67

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

  • @DKomnicide
    @DKomnicide 7 ปีที่แล้ว +1701

    I coded Skyrim after I deleted system 32

    • @Dysll
      @Dysll 7 ปีที่แล้ว +3

      Donkey Kong Jesus fuck that must have been hard to do

    • @prankster3674
      @prankster3674 7 ปีที่แล้ว +3

      lol scrubs he's clearly using linux

    • @DJzalkin
      @DJzalkin 7 ปีที่แล้ว +1

      Are you high?

    • @vangelicest4183
      @vangelicest4183 7 ปีที่แล้ว +25

      You can delete system32 to make your pc run faster. Everyone knows it...

    • @ddnava96
      @ddnava96 7 ปีที่แล้ว

      So you first deleted system 32 and then coded Skyrim? That's impressive!!

  • @1gnore_me.
    @1gnore_me. 3 ปีที่แล้ว +3

    "we're going to need an array for our player" I was shaking in my boots

  • @barbecuebobby2582
    @barbecuebobby2582 3 ปีที่แล้ว

    This is the coolest ad I've ever seen

  • @domi564
    @domi564 6 ปีที่แล้ว +2441

    You have 5 minutes to live -

    • @HomeTeamGameDev
      @HomeTeamGameDev  6 ปีที่แล้ว +150

      I regret nothing!

    • @logaldo2812
      @logaldo2812 6 ปีที่แล้ว +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*

  • @drgusman
    @drgusman 7 ปีที่แล้ว +2382

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

    • @ssougnez
      @ssougnez 6 ปีที่แล้ว +346

      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 6 ปีที่แล้ว +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 6 ปีที่แล้ว +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 6 ปีที่แล้ว +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 6 ปีที่แล้ว +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.

  • @user-xv2dl5pi5y
    @user-xv2dl5pi5y 3 ปีที่แล้ว +49

    Watching this in 2x speed: learn how to code Snake in 2 min 15 sec.

    • @dwakeling1
      @dwakeling1 3 ปีที่แล้ว +1

      If you was a real programmer you would insert some code into the dev console to speed it up 16x

  • @c4llv07e
    @c4llv07e 3 ปีที่แล้ว +90

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

    • @nh4843
      @nh4843 3 ปีที่แล้ว

      lol. ikr

    • @aiist6743
      @aiist6743 3 ปีที่แล้ว +2

      @@nh4843 mashallah tbark allah alhamudillah inshallah better astgfralalh

    • @AzVidsPro
      @AzVidsPro 3 ปีที่แล้ว +4

      @@aiist6743 What the heck?

    • @prydzen
      @prydzen 3 ปีที่แล้ว +6

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

    • @Omar-vz9el
      @Omar-vz9el 3 ปีที่แล้ว +3

      Could you explain the joke?

  • @ducatinyc
    @ducatinyc 7 ปีที่แล้ว +1736

    "i'm getting so long"

    • @MirrorsEdgeGamer01
      @MirrorsEdgeGamer01 6 ปีที่แล้ว +14

      *#TWSS*
      _That's What She Said_

    • @uzielfranco2104
      @uzielfranco2104 6 ปีที่แล้ว +8

      i would like your comment but its at 420

    • @brohymn6797
      @brohymn6797 6 ปีที่แล้ว +2

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

    • @TalestoryJL
      @TalestoryJL 6 ปีที่แล้ว +6

      'this is getting much harder than I expected'

    • @equifernus9913
      @equifernus9913 6 ปีที่แล้ว

      im sed bckuz i csnrt fingfd myyyy ccccccat

  • @jamesyeoman794
    @jamesyeoman794 7 ปีที่แล้ว +1004

    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.

  • @Hester_prynne
    @Hester_prynne 3 ปีที่แล้ว

    you my friend just earned a new subscriber

  • @jaydenmoon1165
    @jaydenmoon1165 3 ปีที่แล้ว

    just stumbled upon this - this was cool to see

  • @frijoles9749
    @frijoles9749 5 ปีที่แล้ว +1529

    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?

  • @kqzo
    @kqzo 5 ปีที่แล้ว +3377

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

    • @polka678
      @polka678 5 ปีที่แล้ว +38

      Kazotsky 🤦‍♂️😂

    • @afiqaiman3037
      @afiqaiman3037 5 ปีที่แล้ว +131

      Get outt!!

    • @haykg
      @haykg 5 ปีที่แล้ว +12

      Kazotsky please tell me this is a joke

    • @jaedii7287
      @jaedii7287 5 ปีที่แล้ว +50

      PatriArk no this is very serious sir

    • @SohnVonRudi
      @SohnVonRudi 5 ปีที่แล้ว +20

      fkn communist

  • @Andrew-nq2dt
    @Andrew-nq2dt 3 ปีที่แล้ว +1

    It's just so impressive how you can talk while typing code so fast! I am a little behind your pace typing English and I can't say a word doing it!

  • @MrSiViF
    @MrSiViF 3 ปีที่แล้ว +5

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

  • @JunaidKhan-pq8ji
    @JunaidKhan-pq8ji 6 ปีที่แล้ว +154

    "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 ปีที่แล้ว +315

    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 3 ปีที่แล้ว +2

      *YandereDev has entered the chat*

    • @KayOScode
      @KayOScode 3 ปีที่แล้ว +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 2 ปีที่แล้ว

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

    • @KayOScode
      @KayOScode 2 ปีที่แล้ว

      @@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

  • @owenlim225
    @owenlim225 2 ปีที่แล้ว

    Just start learning how to code yesterday, might be back here years later.

  • @chregig7967
    @chregig7967 3 ปีที่แล้ว +3

    I'll show this video to my apprentice so he'll see why I'm not allowing him to use a fully fledged IDE to do his first pure HTML and CSS website (yes, literally all of his 'code' is in one straight vertical line). Gotta learn that code formatting and study your keyboard!

  • @Piineapple.
    @Piineapple. 7 ปีที่แล้ว +42

    He was prepared

    • @blankboy96
      @blankboy96 7 ปีที่แล้ว +10

      that what she said

  • @Agarico
    @Agarico 7 ปีที่แล้ว +1193

    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

  • @pooopyfartgamer
    @pooopyfartgamer 3 ปีที่แล้ว +6

    ok finally the “looks away for 1s” meme finally make sense for me

  • @ruok1992
    @ruok1992 3 ปีที่แล้ว +67

    *THIS GUY DON'T NEED WIFI TO PLAY GAMES*

    • @asmadaftary42
      @asmadaftary42 3 ปีที่แล้ว +1

      Technically we don't need too, remember the chrome dino game ;)

    • @jonathon.pereira9276
      @jonathon.pereira9276 3 ปีที่แล้ว

      He needs WiFi, he opened the final end programme in chrome

    • @Nox3V
      @Nox3V 3 ปีที่แล้ว +2

      @@jonathon.pereira9276 you dont need connection for that :)

    • @jonathon.pereira9276
      @jonathon.pereira9276 3 ปีที่แล้ว

      @@Nox3V oh okay, sorry. My bad. I'm not really good at programming tbh. Everytime I've opened an end programme in chrome, I was connected to the WiFi. So ig I never knew that u didn't need it

    • @ruok1992
      @ruok1992 3 ปีที่แล้ว

      @@jonathon.pereira9276 if you're talking about 5:52 , then it's okay .... the game itself is done withiut any help of wifi

  • @SM-ly5tf
    @SM-ly5tf 7 ปีที่แล้ว +704

    ahh...imagine this dude worked On a game for 10 years 😂

    • @satyammishra4224
      @satyammishra4224 7 ปีที่แล้ว

      saaj90 lolol

    • @stefansproductions6245
      @stefansproductions6245 7 ปีที่แล้ว +25

      saaj90 He'd probably make gotw, Game of the World man like forever

    • @carlos2004
      @carlos2004 7 ปีที่แล้ว +66

      with that much time, he would code real life

    • @yourdestination6897
      @yourdestination6897 7 ปีที่แล้ว +3

      Hel'll be able to make a game that's so breathtaking, so realistic, so damn fun, he'll be hailed as a god beside God.

    • @gatomich3627
      @gatomich3627 7 ปีที่แล้ว +94

      CrayDude345 // RageEX just because he can code well doesn't automatically mean he could make a great game

  • @critical11creator
    @critical11creator 7 ปีที่แล้ว +615

    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 )

  • @sababugs1125
    @sababugs1125 3 ปีที่แล้ว +12

    Next up : coding a simulation of the entrie universe in assembly

  • @user-ct6sy5ky8p
    @user-ct6sy5ky8p 2 ปีที่แล้ว

    Still impressive in 2022! Thank you!

  • @jonsimpson6690
    @jonsimpson6690 6 ปีที่แล้ว +731

    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 5 ปีที่แล้ว +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 5 ปีที่แล้ว +8

      *H O W E V E R*

    • @tijsbeek3094
      @tijsbeek3094 5 ปีที่แล้ว +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.

  • @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!

  • @Rayer24
    @Rayer24 4 ปีที่แล้ว

    Before I wouldn't understand anything but now I've been learning javascript I understand some things. That's pretty cool

  • @alexanderklee6357
    @alexanderklee6357 3 ปีที่แล้ว +6

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