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
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
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.
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!
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!
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.
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).
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?
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.
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!
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.
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!!!!
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
You can try some of these workflow videos: sublime text: ruclips.net/video/UCHzlUiDD10/видео.html atom editor: ruclips.net/video/d3OcFexe9Ik/видео.html brackets: ruclips.net/video/nmZbhManVcY/видео.html codepen: ruclips.net/video/5gfUgNpS6kY/видео.html
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
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
Thanks for the nice feedback!
"A frog is a rectangle" -Daniel Shiffman, 2017
"The frog is a square!" ~ Daniel Shiffman, 2017 (2 minutes later)
@@MaffeyZilog All squares are rectangles ;)
I was so waiting for an always extending rectangle, because I knew you wouldn't notice before testing :D
I've been neglecting your videos lately, I'm glad I'm back :)
Welcome back!
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.
Thanks for the nice feedback!
"If I'm gonna have an opportunity to write 'this.', I'm gonna write 'this.'" - Daniel Shiffman, 2017
**then proceeds to not write the 'this.'**
Except when it's actually needed. Then he omits it.
It's amazing you got this to 23 minutes from that livestream
these videos give me life thank you so much for your time and effort into these videos:)
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
Thanks for the nice feedback!
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
Dinoswarleaf yeeeeeeees that would be sick
Dinoswarleaf That would be neat! Write on his github page :D
You're the best, coding challenge person!
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.
This is an interesting way to think about collisions, I have only ever seen it the other way.
This dot, this dot, this dot, this dot (music)
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!
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!
I'm planning on revisiting genetic algorithms to evolve neural networks sometime soon!
I love your videos! :) Ty for making them
Finally! Was waiting for this :D
Hope you enjoy it!
Another great video, Coding Challenge Person RUclips Thing!
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.
Hey, why not add left, right, top and bottom as properties (functions? Or whatever they're called) like :
float right(){return x+w}?
The essence of game dev in 20 minutes. 80% boring backend, 20% flashy effects.
Great video, like always :D
Thank you!
this is very informative i never knew what extends is and now i know
Glad to hear!
1:00 HE WAS ABOUT TO WIN
I felt this comment.
The frog won't be a square when he gets ran over. lol
I have a problem, i put the same code, the rectangle only extends and doesn't move
Just love his intro's :D
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).
Do you know where is the link that includes the JavaScript code?
Is there any video about magnetism?
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?
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.
Great idea for a video yes!
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!
sir .. which ide are u used for programming please tell me sir...
Vlado Drobný .....Thanxxx😘
I love that 😍
I'd really like to see how to use sprite sheets! Also this video REALLY helped me a lot.
Not sure if this is exactly what you're looking for, but I've implemented sprites in p5.js : plnkr.co/edit/BZz6Dw
Great idea!
What are u programming on
Use switch and foreach for once. i really wanna learn foreach.
Also when are you making a video on == vs ===?
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.
Oh nice. Is that the only thing? No other clever uses?
Which text editor are you using?
he is using Atom for P5.js. for processing he is using the processing editor: processing.org/download/
how tf do you rename sketch_170701?
What program is hi using
processing
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!!!!
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.
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
Try to do PokéMoN, or an app called Geomon. I would wanna know how you can code something like that.
Good Video!
would this work on p5? Just replace the floats, with vars??
A bit more than this, but yes. I have a port on github: github.com/CodingTrain/Frogger
Was I the only one that got upset when he paused Frogger right before he got the last frog :(
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?
99:59:59
listening to daniel at 2x speed is still funny
You could have explaine which ide you're using you know...
You can try some of these workflow videos:
sublime text: ruclips.net/video/UCHzlUiDD10/видео.html
atom editor: ruclips.net/video/d3OcFexe9Ik/видео.html
brackets: ruclips.net/video/nmZbhManVcY/видео.html
codepen: ruclips.net/video/5gfUgNpS6kY/видео.html
make an ocr engine once :)
inheritance is easy :P
said nobody ever. inheritance and polymorphism is the toughest part of any language. anything tougher is just logic based, not syntax.
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
why not? get a good textbook on your language and voila
c++. any suggestions?
Sudo Hyde herbert schildt any day.
Too bad i was watching the fifth frog to finish ☹️
40th!
im early!
Dude calmmmmmmm downnnnnn brother
this is what I used for AABB rectangle collision
boolean cRvR(Rect john, Rect jane){
if(
john.x
> return true;
else
return false;
NO..NOO...NOOOOOOOOOOOOOOOOOOOOOOOOOOOO
wat
just return what is in the if statement, like this:
boolean cRvR(Rect john, Rect jane){
return (
john.x
There is no point i writing:
else
return false;
oh okies :)
you talk too much