Coding Challenge #31: Flappy Bird

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

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

  • @YourNightmar3
    @YourNightmar3 8 ปีที่แล้ว +2403

    I like the green part in that band on your head

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

      YourNightmar3 what green part? I dont see it

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

      Dennis van hove Hahaha xD

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

      +Dennis van hove that's because it's green.

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

      HA HA HA !!! Basics of green screen ! he spent too much time learning code that he forgot the basics of green screen !

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

      Shantanu Kulkarni well maybe he did it on purpose

  • @ronraisch510
    @ronraisch510 4 ปีที่แล้ว +41

    Hi there, I wanted to tell you how much this specific video changed my life. 3 years ago I came across this video and was amazed by the simplicity and fun I saw in your content, I became addicted to it and started really getting into coding thanks to you (I knew python before but it wasn’t such a big thing for me) after awhile I learned c as well and you made a series about machine learning and i fell in love with the subject, I learned everything I could about it and entered a program which I was supposed to only do maths and physics in it but thanks to you I gave CS a chance and I did many projects in the subject ever since and enjoyed all of them. So I want to say a HUGE thanks to you!

  • @squrpion
    @squrpion 8 ปีที่แล้ว +1880

    You are the Bob Ross of programming.

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

      Hahahahahaha! Spot on

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

      No glitches, just happy little bugs.

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

      haha he's pretty much nothing like Bob Ross. Except they're both positive people?

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

      funny

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

      Squrpion what about him smacking something on his stool. He can smack his mouse (or computer) and then he will be Bob Ross
      And he's not dead.

  • @AxelParis
    @AxelParis 8 ปีที่แล้ว +175

    "Coding Challenge" is so USEFULL ! thanks for your work

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +11

      Thanks for watching!

    • @chickymaster_gamer1370
      @chickymaster_gamer1370 8 ปีที่แล้ว +2

      AMAZING VIIDEO!!! CAN U DO FIVE NIGHTS A FREDDYS PLZ

    •  8 ปีที่แล้ว +1

      If you are new, my recommendation would be c# or java. Thus go for visual studio or Eclipse/Netbeans. Those are fairly simple to use and pretty easy to start with.

    • @steveshipferling8068
      @steveshipferling8068 8 ปีที่แล้ว

      Axel Paris

    • @AxelParis
      @AxelParis 8 ปีที่แล้ว

      Yes ?

  • @prectec
    @prectec 8 ปีที่แล้ว +1096

    Can you make half life 3 please?

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

    You popped up in my recommended for some reason. I don't even know coding or have any particular interest in it, but you're so good at keeping me watching I want to see the finished code. Great work!

  • @morphman86
    @morphman86 8 ปีที่แล้ว +557

    Can we all just take a moment to appreciate the fact that Danny's head and hands are disconnected from the rest of him?

    • @Cryts
      @Cryts 8 ปีที่แล้ว +10

      lol that green colored band lines x]

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

      he is the Rayman of coding

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

      I've seen disembodied heads before but disembodied scalps?

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

      That's because when he is tired he puts them to recharge today they were a little loose.

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

      Sleeping Assassin ac rebellion #bestacgame (jk ofc ac 2 = best)

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

    This guy is like the bob ross of coding. I’m already hooked and subscribed. Thank you for making coding look so fun.

  • @whiteexpress94
    @whiteexpress94 8 ปีที่แล้ว +300

    These coding challenges are actually teaching me a lot more about Java than my teacher does in the past 4 years I have spent in my programming classes, and these challenges are so much fun too!

    • @bigloud7067
      @bigloud7067 8 ปีที่แล้ว +61

      whiteexpress94 JavaScript

    • @Blazeorite
      @Blazeorite 8 ปีที่แล้ว

      whiteexpress94 what are you majoring in? Or what class?

    • @whiteexpress94
      @whiteexpress94 8 ปีที่แล้ว

      Sujith Nakkala my Java class, I'm majoring in Computer Science actually lol but the syllabus here makes everything look hard because they're all outdated syllabus

    • @bigloud7067
      @bigloud7067 8 ปีที่แล้ว +19

      whiteexpress94 This is a different language than Java

    • @whiteexpress94
      @whiteexpress94 8 ปีที่แล้ว

      Sheepdog_ yes it's javascript

  • @UweEichel
    @UweEichel 8 ปีที่แล้ว +50

    I just love how the green on your headband is interfering with the green screen

    • @WaffleCat
      @WaffleCat 8 ปีที่แล้ว

      indeed xD

  • @paulshay
    @paulshay 8 ปีที่แล้ว +413

    you're a very good speaker!!! you should do a ted talk :)

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

      Hi! i am a guy called shiffman by many, and this is my first ted talk! so, lets not waste time! you start here.....and then you simply have to type......THIS DOOT THIS DOOOT THIS DOOOT
      and we are done

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

      ^

  • @QuangNguyen-eb3pu
    @QuangNguyen-eb3pu 5 ปีที่แล้ว

    can you coding with Python.? ! I think your video great!

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

    Dude, I love you videos. You're also a very engaging, smart and entertaining person which makes this a lot more fun to watch! Keep up the good work!!!!

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

    You are the best man to teach me to code because of your energy. I don’t feel condescended I do feel rushed and I love it. Thank you. You make it feel enjoyable.

  • @MR-bp8od
    @MR-bp8od 7 ปีที่แล้ว +356

    literally just watched a 21 minute video of a guy doing something that i don't understand in any way whatsoever.

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

      Mason Richards You can learn it.

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

      Mason Richards he basically used a lot of logic and algebra

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

      Same here and I'm smoking a joint I think I'm going to learn how to code tomorrow

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

      Bzilla Whoop so did you learn to code? :p

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

      This is actually pretty simple, I understood this when I was 14, and I can't code shit xD

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

    Man, the way you convert your ideas to code as you go is awesome. What a beauty!

  • @doncocubing5314
    @doncocubing5314 8 ปีที่แล้ว +373

    FINALLY A CODING TH-camR

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

      Donco Cubing so you too are a cuber

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

      Hey fellow cubers

    • @Luca-hf6ty
      @Luca-hf6ty 6 ปีที่แล้ว +1

      Ya code cubes ah?

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

      Donco Cubing ф

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

      uh have you heard of dani

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

    your coding really encouraging new programmers, then teach them how programming is easy! thanks so much Mr.CODE.

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

    Never in my entire life was I so glad I used youtube recommendations.

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

    srsly you are a true inspiration! thanks so much for making those videos. I have coding as part of my university and often i miss that exact exitement you show and the empathy i can creat through this.
    Really well done. for me this gives me such a higher learing factor!!
    keep it up

  • @freekmol7484
    @freekmol7484 8 ปีที่แล้ว +47

    I don't know anything about programming but for Some Reason i enjoy watching these videos

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

      Freek Mol samee

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

      Same as me but im trying to learn
      Wish me luck!!

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

    I've been wanting to learn how to program for years, I had started, but couldn't find any good tutorials. But just from watching this one video, I've already learned so much more.

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

      Thanks!! You can try either of these playlists to start from scratch!
      th-cam.com/users/shiffmanplaylists?view=50&shelf_id=14&sort=dd
      th-cam.com/users/shiffmanplaylists?view=50&shelf_id=2&sort=dd

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

    I just wanna meet with him , he has some sort of happiness disorder , God bless you man!

    • @seymur.halley
      @seymur.halley 5 ปีที่แล้ว +1

      Grammar mistake, it must be "meet him"

  • @MainakDev
    @MainakDev 8 ปีที่แล้ว +1

    I found you channel yesterday and i am totally hooked to your coding challenge video, you are great, and i love the way you teach.

  • @potato9410
    @potato9410 8 ปีที่แล้ว +122

    the green in your rainbow headband is slicing your head in half lmao

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

    WOOOWW!! I'm impressed by your rapidity and the fluentness of your reasonnings!!!!! I already subscribed and so happy for having done that.

  • @StoneColdMagic
    @StoneColdMagic 8 ปีที่แล้ว +4

    You're a freakin' coding machine brother! I bow, in Wayne's World fashion, as I chant "We're not worthy . . . we're not worthy!"

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

    You are probably the most unique coder who, when watched, is greatly enjoyed.

  • @wouter11234
    @wouter11234 8 ปีที่แล้ว +53

    you should make a genetic algorithm with this and make the fitness value based on how long the user played without hitting a pipe or something!

    • @Mrlarswiegers
      @Mrlarswiegers 8 ปีที่แล้ว

      yes please do this

    • @alin.pisica
      @alin.pisica 8 ปีที่แล้ว

      +1

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +23

      Great idea! I am hoping to do something with this and machine learning yes!

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

    I never knew programming can be made this entertaining (or should I say this DOT entertaining? :D ), I enjoy doing it but never enjoyed watching someone else do it. Fastest sub of my life.

  • @william_bp
    @william_bp 5 ปีที่แล้ว +49

    Mike Boyd anyone?

    • @techwizpianist1654
      @techwizpianist1654 4 ปีที่แล้ว +1

      Yeah am watching this cause of tht sound game he coded

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

    After watching your video, I try to implement it with pygame and it worked
    Just appreciate your nice coding lesson!

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

    Would be cool if there was a place people could load their altered versions of your code which could be voted on by users! Would love to see what people do from your work. Love your videos!

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +1

      +Sam Robertson I love this idea! Will have to think about how to do this. Open to ideas.

    • @SamRobertsonYT
      @SamRobertsonYT 8 ปีที่แล้ว

      There are many open available social platform/CMS tools and integrating some capabilities that codepen has (may already be open source). I'm sure you'd find a way to make this work. From then produce categories for each challenge :)

    • @mvb369
      @mvb369 8 ปีที่แล้ว +4

      maybe a subreddit?

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

      Discord??

  • @ToninoBlack
    @ToninoBlack 8 ปีที่แล้ว

    You're simply the best! Extremely helpful and fun to watch! Amazing format!

  • @shababahmed7117
    @shababahmed7117 8 ปีที่แล้ว +98

    want to see the pac man game, in you next video,
    #pac man coding Challenge.

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

    This was on my recommended page.. checked it out . This dude is amazing !

  • @erlfram
    @erlfram 8 ปีที่แล้ว +4

    wow. first time ive seen a video that makes coding fun

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

      erlfram if it isn't fun for its sake this isn't for you.

  • @NoshLP
    @NoshLP 8 ปีที่แล้ว

    This kind of coding of you is so helpful and you really help to understand all the commands without any knowledges. For me it would be better, if this would be java and not js, but great work! Keep going!

  • @johnacsyen
    @johnacsyen 8 ปีที่แล้ว +18

    Hi, love your enthusiasm and animated, jovial tutorial. It's so funny watch. Thanks

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

      So glad to hear, thank you!

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

      @@TheCodingTrain On the Creating a Bird Object part, I keep getting an error that says Bird is not defined.

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

    I love that the green part of your headband makes your head see through.

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

    This guy is the best teacher in history

  • @adamevil550
    @adamevil550 8 ปีที่แล้ว +1

    idk why i like this dude! he's so good at this stuff

  • @김도도-g3r
    @김도도-g3r 6 ปีที่แล้ว +4

    You're a very good teacher easy to understand

  • @ehd6804
    @ehd6804 8 ปีที่แล้ว

    Just found your channel, absolutely love it, and realized this video was uploaded on my bday

  • @Doomeiner
    @Doomeiner 8 ปีที่แล้ว +17

    About the pipes I would have instead set a fixed space between the up pipe and the bot pipe and make that a random position in the height, with a limit to how lower it can be and how up it can be. I don't know if you get what I mean. I don't know how to program yet tho, I can just give some ideas to improve the code :p

    • @thekenmatax18
      @thekenmatax18 8 ปีที่แล้ว

      Doomz Like a 20pixel space for all pipes but placed at a random height?

    • @Doomeiner
      @Doomeiner 8 ปีที่แล้ว

      thekenmatax Yes, but with a limit up and down so it cannot touch the floor or the top

    • @thekenmatax18
      @thekenmatax18 8 ปีที่แล้ว

      Doomz It's actually quite a good idea, specially the limit thing. And yeah it shouldn't be too hard to program something like 8 lines of code or something.

    • @NKay08
      @NKay08 8 ปีที่แล้ว +1

      That. Or start with a big value and continually make the space smaller up to a minimum size, so the difficulty increases.
      I don't know the framework, but probably Pipe doesn't know framecount etc., but adding a parameter to the constructor which determines its size would work.

    • @vaggelisaggelidis170
      @vaggelisaggelidis170 8 ปีที่แล้ว

      Doomz and also something to measure the distance from one gap to another... for example if the 1st gap is at the highest point and the one next is at the lowest it won't actually be passable... there should be something to prevent that.. but I don't know Java so I don't know if it's possible

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

    Man you are really awesome you helped me so much throughout my career, I really can't thank you enough :D

  • @binley2
    @binley2 8 ปีที่แล้ว +50

    Extremely talented. Do you think about the implementations before you start recording the video or do you come up with the code this quickly on the fly?

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +30

      +Binley it depends. I do both. For this one I just made it up. Some I've done before but maybe not in a long time.

    • @soniavecchini9658
      @soniavecchini9658 8 ปีที่แล้ว +9

      Daniel Shiffman that's talent and a lot of experience

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

      Andrew, that's how you actually get better at anything

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

      Well.. what about philosophy?

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

    for people who want to set the size of the gap in each pipe use this code:
    constructor(){
    this.box = 150
    this.top = random(height - 100)
    this.bottom = (height - this.top) - this.box ;
    this.x = width;
    this.w = 20;
    this.speed = 3
    ;
    }
    show(){
    fill(255);
    rect(this.x, 0, this.w, this.top)
    rect(this.x, height-this.bottom, this.w, this.bottom)
    }
    you can adjust the size of the gap by change this.box 😊

  • @folkertbleichrodt5622
    @folkertbleichrodt5622 8 ปีที่แล้ว +118

    Your hair is floating on top of your head 😁

    • @igorbat15
      @igorbat15 8 ปีที่แล้ว +1

      Hahah, was just about to say that:D

    • @someone-cs3lk
      @someone-cs3lk 8 ปีที่แล้ว +4

      Glitch in the matrix.

    • @farzanoeksi67
      @farzanoeksi67 8 ปีที่แล้ว

      Hahah, was just about to say that too:D

    • @OneDerscoreOneder
      @OneDerscoreOneder 8 ปีที่แล้ว

      xD yeh

    • @Nardicality
      @Nardicality 8 ปีที่แล้ว +2

      His hand to.

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

    This is pretty helpful! I'm learning JS from a Code Dojo book at the moment and this video helped brig some context to the way of thinking in terms of functions. I'm getting a better grasp at the concept now :3 ❤

  • @eotikurac
    @eotikurac 8 ปีที่แล้ว +4

    i'm liking this much more than the genetic algorithm stuff.

  • @honeycube3404
    @honeycube3404 8 ปีที่แล้ว

    It's so mesmerizing watching you type in codes

  • @manuelbonet
    @manuelbonet 8 ปีที่แล้ว +13

    8:18 Ouch! Did the ball hurt you too muh?

  • @Pankecho1495
    @Pankecho1495 8 ปีที่แล้ว

    I kinda finished in Processing with score and a specific space between the up pipe and down pipe, this is so amazing, thanks dude!

  • @rest0ck
    @rest0ck 8 ปีที่แล้ว +143

    I keep watching your videos and don't even program :s

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

      haha fire

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

      rest0ck I

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

      I programming in C++, and I'm watching his videos hahaha :)))

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

      Just shows you may have some deep-rooted interest/desire to code :) get on it!

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

      hahahahahaha don't mames

  • @yeetomeister6323
    @yeetomeister6323 8 ปีที่แล้ว +1

    I don't do coding by i love this videos! Please continue doing coding challenges! Keep up the awesome work!!!

  • @Thermacon
    @Thermacon 8 ปีที่แล้ว +550

    So you get paid, to code, dress funny, and talk randomly. I want your job.

    • @soniavecchini9658
      @soniavecchini9658 8 ปีที่แล้ว +38

      Penguindon that's called "doing what you love with love... And most importantly get paid for doing that" 😂

    • @seersam
      @seersam 8 ปีที่แล้ว +5

      BlackSky Tech or "succeeding like a monster in life"

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

      Penguindon i think he is also a teacher but i am not very sure

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

      Penguindon become a teacher :p

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

      Wait until you hear what Pewdiepie does. Play video games and does whatever he wants. And gets paid millions!

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

    I am not a usual subscriber and I won't admire you the way people use to. I really like the rainbow colors i just wanna say your channel have all the flavours and colors just the ways in the rainbow.

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

    Hey Dan, could you make a playlist with your coding challenge videos? I really enjoy watching them but as it is, it's kinda inconvenient to watch them in order

    • @vaggelisaggelidis170
      @vaggelisaggelidis170 8 ปีที่แล้ว

      Ryan Kupka there is one

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

      can't you just make your own with his videos?

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

    I remember like 4 years ago that I made Flappy bird on scratch, it took me many hours and I was super proud. And I've just seen someone do that in just 20 min.

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

    I'd like to see him wear a full sleeved green shirt, along with a green cap in one of his videos
    that would be funny

  • @damienr3086
    @damienr3086 ปีที่แล้ว

    New Sub. I like how you make the projects almost barebones so we have to work on the code and make it look better. It forces us new guys to look things up and learn as we do. Keep those vids comin my brotha aka @The Coding Train.

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

    Can you start coding tutorials as in like the programming techniques etc

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

    Dude you are excellent at coding, new SUB!

  • @slim48789
    @slim48789 8 ปีที่แล้ว +50

    Hehe the green in his head-band went with the screen

    • @charleswilliams7824
      @charleswilliams7824 8 ปีที่แล้ว

      SlimJim487 it is that way because the screen behind him is a green screen

    • @elijahbuscho7715
      @elijahbuscho7715 8 ปีที่แล้ว

      wow!

    • @slim48789
      @slim48789 8 ปีที่แล้ว

      Cj Williams Yeah i know i just thought it was funny looking

    • @seersam
      @seersam 8 ปีที่แล้ว

      SlimJim487 OMGGG. CANNOT BE UNSEEN 😂😂. Jesus, now i have to watch the rest of the video looking at that

  • @Wavy-Gravy
    @Wavy-Gravy 7 ปีที่แล้ว

    This kind of felt like an interactive lesson I was agreeing with you, telling you what you can do.
    I feel as if your channel is going to help me learn.]
    A big thanks and I subscribed!

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

    my improved version: saikatbasak.in/public/games/CrappyBird/

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

    the green stripe in your headband is registering for the green-screen setup and it looks like the top of your head is detached hahaha :) great videos man

  • @themike97_58
    @themike97_58 8 ปีที่แล้ว +5

    these are fun to watch, but processing is a really high level ide and one day i wish you would show us how to use an ide like netbeans or eclipse to build up to a workflow like that in processing.

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

    You are the CR7 of programming ☺️☺️

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

    It took me about a month to code a slightly worse version, though I did it all in assembly!

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

    I love your videos, you are always encouraging me to learn more about coding.❤️

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

    impressed!

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

    Your explanations are very clear. Love it!

  • @swedishroast7536
    @swedishroast7536 8 ปีที่แล้ว +4

    I'm starting to think i'm autistic, i keep watching these yet i never code myself.. its just so stimulating to watch.

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

    I enjoy seeing how people make games using a pure javascript, it shows creativity.

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

      Kerim Grozny is this javascript?

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

    which
    {
    do
    }
    you{
    prefer
    }
    ?

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

      First one

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

      Definitely the second one

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

      Second one

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

      First one to read, second one while coding :d

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

      Second

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

    you my friend are a genius - very good , quick thinking and creative mindset - keep up the good work

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

    Hey Dan, how can we convert our processing applets to apk files for uploading to google play store

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว

      Take a look at Processing android: android.processing.org/

    • @kocaksaid
      @kocaksaid 8 ปีที่แล้ว

      okay, thanks a lot. It also look amazing!

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

    this dude is now of ma favorite programmers out there he really knows his stuff

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

    what language do i need to learn to make games like these?
    is it just javascript?

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

      Yup! You can start here: th-cam.com/users/shiffmanplaylists?shelf_id=14&view=50&sort=dd

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

      Daniel Shiffman link doesn't work

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

      ShelStone works on pc

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

      ?????

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

      well it is a framework, so you will want to learn p5 functions and variables

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

    A good way of doing the flight system is to have gravity always acting on the birds velocity and have a flap reset the velocity to the upward force you want.
    So for example if you flap, the upward force will instantly be set to lets say -10 (moving to the top of the screen) and gravity will constantly be adding to that number once per frame.
    This is kind of what it looks like:
    Flap (velocity is now -10)
    velocity = velocity + gravity (-10 + 0.7) (velocity = -9.3) Bird is still moving up
    next frame:
    velocity = velocity + gravity (-9.3 + 0.7) (velocity = -8.6) Bird is still moving up
    next frame:
    velocity = velocity + gravity (-8.6 + 0.7) (velocity = -7.9) Bird is still moving up
    Skip a few frames (to where velocity = -.2)
    next frame:
    velocity = velocity + gravity (-0.2 + 0.7) (velocity = +.5) Bird now starts to move down
    As the frames pass the bird will start to go down faster and faster until there is once again a flap.
    At that point the velocity is once again reset to -10 and the bird starts to move up until gravity can change the velocity to a positive number again.

  • @voakie2097
    @voakie2097 8 ปีที่แล้ว +4

    this dooot, this dooot

  • @jacksonsingleton
    @jacksonsingleton 8 ปีที่แล้ว

    I had so much trouble with OOP before I saw your vids, keep it up

  • @miko007
    @miko007 8 ปีที่แล้ว +10

    tried it myself, its far away from perfect, but it works and makes fun to play.
    games.mike-ochmann.de/flappy-bird/

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

      this is perfect lol

    • @0xf172
      @0xf172 6 ปีที่แล้ว

      Gravity DEAD !! fix it

  • @socramismarcos
    @socramismarcos 8 ปีที่แล้ว +1

    I love this channel so much. You make it so interesting and entertaining

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

    Do tetris

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

    Your videos make me happy.

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

    6:49, every time I push the space button, it goes back to the beginning, why?

  • @thierryvt
    @thierryvt 8 ปีที่แล้ว

    just a thought but the reason the lift thing was working so wonky was because it kept adding velocity.
    Would've made more sense to do:
    this.velocity = this.lift
    This would do three things:
    1. automatically limit your lift speed
    2. when the bird is going down at some massive speed (because it dropped from y=0 or something) you only need to press once to make it go up in stead of having to slow it down with multiple presses.
    3. make the "air resistance" variable redundant since the max speed the bird can now attain is however much it can gain when dropping from y=0 to y=height which is way easier to tune

  • @Multiple-Sclerosis
    @Multiple-Sclerosis 8 ปีที่แล้ว +5

    please make a follow up

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +1

      +Singed Main I did! Search for clappy bird.

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

    I've never saw someone enjoying coding like this guy!

  • @cool-as-cucumber
    @cool-as-cucumber 7 ปีที่แล้ว +3

    I always feel he is on drugs in all of these videos.. I like him.

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

      Ginger tea is an amazing thing.

  • @kamoroso94
    @kamoroso94 8 ปีที่แล้ว

    Hey don't worry about the haters who tell you to write something this way or that. The way you did it is more readable in my opinion and therefore easier to understand.

  • @zyroisepic5425
    @zyroisepic5425 5 ปีที่แล้ว +8

    This.subscribe=true

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

    You explain well

  • @911gpd
    @911gpd 8 ปีที่แล้ว +19

    "this." is cancer

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

      you like the C++ style?
      Object::attribute

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

      why?

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

      ehmm, this isn't really how C++ works, but yeah I see your point.

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

      Gus TroisMille when using headers

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

      My point is, you access an attribute of on object by doing "myObject.myAttribute", or "myAttribute", or "myObject.getMyAttribute".
      the A::B is for declaring the class functions, and... sometimes attributes. Eh, I guess you're right ;)

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

    Your videos are always a pleasure to watch

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

    OMG dude! I don't want to alarm you! But you have a hole in your head!

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

    Best channel for beginners