Questions tagged [pixel-perfect]
71 questions
0
votes
2 answers
How to define supported screen resolutions for an android game in unity?
I have a pixel art game that looks good at the reference resolution 480x800 pixels (use of pixel perfect camera) and any resolution bigger than that it will look ok with some blurring (i don't know if it's a problem or that how it works while scaled…

Mr Zero
- 163
- 4
- 19
0
votes
1 answer
Java: Pixel-perfect drawing on JPanel
I'm using OpenJDK 11:
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
Trying to make an app drawing something in JPanel I noticed some annoying…

Michał B.
- 51
- 2
0
votes
1 answer
unity 2018 pixel perfect Camera , can i zoom in and out?
Two questions the first how to zoom in and zoom out ? and why i have that red line in some resolutions is it a bug or a problem (i tried reimporting the package and recreate the project but nothing new) ?

Mr Zero
- 163
- 4
- 19
0
votes
0 answers
SFML Pixel Perfect Collision limited to a view?
In this code I have one view (white, zoom 2) and the original window, also one sprite for a car and one sprite for a wall...
#include
#include "collision.hpp"
#define windowWidth 1000
#define windowHeight 600
int main()
{
…

Rogério Dec
- 801
- 8
- 31
0
votes
1 answer
How to prevent 1-2px changes in block offset on browser window resize
I have a problem doing pixel-perfect center icon inside colored block with round edges. Icon changes left-right offset on browser window resize.
Open for example Chrome or Safari with https://github.com/facebook/react
And try to resize width of…

Sorge Selo
- 1
- 1
0
votes
0 answers
Pygame: Segmentation fault when attempting pixel perfect collision and image modification
I keep getting segmentation faults or crashes when I move my sprite to the right side of the screen.
I am attempting to get my "sprite" to "switch" pixels with another image I have at the point of contact with the mask and then change back when it…

Amadeus42
- 1
- 1
0
votes
1 answer
Outlook email template 1
I try to create a template email for outlook, and I have a problem.
The table they use to create the email has a plus margin/padding of 1 px, as in the picture + does not recognize the…
user7895594
0
votes
1 answer
Trying to create a web page. Issue with centering text on nav bar
I am using pixel perfect to try to duplicate a web page for learning purposes. I am having a really hard time trying to create this. For starters, my text will not stay centered on the nav bar. I think it may be an issue with my header. I might have…

Molly Marie
- 11
- 2
0
votes
0 answers
Pixel-perfect collision on Allegro 5
I am building a 2d platformer game that might have a good hundred or so rotated sprites (characters, rockets, bullets, etc) that I want to let collide with a wallmask.
Currently using Allegro 5, which does not support 1bit bitmaps as would be…

Orpheon
- 181
- 2
- 10
0
votes
1 answer
Pygame pixel perfect collision code not working
I'm importing pixelperfect and using one of its functions called check_collision(object1, object2) here's the website I got it from http://www.pygame.org/wiki/FastPixelPerfect
when I use the function it always returns false, and I have no idea why.…

Mr Bengtgöran
- 3
- 1
0
votes
1 answer
canvas.drawText with pixel perfect text on a canvas
THIS IS NOT ABOUT AntiAlias, Please read the question before answering thank you.
ADDING BOUNTY TO--> android convert text width (in pixels) to percent of screen width/height
Quality info --> https://stackoverflow.com/a/1016941/1815624
I am…

CrandellWS
- 2,708
- 5
- 49
- 111
0
votes
1 answer
Clicking only non-transparent area of the image on html
I want my img be clickable for only its non-tansparent area because it blocks images that are behind.For example when I click north France it chooses Germany. How can this be possible?
I have something like this and all of the countries are an image…

Burak
- 319
- 5
- 16
0
votes
3 answers
How to create this responsive grid of different sized images with CSS & HTML, example below
I am trying to create a Pixel Perfect Responsive page with a grid of Differently sized photos. I was wondering what the best approach is?? Do I do this with floated list? Floated elements not in a list??
I really don't know. Below Are two…

eshepard
- 57
- 1
- 9
0
votes
2 answers
Label Text Alignment in fieldset with CSS
In my fieldset I have labels next (side) to my textboxes, but for some reason, they are towards the top and not middle. Here is my CSS for the fieldset:
fieldset {
clear: both;
font-size: 100%;
border-color: #000000;
border-width: 1px 0 0…

Saif Khan
- 18,402
- 29
- 102
- 147
0
votes
2 answers
Pixel Perfect Grid
i don't have much experience with twitter bootstrap, but with so many good reviews i decided to use it for a new project i'm working on.
I was wondering how can i get a pixel perfect grid with this new bootstrap that has 1170px width. how do you…

Thales Ribeiro
- 49
- 1
- 10