61
General / Re: Using multiple views for level and entities
« on: February 01, 2018, 05:52:02 pm »
Hello,
I think it should be more like this:
levelView = level/map and all objects (player + enemies, items)
"UIView" = GUI, HUD, text infromations etc.
Sprite scaling is problematic in many ways - zooming, screen resolution, DPI etc.
- if you have retro style game, you can set setSmooth(0) for textures and it's really simple and effective solution
- If you have detailed graphics like e.g. Angry Birds, game graphics must be in higher resolution (PC) or in various resolutions (which is common for mobile phones because there are problems with DPI)
I think it should be more like this:
levelView = level/map and all objects (player + enemies, items)
"UIView" = GUI, HUD, text infromations etc.
Sprite scaling is problematic in many ways - zooming, screen resolution, DPI etc.
- if you have retro style game, you can set setSmooth(0) for textures and it's really simple and effective solution
- If you have detailed graphics like e.g. Angry Birds, game graphics must be in higher resolution (PC) or in various resolutions (which is common for mobile phones because there are problems with DPI)