人物移动地图延迟修复 普升
人物移动地图延迟修复当人物向左或向右移动时,相反方向的地图元素会有一条延迟
1、在PlayScn.pas单元里 procedure TPlayScene.DrawTileMap; 函数两处数字。
if not g_boDrawTileMap then
exit;
with Map.m_ClientRect do
begin
nY := -UNITY * 4;
for j := (Top - Map.m_nBlockTop - 5) to (Bottom - Map.m_nBlockTop + 3) do
begin //从地图顶部到下部
nX := AAX + 14 - (UNITX * 3);
for i := (Left - Map.m_nBlockLeft - 6) to (Right - Map.m_nBlockLeft + 3)
if not g_boDrawTileMap then
exit;
with Map.m_ClientRect do
begin
nY := -UNITY * 4;
for j := (Top - Map.m_nBlockTop - 5) to (Bottom - Map.m_nBlockTop + 3) do
begin //从地图顶部到下部
nX := AAX + 14 - (UNITX * 3);
for i := (Left - Map.m_nBlockLeft - 6) to (Right - Map.m_nBlockLeft + 16)
//地图中间层
with Map.m_ClientRect do
begin
nY := -UNITY;
for j := (Top - Map.m_nBlockTop - 1) to (Bottom - Map.m_nBlockTop + 1) do
begin
nX := AAX + 14 - UNITX;
for i := (Left - Map.m_nBlockLeft - 2) to (Right - Map.m_nBlockLeft + 16)
页:
[1]