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

236
Views
net::ERR_FILE_NOT_FOUND, imageSrc, Your file couldn’t be accessed

I'm trying to load a picture and somehow it's throwing me an error, I've tried different ways but I can't fix it. Can anyone help me? Thank you for your answers.

class Sprite {
constructor({position, imageSrc, scale = 1, framesMax = 1}) {
    this.position = position
    this.width = 50
    this.height = 150
    this.image = new Image()
    this.image.src = imageSrc // here the inspector shows an error
    this.scale = scale
    this.framesMax = framesMax
    this.framesCurrent = 0
    this.framesElapsed = 0
    this.framesHold = 6
}`

const player = new Fighter({

position: { x:0, y:0 }, velocity: { x: 0, y: 0 }, offset: { x: 0, y: 0 }, imageSrc: './img/samuraiMack/Fall.png', framesMax: 8 })

about 4 years ago · Santiago Gelvez
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!