Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit c0288dc

Browse files
committed
new map ready
1 parent ff2e8e8 commit c0288dc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎editor.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace tileworld {
6363
this.p.saveWorld();
6464
game.popScene();
6565
} else {
66-
this.setCursor(CursorType.Map);
66+
this.setCursor(CursorType.Menu);
6767
}
6868
});
6969
}
@@ -93,7 +93,7 @@ namespace tileworld {
9393
if (this.col() < 9)
9494
this.cursor.x += 16
9595
} else {
96-
if (this.paintCursor.x < paintSize*20)
96+
if (this.paintCursor.x < paintSize*19)
9797
this.paintCursor.x += paintSize;
9898
else
9999
this.offsetX += 1;
@@ -135,8 +135,8 @@ namespace tileworld {
135135
if (!this.aDown)
136136
return;
137137
if (this.cursorType == CursorType.Map) {
138-
let col = ((this.paintCursor.x - 4) / paintSize) | 0x0;
139-
let row = ((this.paintCursor.y - (editorY + 4)) / paintSize) | 0x0;
138+
let col = (this.paintCursor.x / paintSize) | 0x0;
139+
let row = ((this.paintCursor.y - editorY) / paintSize) | 0x0;
140140
this.world.setPixel(col, row, this.userSpriteIndex);
141141
this.update();
142142
return;

0 commit comments

Comments
 (0)