TomLGD

Missing line of pixels on small canvas?

Recommended Posts

Hello,

I am trying to make a game with phaser 2.2.8.

The should look like an old school gameboy game.
So the canvas has the dimensions of 160x144 pixels.

The problem is a strange behaviour at the left and the top side of the screen.
I attached an example to clarify what i mean.

On the left pic the pilot wares glasses. You can see the connection between the 2 lenses.
On the right pic the sprite looks compressed by one pixel, the connection disappears.

Does someone knows why this happens? Or better how to solve this issue?

Thanks, Tom

gameboy_problem.jpg

Share this post


Link to post
Share on other sites

Okay guys!

Ich think I have some kind of solution!

 game = new Phaser.Game(WIDTH, HEIGHT, Phaser.CANVAS, 'gamediv', null, false, false);

I changed from Phaser.AUTO to Phaser.CANVAS! Thad made the stunt^^

So I hope I dont need webGL stuff for my project...

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.