Why does everything look tiny?

Anything libgdx related goes here!

Why does everything look tiny?

Postby BenMcLean » Tue Nov 29, 2016 5:21 pm

I'm completely stumped as to why these two code samples seem to be producing vastly different effects.

Things in my bad roguelike demo appear as their intended size.

Things in my test appear tiny!

The test should fill the screen with big green and blue squares. Instead, I only see tiny green and blue squares in the lower left hand corner. Anyone know why this might be happening? What am I doing differently?
BenMcLean
 
Posts: 23
Joined: Mon Oct 07, 2013 2:57 pm

Re: Why does everything look tiny?

Postby evilentity » Tue Nov 29, 2016 6:23 pm

You are not calling resize().
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4867
Joined: Wed Aug 24, 2011 11:37 am

Re: Why does everything look tiny?

Postby BenMcLean » Tue Nov 29, 2016 6:45 pm

evilentity wrote:You are not calling resize().
That fixed it.

Thanks so much. Oh man, it seems so obvious now, like how could I be so stupid?? I knew it had to be something simple like that. But I guess when you are too close to things, you just can't see them sometimes and need another pair of eyes for a fresh perspective. I really appreciate the help!
BenMcLean
 
Posts: 23
Joined: Mon Oct 07, 2013 2:57 pm


Return to Libgdx

Who is online

Users browsing this forum: No registered users and 1 guest