Skip to main content
Removed the extra space added by the person who edited my post.
Source Link

For those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pix elatedpixelated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

Then all your usage of sprites, etc. from there on out stay nice and pixelated.

For those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pix elated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

Then all your usage of sprites, etc. from there on out stay nice and pixelated.

For those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pixelated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

Then all your usage of sprites, etc. from there on out stay nice and pixelated.

deleted 44 characters in body
Source Link
Vaughan Hilts
  • 5.5k
  • 1
  • 34
  • 58

Thank you for this post!! ForFor those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pixelatedpix elated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

And thenThen all your usage of sprites, etc. from there on out stay nice and pixellatedpixelated. No blurring!

Thank you for this post!! For those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pixelated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

And then all your usage of sprites, etc. from there on out stay nice and pixellated. No blurring!

For those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pix elated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

Then all your usage of sprites, etc. from there on out stay nice and pixelated.

Source Link

Thank you for this post!! For those like me, who are simply making a retro-style game where they want EVERYTHING scaled to be pixelated, the simple quick answer is start your code with:

from pyglet.gl import * glEnable(GL_TEXTURE_2D) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) 

And then all your usage of sprites, etc. from there on out stay nice and pixellated. No blurring!