How to trigger a p5.js canvas?

I’m trying to make a chrome extension that let’s you play snake on top of your window.


image
I’m trying to make it so that the game starts when the user clicks new game.
Right now it starts when the tab loads.
Any help would be appreciated
link to github repo

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.