When working with games which are using pixel art , usually the game needs to keep the look of the pixel images sharp / none blurred .. now when we working with pixel art the images are small and they are scaled to be bigger , and while they become bigger OpenGL Smears the look on the image .
it can be fixed with small OpenGL command .
1. Here is example of small pixel art animation i made BEFORE the fix see how it looks:
i have 2 framed animation converted to *.plist and then to sprite frames in the code .
The 2 frame animation png file :
Not much to say it looks like Sh**t. see how blurry it is .
To fix it
2. The source code which contains the Fix Lines: 5-6:
As we can see the function setTexParameters let us set custom parameters to our Sprite Texture which contains the animation frames and the way it should render
This is how it looks like after the FIX :
Much much better .