简体   繁体   English

Android中的像素游戏

[英]Pixel Game in Android

I am making a Game in Android using Android Studio. 我正在使用Android Studio在Android中制作游戏。 My Game is beign designed in Pixel Art. 我的游戏采用像素艺术设计。

The images that I put on the Game, in the app, are shown with Smooth, they are not pixelated as I have designed. 我在应用程序中放入游戏的图像以“平滑”显示,它们没有像我设计的那样像素化。

Is there a way to put the images and show them correctly? 有没有办法放置图像并正确显示它们? Here is an example of what happens. 这是发生情况的一个示例。 At left, how my App shows the images. 在左侧,我的应用程序如何显示图像。 At right, how do I need to be shown thw images. 在右侧,如何显示图像。

https://stuartspixelgames.files.wordpress.com/2015/10/comparison.png?w=700 https://stuartspixelgames.files.wordpress.com/2015/10/comparison.png?w=700

What is the supposed size of this image on screen? 屏幕上该图像的假定大小是多少? Perhaps your image file's dimensions are too big sometimes it becomes blur depending also on how you display it. 图像文件的尺寸可能太大,有时取决于您的显示方式而变得模糊。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM