Hi, i’m newbie to p5.js, and I just want to reproduce this simple code : https://www.youtube.com/watch?v=17WoOqgXsRM
I’ve set up my p5 environment on Atom editor with local server to see my results on browser.
So I have my main class sketch.js and an outer class Star and I want to instantiate Star object in my main class but I got unexpected identifier error for ‘Star’ in my console. I thought by adding
<script src="Star.js"></script> in index.html would solve the problem but it didn’t.
I need to import this class but I don’t how. Thanks for the help in advance !