mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
lcd display with ui texture shell WIP
This commit is contained in:
BIN
assets/4016_portable_full.png
Normal file
BIN
assets/4016_portable_full.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user