Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

91
Visualizações
Is there a way to change to a different webpage/html page using a p5 function?

I've been coding a snake game, and I wanted to have a little html page for the instructions. But, I created p5 sprites for the buttons and I realized in the midst of the problem, I could not change the html page/web page through the p5 JavaScript editor. Is there a way I could change the webpage based on a p5 function?

So I tried creating an html element, but then I realized I couldn't make it go away if the game changed, e.g. the gameState changed from 0 to 1. When I tried it, it stayed there. Though I am still in the midst of finishing the game, is there a way I could call an html file to change using a p5 editor function? At this point, you might just call it changing to a different webpage. I don't know any methods to, and when I search online, I find nothing.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda