我有一个基于像素艺术的游戏的 32x32 精灵,但是当我放大精灵时,它变得非常模糊,我在网上阅读了有关内容,我相信解决方案位于SamplerState.
我已经查看了 MSDN 以及 StackOverflow 和 Gamedev,但发现对我这样的初学者没有任何用处。一些代码示例,但我不知道在哪里可以将它们应用到我的项目中。
我还没有提供我的任何代码,因为我确定它没有任何用处。我想要的只是有人解释如何甚至只是向我抛出一些更简单的代码。我不介意哪个,很可能我想解释一下,因为我将来会知道该怎么做。
好的,所以我有以下变量:
public static int cookieCount = 0;
public static int cursorCount = 0;
public static int granCount = 0;
public static int farmCount = 0;
public static int mineCount = 0;
public static int shipCount = 0;
public static int alcCount = 0;
public static int portalCount = 0;
public static int timeCount = 0;
public static int clickGain = 1;
public static int cursorGain = 1;
public static int granGain = 5;
public static int farmGain = 10;
public …Run Code Online (Sandbox Code Playgroud)