[nostalgia/core/studio] Start tile sheet editor

This commit is contained in:
2019-11-26 23:23:12 -06:00
parent 69666a0b31
commit 8f21670439
13 changed files with 334 additions and 19 deletions
+36
View File
@@ -0,0 +1,36 @@
import QtQuick 2.0
Rectangle {
id: tile;
property int tileNumber: -1
width: parent.width
height: parent.height
x: parent.width / 2 - tile.width / 2
y: parent.height / 2 - tile.height / 2
color: '#000000'
Grid {
width: tile.width
height: tile.height
rows: 8
columns: 8
Repeater {
model: 64
Pixel {
pixelNumber: index
}
}
}
// place an outline Rectangle above the pixels
Rectangle {
width: parent.width
height: parent.height
// make fill transparent
color: '#00000000'
border.color: '#000000'
border.width: 2
}
}