Jump to content

Blurry pixel art in Panda


drhayes
 Share

Recommended Posts

Hey there. I'm making a pixel art game and and trying to see if it will work in Panda using WebGL. I can't get the pixels to not be blurry.

 

Here's an example of how the sprite looks right now: 

Screen%20Shot%202014-12-01%20at%2010.54.

 

 

Here's my config:

pandaConfig = {    name: 'MyPandaGame',    version: '0.0.0',    system: {        width: 320,        height: 240,        scaleToFit: true,        webGL: false    }};

Here's my main.js:

game.module(  'game.main').require(  'game.assets',  'game.objects').body(function() {  game.addAsset('player.png');  game.PIXI.scaleModes.DEFAULT = game.PIXI.scaleModes.NEAREST;  game.createScene('Main', {    init: function() {      var player = new game.SpriteSheet('player.png', 16, 16);      var anim = player.anim();      anim.animationSpeed = 0.2;      anim.play();      anim.position.set(100, 100);      anim.addTo(this.stage);    }  });});

Anyone have any ideas? No combination of anything I've read makes those zoomed-in pixels be less blurry. Is there a non-WebGL option that would make it less blurry as well?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...