The Coding Train thank you very much. your tutorials are fantastic. I am beginner in JavaScript and if you can make a video to show where to begin and which tutorials I must watch first to understand well your code challenges because I feel lost in your channel and I don't know where to begin again thank you very much :)
I am an exchange student in New York from Norway, and will be here until end of May. I hope to visit you just to say "Hi". I really enjoy your videos and I am proud of all the progress you have achieved!
you actually made me make another project similar to this one, in processing, i was inspired from the first video in my project there are 2 types of creatures , green (who can eat only green food) and red (can eat smaller creatures and red food),really want to see what your project will look like when finished
Thank you for your commitment to the Processing Foundation. Your support is essential to the future of our software, initiatives, and advocacy. I think this line is ment for you Dan, not for me
So I noticed that you have a function inside another function. Wouldn't it be better to use `=>` rather than an inner function, since `this` might point to the inner function. Correct me if I'm wrong someone
I've trying to download p5.js but I can't. I have been trying for days and it just isn't working. I have tried everything. I'm also on PC. It would be so much help if you could make a video on how to download p5.js on PC! Thanks. Keep up the great work!
Look at this codepen example: codepen.io/p5js/pen/gAury The html file should be called index.html. Inside index.html's body tag, you will need to include sketch.js (
// Add this inside your draw function, before you draw anything else. // Let me know if you have any issues... Good luck! translate(width/2, height/2);
I recommend python3. You will never run out of possibilities. If you're more attracted to web developpement, html/css/javascript are the base languages you need.
This is just an arbitrary decision I made. Each frame a vehicle loses a little bit of health so if it never eats any food at all, it will evtentually die. Eating poison simply speeds up the process.
DNA could be made using binary numbers, that way one can simply generate an arbitrary number which tells about the object behaviour, for example: this.dna = 156; // 10011100 // first four bytes represent a number which is attraction to food // another four bytes represent a number which is attraction to poison this.attractionToFood = ((this.dna >> 4) & 0x0F) / 100; // pushes bits to the right 4 bits, then picks 4 last bits (0x0F = 16, 16 is 1111 in binary, 1001 & 1111 = 1001, it takes 10011100, pushes bits until it's 00001001 and then ands whole thing with 00001111) this.attractionToPoison = (this.dna & 0x0F) / 100; // no need to push, just take last 4 bits, computer understands the number and now you have percentages, all you had to do was generate one arbitrary number and understand trivial binary operators, in this case it takes 10011100 & 00001111 => 1100, ignoring bits at the front (this is what bitmasking is) It's not necessary but personally it's more DNA-like to me, just that the DNA is of a machine, not a real organism :)
I have a question about the Atom text editor, and its about how you get out of the brackets so fast, i found some code online but it is not like in Sublime Text, when you are in brackets and you press like tab to get out and code on
I'll never get tired of your videos! This series is super interesting :) Thank you!
Glad to hear, thank you!
The Coding Train thank you very much. your tutorials are fantastic. I am beginner in JavaScript and if you can make a video to show where to begin and which tutorials I must watch first to understand well your code challenges because I feel lost in your channel and I don't know where to begin again thank you very much :)
@4:40 Yes, always go for separation of concerns. Keep functions lean with distinct functionality
I've binge watched all of your videos. Thank you for the great content!
wow, thanks for watching!
that is fun, 17min in, i love how smart some of them turn out , they'll nudge in and in between careful like a cat and get all the green ones lol
I am an exchange student in New York from Norway, and will be here until end of May. I hope to visit you just to say "Hi". I really enjoy your videos and I am proud of all the progress you have achieved!
16:40 going down by a negative number is the same as going up by a positive one.
The Circuit that is true
I thought it'd have been impossible to have the satisfaction of hearing you saying a bad word, but finally you did ahahah 2:30
This channel should be called the Dopamine Train because I'm literally always happier after watching it.
Carl Jones I thought it was called the Dopamine train because you have to take Adderall to ride.
21:07 Every pet I've ever had.
Griffon Thomas HAHAHAHAHAHA
ur a wonderful person to be around such energy and dedication to teaching
0:04 "That's what my life has become" adding a little bit of drama ))
you actually made me make another project similar to this one, in processing, i was inspired from the first video
in my project there are 2 types of creatures , green (who can eat only green food) and red (can eat smaller creatures and red food),really want to see what your project will look like when finished
Your videos are amazing. You should make a Rubix cube solver series.
Thank you for your commitment to the Processing Foundation. Your support is essential to the future of our software, initiatives, and advocacy.
I think this line is ment for you Dan, not for me
Hey! @ 2:51 the car is rodof!
So I noticed that you have a function inside another function. Wouldn't it be better to use `=>` rather than an inner function, since `this` might point to the inner function. Correct me if I'm wrong someone
I've trying to download p5.js but I can't. I have been trying for days and it just isn't working. I have tried everything. I'm also on PC. It would be so much help if you could make a video on how to download p5.js on PC! Thanks. Keep up the great work!
Look at this codepen example: codepen.io/p5js/pen/gAury
The html file should be called index.html.
Inside index.html's body tag, you will need to include sketch.js (
Soooo when is the P vs NP coding challenge coming?
19:35 best part hahahaha
Sir how will I create a canvas with origin is at the centre of the canvas not at top left corner
// Add this inside your draw function, before you draw anything else.
// Let me know if you have any issues... Good luck!
translate(width/2, height/2);
this is gertting crazzy..haha but I love it
can you suggest me which programming language should i learn first... i am very interested in programming....
I think python, java or javascript are the easiest programming languages for beginners.
I recommend python3. You will never run out of possibilities. If you're more attracted to web developpement, html/css/javascript are the base languages you need.
HTML
Did I miss something ? Why is the vehicle losing health without eating a poison ?
This is just an arbitrary decision I made. Each frame a vehicle loses a little bit of health so if it never eats any food at all, it will evtentually die. Eating poison simply speeds up the process.
Oh, it actually makes sense xD Thanks for the answer !
dan,how can i remove any vector from vector array in proccesing?
I suggest you use ArrayList with PVectors not simple arrays
You can do
ArrayList myVectorList = new ArrayList();
myVectorList.remove(index);
ok thx :) :)
in which software you perform code??
is there any use of grapics??
PsyNeur do you by chance know his UI and symtax themes?
fdggg asdg no sorry. it looks like atom dark but I could be wrong
20:30, He finally cursed :D (at least I think so)
22:05 *hype intensifies*
Replicate/Create A Piano Roll of FL Studio using C++ or JS
10:50 spilling water
DNA could be made using binary numbers, that way one can simply generate an arbitrary number which tells about the object behaviour, for example:
this.dna = 156; // 10011100
// first four bytes represent a number which is attraction to food
// another four bytes represent a number which is attraction to poison
this.attractionToFood = ((this.dna >> 4) & 0x0F) / 100; // pushes bits to the right 4 bits, then picks 4 last bits (0x0F = 16, 16 is 1111 in binary, 1001 & 1111 = 1001, it takes 10011100, pushes bits until it's 00001001 and then ands whole thing with 00001111)
this.attractionToPoison = (this.dna & 0x0F) / 100; // no need to push, just take last 4 bits, computer understands the number and now you have percentages, all you had to do was generate one arbitrary number and understand trivial binary operators, in this case it takes 10011100 & 00001111 => 1100, ignoring bits at the front (this is what bitmasking is)
It's not necessary but personally it's more DNA-like to me, just that the DNA is of a machine, not a real organism :)
Finally! :D
U r amazing
This part is less likes because ITS really hard to chain each functions together and i split two days to follow and understand
Nice haircut
code a rubiks cube timer.
Thats pretty easy actually. He made a tutorial on a javascript timer, just make it count from 0 upwards and start & stop when spacebar is pressed
I like how the likes are 619 and i want to leave it that way :(
you should make Minecraft in a simple coding language like qb64 or batch I have a simple video on my channel if you want to watch it
2nd
I have a question about the Atom text editor, and its about how you get out of the brackets so fast, i found some code online but it is not like in Sublime Text, when you are in brackets and you press like tab to get out and code on