I was so waiting for an always extending rectangle, because I knew you wouldn't notice before testing :D
@MySisterIsASlytherin
6 жыл бұрын
"A frog is a rectangle" -Daniel Shiffman, 2017
@MaffeyZilog
2 жыл бұрын
"The frog is a square!" ~ Daniel Shiffman, 2017 (2 minutes later)
@jimlthor
2 жыл бұрын
@@MaffeyZilog All squares are rectangles ;)
@tommulvey4752
7 жыл бұрын
It's amazing you got this to 23 minutes from that livestream
@DeathAtYourDoorStep
6 жыл бұрын
I love your videos! :) Ty for making them
@junayED.
3 жыл бұрын
I love that 😍
@papinkelman7695
7 жыл бұрын
the best part is that this. (see what I did there?) that this doen't just show how it is done, it also shows the thought process on why it is done in that way... makes sence?
@mauriciodumontrocha4110
3 жыл бұрын
I have a problem, i put the same code, the rectangle only extends and doesn't move
@sadhlife
7 жыл бұрын
Use switch and foreach for once. i really wanna learn foreach. Also when are you making a video on == vs ===?
@thelethalclips
7 жыл бұрын
The difference between == and === is really easy to understand and straight forward. == just checks if the values that are being compared are the same. if ("2" == 2) console.log('equal') // Will output "equal" to cosole === checks if the values that are being compared are the same and their data type is the same, so if we were to run the same code but instead of using == we used === it wouldn't log "equal" to the console because both 2's have different data types, one is an integer and the other is a string.
@sadhlife
7 жыл бұрын
Oh nice. Is that the only thing? No other clever uses?
@KerryMeXx
3 жыл бұрын
I have started creating my own Frogger game differently, but got stuck on the collision so was looking at this for ideas, I have "Entity" instead of "Rectangle" but when I try to do the intersection I get the error "Expected 'Entity', provided 'car'", any idea how to fix this? (car extends entity).
@nirajgaonkar7669
7 жыл бұрын
listening to daniel at 2x speed is still funny
@gharigaming
7 жыл бұрын
What are u programming on
@hadikurniawanar7036
6 жыл бұрын
Too bad i was watching the fifth frog to finish ☹️
@martlesmartlesmartles
7 жыл бұрын
im early!
@640kiboughttobeenough
7 жыл бұрын
When I was testing the code on my computer I found that program does not reacting on pressing the keys. Can You help me please?
@gollumei
7 жыл бұрын
"If I'm gonna have an opportunity to write 'this.', I'm gonna write 'this.'" - Daniel Shiffman, 2017
@tomburris8380
7 жыл бұрын
**then proceeds to not write the 'this.'**
@zorkan111
7 жыл бұрын
Except when it's actually needed. Then he omits it.
@dinoswarleafs
7 жыл бұрын
Hey Daniel! I'm curious, do you have any plans to show Processing with the Arduino or other external hardware at some point? I would love to watch it to see what fun projects you would do with it
@cameronadams4366
7 жыл бұрын
Dinoswarleaf yeeeeeeees that would be sick
@krystianzawadzki975
7 жыл бұрын
Dinoswarleaf That would be neat! Write on his github page :D
@serotoninbeggar9957
7 жыл бұрын
I've been watching you for a while now, and you are the friendliest most joyful educator I've ever seen and I'm so glad I found this channel
@TheCodingTrain
7 жыл бұрын
Thanks for the nice feedback!
@jonnylaw4569
5 жыл бұрын
I spend 6 hours trying to find some sort of code that can tell me if something is intersecting or not that I can remember fairly easily, give up, click a random video, and there it is, Ps-was looking for a simple one just because I'm new to using processing.
@asston712
6 жыл бұрын
This dot, this dot, this dot, this dot (music)
@QD77
7 жыл бұрын
Hey, why not add left, right, top and bottom as properties (functions? Or whatever they're called) like : float right(){return x+w}?
@JDubz1997
7 жыл бұрын
I've been neglecting your videos lately, I'm glad I'm back :)
@TheCodingTrain
7 жыл бұрын
Welcome back!
@JDubz1997
7 жыл бұрын
@TheTriggor
6 ай бұрын
The essence of game dev in 20 minutes. 80% boring backend, 20% flashy effects.
@mauriciodumontrocha4110
3 жыл бұрын
Do you know where is the link that includes the JavaScript code?
@codytremblay8986
5 жыл бұрын
The frog won't be a square when he gets ran over. lol
@Person-tq4xf
7 жыл бұрын
I love these coding challenge videos, they are unlike anything I've seen on youtube. I am having so much fun despite the fact that I dont understand what is going on...but i am enjoing it... IN CONCLUSION: I am going to learn how to code so i can do these fun challenges
@TheCodingTrain
7 жыл бұрын
Thanks for the nice feedback!
@hannahkimchi_
4 жыл бұрын
these videos give me life thank you so much for your time and effort into these videos:)
@willpoweredstudios8529
7 жыл бұрын
if you made the rectangle keep track of the center x and y as well as the width and height you could check for intersection like this: return ( Math.abs( rect1.x - rect2.x ) < (rect1.width + rect2.width)/2 && Math.abs( rect1.y - rect2.y ) < (rect1.height+ rect2.height)/2) ; and save yourself 2 lines. Not that two lines is a big deal, and I don't know how the performance stacks up but I think it's slightly nicer to look at.
@taewonkim8042
7 жыл бұрын
Hey Daniel I love your videos and I am a beginner in python...... so I don't get really get java...... so can u do a coding challenge in python? Thanks! I 'm your #1 fan!!!!
@ecceaufx3207
7 жыл бұрын
Hey man, I love your videos! They are really enjoyable and entertaining! I consumed your serieas about evolutionary/genetic algorithms and loved every part of it! Now that I am getting more into it I would love to see more from you about that topic! Do you think you will go back once and do some more in that series? Keep it up!
@TheCodingTrain
7 жыл бұрын
I'm planning on revisiting genetic algorithms to evolve neural networks sometime soon!
@patrickmolen523
4 жыл бұрын
Spent way too long figuring out why my character wasn't moving, just to realize that I created a function called keypressed() and didn't actually use keyPressed(). them damn capital letters
@Kim-bi6lb
7 жыл бұрын
What language is this in? I'm not familiar with coding yet, sorry for my lack of knowledge. And please don't tell me it's in english, thank you.
@daanfrankhuizen6798
7 жыл бұрын
Yo Daniel! What an awesome coding challenge! But I have one question: If I copy your code, Processing is saying the following "the function "move(int,int)" does not exist." What does this mean? He is saying it in the "frogger" folder". Thanks in Advance!
@LoriWolfcat
7 жыл бұрын
Try to do PokéMoN, or an app called Geomon. I would wanna know how you can code something like that.
@tesla5440
7 жыл бұрын
best coder i have ever seen. and also u have a sense of humor that gives ur channel some taste. i hope someday i will be someone like u.
@TheCodingTrain
7 жыл бұрын
Thanks for the nice feedback!
@DeepFriedOreoOffline
Жыл бұрын
This is an interesting way to think about collisions, I have only ever seen it the other way.
@iceburgs98
7 жыл бұрын
1:00 HE WAS ABOUT TO WIN
@arcticheroh
4 жыл бұрын
I felt this comment.
@nooby02031
7 жыл бұрын
Was I the only one that got upset when he paused Frogger right before he got the last frog :(
@Ikpoppy
6 жыл бұрын
99:59:59
@beenbeen130
7 жыл бұрын
Another great video, Coding Challenge Person KZitem Thing!
@caleb5688
7 жыл бұрын
I have a suggestion for a coding challenge. I am making a javascript game in p5, and I have got to the point to where I want to try using sprites. Is that something you could show us in p5?? Thx.
@TheCodingTrain
7 жыл бұрын
Great idea for a video yes!
@lookitsanivysaur.3172
7 жыл бұрын
how tf do you rename sketch_170701?
@laht93
4 жыл бұрын
You're the best, coding challenge person!
@kamilbolka
7 жыл бұрын
Great video, like always :D
@TheCodingTrain
7 жыл бұрын
Thank you!
@rameetmashta
7 жыл бұрын
Is there any video about magnetism?
@unbelievable3935
7 жыл бұрын
sir .. which ide are u used for programming please tell me sir...
@unbelievable3935
7 жыл бұрын
Vlado Drobný .....Thanxxx😘
@michielwils8401
7 жыл бұрын
Just love his intro's :D
@charbelsarkis3567
7 жыл бұрын
this is very informative i never knew what extends is and now i know
@TheCodingTrain
7 жыл бұрын
Glad to hear!
@up4life108
7 жыл бұрын
I'd really like to see how to use sprite sheets! Also this video REALLY helped me a lot.
@Zoub29
7 жыл бұрын
Not sure if this is exactly what you're looking for, but I've implemented sprites in p5.js : plnkr.co/edit/BZz6Dw
@TheCodingTrain
7 жыл бұрын
Great idea!
@chris9620
7 жыл бұрын
make an ocr engine once :)
@krystianzawadzki975
7 жыл бұрын
Finally! Was waiting for this :D
@TheCodingTrain
7 жыл бұрын
Hope you enjoy it!
@ichbinfett428
7 жыл бұрын
Which text editor are you using?
@iosgamer158
7 жыл бұрын
he is using Atom for P5.js. for processing he is using the processing editor: processing.org/download/
@Kim-bi6lb
7 жыл бұрын
40th!
@td2danimation667
7 жыл бұрын
What program is hi using
@Jimatron9000
6 жыл бұрын
processing
@imahater9978
7 жыл бұрын
Good Video!
@user-oj3gb8nh2q
7 жыл бұрын
inheritance is easy :P
@sadhlife
7 жыл бұрын
said nobody ever. inheritance and polymorphism is the toughest part of any language. anything tougher is just logic based, not syntax.
@user-oj3gb8nh2q
7 жыл бұрын
inheritance is easy in logic. When it come to syntax, it really has to do with what language you use. C++ syntax is actually pretty easy. Polymorphism is not that easy, i agree on that
@zackmercurys
7 жыл бұрын
why not? get a good textbook on your language and voila
@user-oj3gb8nh2q
7 жыл бұрын
c++. any suggestions?
@sadhlife
7 жыл бұрын
Sudo Hyde herbert schildt any day.
@marloncendron
7 жыл бұрын
Hi Daniel! I'm learning so much with your videos, but not only about programming, I'm brazilian, my english is bad(you must noticed that), and I'm learning english too. I love your videos, and I've seen much of then, you're a very good teacher, thanks!
@TheRabbit18
6 жыл бұрын
would this work on p5? Just replace the floats, with vars??
@TheCodingTrain
6 жыл бұрын
A bit more than this, but yes. I have a port on github: github.com/CodingTrain/Frogger
@25500
7 жыл бұрын
You could have explaine which ide you're using you know...
@TheCodingTrain
7 жыл бұрын
You can try some of these workflow videos: sublime text: kzitem.info/news/bejne/tnl-4KCLonZ1ZGU atom editor: kzitem.info/news/bejne/xWmFyXqbsZdqfKA brackets: kzitem.info/news/bejne/z6OQyJyDmqCHlo4 codepen: kzitem.info/news/bejne/lp2cu5uEqYVnno4
@ahmednasif5443
2 жыл бұрын
you talk too much
@IDisagreeWithYouAlot
7 жыл бұрын
Dude calmmmmmmm downnnnnn brother
@lonec1777
7 жыл бұрын
this is what I used for AABB rectangle collision boolean cRvR(Rect john, Rect jane){ if( john.x
Пікірлер: 102