here the html code:
<script src = "spaceInvaders.js"></script>
here the java script code:
@ctrembla – This is a forum for Processing / p5.js.
Are you using Processing, and are you trying to write p5.js using the Processing PDE editor? You don’t say anything about how your spaceInvaders.js game was coded, and all I see in your code is JQuery.
Like @jeremydouglass said, I don’t see anywhere in your HTML where you include the P5.js library.
Shameless self-promotion: here is a guide on putting together a Hello World program in P5.js:
I solved it on another chat.
I’m glad you got it figured out. Can you also post the answer here so other people with similar problems in the future will be able to learn? Also if you posted to another site please link between crossposts.