Coding Challenge 1: Starfield Simulation

preview_player
Показать описание


References:

Related Coding Challenges:

Timestamps:
0:00 Welcome to a 10 minute coding challenge
0:59 Let's create a star class
2:10 Make an array of stars
3:17 Write the update() and show() functions
3:43 Make the stars move!
5:37 Translate to the middle of the canvas
6:17 Add more stars
7:40 Start to tweak size and speed of stars
9:02 Add trails to stars
10:31 Bonus two minutes!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#space #processing
Рекомендации по теме
Комментарии
Автор

This guy has to be the happiest developer alive. I write 5 lines of code and it feels like I've been solving math problems for 10 hours straight!

X
Автор

you didnt fail, you had a working star field in under 10 minutes but then you suffered from feature creep lol

TheWeepingCorpse
Автор

Genius....just pure genius. Make me your apprentice master Kenobi!

haleemulhassan
Автор

You are absolutely great at stress-coding. I loved watching you work with this challenge.

ockley
Автор

it should be
Star() {
x = random(-width/2, width/2);
y = random(-height/2, height/2);
}

so you really see all the stars, that are created.
in your code you're only seeing 1/4 of all stars. the rest of the stars is beyond the screen!

therob
Автор

I applaud at the end like I was watching some kind of an action movie.. DAMN.. 2 VIDEOS INTO YOUR CHANNEL AND I'M LOVIN IT!

ilustrado
Автор

12:11 I love it when Daniel opens these seemingly demonic portals, and he quickly appreciates them, and then is like "no time!" and moves on. Makes me laugh. Also inspires me to want to pursue creating my own trippy visuals

joshyjosh
Автор

Back in, I think, 2014, I heard about your book and decided to support it. I had no idea who you were. Now I've been watching your videos and I must say: thank you! You are an amazing teacher and human being. I'm so glad I've found this. Best wishes!

andrez
Автор

Seeing someone coding in Processing is never been this exciting, I loved it <3

f_u_n_e_r_a_l
Автор

I'm from Syria, we have no proper programming education, I've been watching your vids for a while now. got me so excited I started trying things around and It feels so great to see codes work!! I can't thank you enough, man. I needed this hobby.

a side question if you don't mind. what would you recommend for creating Java desktop apps. I've been playing arround with NW.js and electron and I'm wondering if p5 works well with them?

maherf
Автор

This is SO AWESOME!!! I can't thank you enough. You've really inspired me to learn programing with code arts (yes, arts) like this one, showing me this is what I need to do. I'm from Brazil and, unfortunetly, there's not much of programing incentive here yet. Keep doing this! I deeply believe you're changing a lot of people's life. Thank you so much!!

mrCetus
Автор

"now I could add a P vector"
Me: yeah, you could!
*Has no idea what a p vector is*

Tokyo_Pessi
Автор

Love the explanation in these videos, but i would like to see a "quick code" challenge, where u just have a goal and just code as fast as u can without explaing anything.

Embre_
Автор

I felt like I was watching an action movie! "oh no! he won't make it on time! D: *bomb explodes* "

nahueljo
Автор

I've watched 2 videos and I've already subscribed :D
But am I the only one who enjoys that you're talking so fast? :'D

HuslWusl
Автор

This is the first time a programming tutorial vid ever put me on the edge of my seat.

katty
Автор

Just want to add that x and y should be random (-width/2, width/2) and (-height/2, height/2), respectively, rather than increasing the number of stars as you did. Great tutorial as always!

joshuamarris
Автор

I'm 14 and your videos already defined what I am going to be in the future.

azul
Автор

I can do a hello world in 10 minutes :)


.
.
.
if im lucky

manueltakerumazuelosw.
Автор

he made starfield seven years before bethesda.

Nebulaoblivion