Why isn't the player displaying? Kaboomjs

Question:
The player is not displaying! It is on the map and I’m sure I set everything correctly. What am I missing?
Repl link:
https://replit.com/@ANDREWPERNA1/geometry-dash-elemantal#code/main.ts

const levelmap = addLevel([
    "@       ",
    "========"
  ], {
    tileWidth: 64,
    tileHeight: 64,
    tiles: {
      "=": () => [
        sprite("green_floor"),
        anchor("bot")
      ],
      "@": () => [
        sprite("player_default"),
        anchor("bot"),
        "player"
      ]
    }
  });

Repl is private, also that’s not your Repl?

2 Likes

it is private and that is also not your repl?

Try basic rendering and see if it works.

Comment out the scene("level", ...) block in your main.ts and add a simple sprite.

(Assuming that we are talking about this https://replit.com/@ANDREWPERNA1#code/main.ts)

If you can see the player sprite, the sprite is loading correctly and there might be some error in how the scene is set up.
If you can’t see the sprite there might be an error in path, or a typo, or anything like that related to your game setup.

3 Likes

Shouldn’t be.

No, it isn’t, I’m helping out with it.