Skip to content

Commit 3d3d662

Browse files
committed
二月湖水清,家家春鸟鸣
一些绘图参数改由基础尺寸计算得出
1 parent 5d93f72 commit 3d3d662

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Application.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int Application::run()
5050
nullptr);
5151

5252
//引擎初始化之后才能创建纹理
53-
engine->createAssistTexture("scene", 640, 360);
53+
engine->createAssistTexture("scene", 1280, 720);
5454

5555
config();
5656

src/MainScene.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ void MainScene::draw()
107107
//新的画地面方法
108108
if (TextureManager::getInstance()->getTextureGroup("mmap-earth")->getTextureCount() > 0)
109109
{
110-
const int earth_size = 17280;
110+
const int earth_size = TILE_W * 480 * 2;
111111
auto pe = getPositionOnRender(0, 0, man_x_, man_y_);
112112
int earth_x = pe.x - earth_size / 2;
113-
int earth_y = pe.y - 17;
113+
int earth_y = pe.y - TILE_H * 2 + 1;
114114
int view_w, view_h;
115115
Engine::getInstance()->getAssistTextureSize("scene", view_w, view_h);
116116
for (int i = 0; i < 8; i++)

0 commit comments

Comments
 (0)