public void renderPlayer(int xp, int yp, Sprite sprite) {
        for (int y = 0; y < 32; y++) {
            int ya = yp + y;
            for (int x = 0; x < 32; x++) {
                int xa = xp + x;
                int color = sprite.pixels[x + y * 32];
                if (color != 0xFFFF00FF) {
                    pixels[xa + ya * WIDTH] = color;
                }
            }
        }
    }