Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: #548

Open
root9464 opened this issue Oct 16, 2024 · 0 comments
Open

Bug: #548

root9464 opened this issue Oct 16, 2024 · 0 comments
Labels
v7 Issues related to Pixi React v7

Comments

@root9464
Copy link

Current Behavior

I use "@pixi/react": "^7.1.0" and "pixi.js": "^7.2.4". The problem is the pixelation of the image inside sprite, I take an example from the official documentation, but my image breaks for some reason and slightly spoils the quality.
Please tell me what could be the problem?

Photo:
Image
Image

Expected Behavior

I would like to get help or an explanation of why this is happening with the image, maybe I'm doing something wrong

Steps to Reproduce

import Ton from '../../assets/ton.png';


<Stage width={50} height={50}>
  <Sprite
    image={Ton}
    x={32}
    y={32}
  />
</Stage>

Environment

package.json

{
  "name": "game",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "@pixi/react": "^7.1.0",
    "@types/node": "^22.2.0",
    "pixi.js": "^7.2.4",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "uuid": "^9.0.0"
  },
  "devDependencies": {
    "@types/react": "^18.0.28",
    "@types/react-dom": "^18.0.11",
    "@types/uuid": "^9.0.2",
    "@vitejs/plugin-react": "^3.1.0",
    "typescript": "^4.9.3",
    "vite": "^4.2.0"
  }
}

Possible Solution

No response

Additional Information

No response

@trezy trezy added the v7 Issues related to Pixi React v7 label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v7 Issues related to Pixi React v7
Projects
None yet
Development

No branches or pull requests

2 participants