implement block types

This commit is contained in:
LabyStudio
2022-01-31 22:30:00 +01:00
parent 33998053c1
commit 02c36a79ba
14 changed files with 178 additions and 21 deletions
@@ -0,0 +1,10 @@
window.BlockLog = class extends Block {
constructor(id, textureSlotId) {
super(id, textureSlotId);
}
getTextureForFace(face) {
return this.textureSlotId + (face.isYAxis() ? 1 : 0);
}
}