Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
La imagen está desalineada cuando la velocidad se acelera p5.js

cuando se ejecutan, las imágenes se desalinean lentamente con un espacio entre las dos imágenes.

 class Road{ constructor(image ,x, y, rWidth, rHeight, calcSpeed){ this.image = image; this.x = x; this.y = y; this.width = rWidth; this.height = rHeight; this.speed = calcSpeed; } static setupRoad() { let tempRoad1 = new Road(roadBack, 0, 0, sW, sH, mainSpeed); let tempRoad2 = new Road(roadBack, 0, 0 - sH, sW, sH, mainSpeed); roadImages.push(tempRoad1, tempRoad2); } display (){ image(this.image,this.x,this.y,this.width,this.height); } update (){ this.y += this.speed; this.speed = mainSpeed; if(this.y >= sH){ this.y = -this.height; } } } class Car { constructor(speed){ this.speed = speed //speed would be zero 0 } movement (){ if(keyIsDown(87)) { mainSpeed = this.speed; if(this.speed < goSpeed){ this.speed += .25; } } else { mainSpeed = stopSpeed; this.speed = 0; } }

Solo un punto en la dirección correcta sería legendario.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!