C'est le jeu des tubes de couleur dans les pubs la
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui.js 454B

1234567891011121314151617181920
  1. class UI {
  2. constructor(width, height){
  3. this.width = width;
  4. this.height = height;
  5. }
  6. drawWinView(){
  7. fill('red');
  8. textSize(50);
  9. let textX = lerp(this.width / 2 - 175, 20 * sin(frameCount/10), 0.2);
  10. let textY = lerp(this.height / 2, 20 * cos(frameCount/10), 0.2);
  11. let message = "👑 You Win! 👑"
  12. text(message, textX, textY);
  13. textX ++;
  14. textY ++;
  15. fill('yellow');
  16. text(message, textX, textY);
  17. }
  18. }