Pixel Resolution

The place to ask questions about 3DStudio Max, Blender, Pro Motion, open source items, libraries, ect..
Post Reply
User avatar
TwoDMayhem
Posts: 15
Joined: Fri Apr 05, 2013 1:42 am

Pixel Resolution

Post by TwoDMayhem »

For you 2d gamers, what pixel resolution are you using? I'm considering two different ones (tiles @ 16x16, collisions @ 8x8):
  • • 320 x 240 (20x15)
    • 320 x 200 (20x12.5)
Interesting poll on the topic (forgive the link to another forum): https://love2d.org/forums/viewtopic.php?t=8873&p=54821
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: Pixel Resolution

Post by Jackolantern »

What platform are you referring to? PC gaming or something more mobile? :)
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Pixel Resolution

Post by hallsofvallhalla »

it depends on the canvas size. 8x8 is large array for a 400 x 400. 2500 indexes.

If you are doing a top down RPG then your view size might be 400 x 400 but your map size is going to be something like 2000x2000 which is an array of 62,000.

Not saying it cant be done just be careful about memory.
User avatar
TwoDMayhem
Posts: 15
Joined: Fri Apr 05, 2013 1:42 am

Re: Pixel Resolution

Post by TwoDMayhem »

Jackolantern wrote:What platform are you referring to? PC gaming or something more mobile? :)
It should be available through tablet and small for mobile using Impact (I'm assuming).
User avatar
TwoDMayhem
Posts: 15
Joined: Fri Apr 05, 2013 1:42 am

Re: Pixel Resolution

Post by TwoDMayhem »

hallsofvallhalla wrote:it depends on the canvas size. 8x8 is large array for a 400 x 400. 2500 indexes.

If you are doing a top down RPG then your view size might be 400 x 400 but your map size is going to be something like 2000x2000 which is an array of 62,000.

Not saying it cant be done just be careful about memory.
Would there be a design pattern that could help curtail the memory issue? For example, creating a plethora of smaller maps that link together via transitions to create a larger map area.
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Pixel Resolution

Post by hallsofvallhalla »

Using ajax would definitely shrink it or using Nodejs. Currently I have not run into too many problems with maps of that size. I think I have seen 20,0000x20,0000
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: Pixel Resolution

Post by Jackolantern »

Yeah, AJAX (or WebSockets if you need them super fast) is the way that "infinite loading" is handled. It is how Google Maps and similar sites are handled, where you can zoom right in on the street view and then keep scrolling across the entire country if you were so patient. A map of that size obviously cannot be represented on any client machine in the country, but they use some clever loading logic on the client to always try to keep fresh images up. Of course, you are able to scroll very fast on Google Maps, much faster than a character should be able to walk in an RPG, so you definitely can see the "seams" of the Google Maps whereas in a game, if done right you would not be able to.
The indelible lord of tl;dr
User avatar
TwoDMayhem
Posts: 15
Joined: Fri Apr 05, 2013 1:42 am

Re: Pixel Resolution

Post by TwoDMayhem »

Jackolantern wrote:Yeah, AJAX (or WebSockets if you need them super fast) is the way that "infinite loading" is handled. It is how Google Maps and similar sites are handled, where you can zoom right in on the street view and then keep scrolling across the entire country if you were so patient. A map of that size obviously cannot be represented on any client machine in the country, but they use some clever loading logic on the client to always try to keep fresh images up. Of course, you are able to scroll very fast on Google Maps, much faster than a character should be able to walk in an RPG, so you definitely can see the "seams" of the Google Maps whereas in a game, if done right you would not be able to.
Sounds like exactly what I would want to have. Is this something anyone has implemented before?
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: Pixel Resolution

Post by Jackolantern »

Not that I am aware of. Of course, due to the complexity of getting it just right (and "just right" is going to vary a lot game-to-game), you will likely want to try just pre-loading the whole map first, and see how it goes. You really have to have a huge map before you would start to slow down people's computers or have huge load times (refer to Hall's post above), and if you are hand-crafting each and every map, it would take a long, long time to create enough maps to require AJAX map loading. So there is a good chance you won't need incremental AJAX map loading, but if you did, it is an option. It will just take a lot of tinkering to ensure you aren't loading way more than you need (which would put unneeded stress on the server) or way too little (which would begin to show "seams", or tiles with a placeholder that have not downloaded yet).
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Pixel Resolution

Post by hallsofvallhalla »

I think one of my tutorials covers this. If not I guess I can throw something together soon.
Post Reply

Return to “Programs/Assets/Libs/Open Source/Ect...”