lcd display with ui texture shell WIP

This commit is contained in:
minjaesong
2021-04-04 11:08:40 +09:00
parent e48e7525b6
commit ea4b04eee1
2 changed files with 5 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -10,7 +10,7 @@ class CharacterLCDdisplay(vm: VM) : GraphicsAdapter(vm, AdapterConfig(
)
) {
private val machine = Texture("./assets/8025_textonly.png")
private val machine = Texture("./assets/4016_portable_full.png")
override fun peek(addr: Long): Byte? {
return when (addr) {
@@ -26,15 +26,14 @@ class CharacterLCDdisplay(vm: VM) : GraphicsAdapter(vm, AdapterConfig(
}
}
/*override fun render(delta: Float, batch: SpriteBatch, xoff: Float, yoff: Float) {
/*batch.shader = null
override fun render(delta: Float, batch: SpriteBatch, xoff: Float, yoff: Float) {
super.render(delta, batch, xoff+74, yoff+102)
batch.shader = null
batch.inUse {
batch.color = Color.WHITE
batch.draw(machine, xoff, yoff)
}
super.render(delta, batch, xoff+200, yoff-200)
*/
}*/
}
override fun dispose() {
machine.dispose()