Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

85
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda