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

233
Vistas
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
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