mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-12 07:44:03 +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? {
|
override fun peek(addr: Long): Byte? {
|
||||||
return when (addr) {
|
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) {
|
override fun render(delta: Float, batch: SpriteBatch, xoff: Float, yoff: Float) {
|
||||||
/*batch.shader = null
|
super.render(delta, batch, xoff+74, yoff+102)
|
||||||
|
batch.shader = null
|
||||||
batch.inUse {
|
batch.inUse {
|
||||||
batch.color = Color.WHITE
|
batch.color = Color.WHITE
|
||||||
batch.draw(machine, xoff, yoff)
|
batch.draw(machine, xoff, yoff)
|
||||||
}
|
}
|
||||||
super.render(delta, batch, xoff+200, yoff-200)
|
}
|
||||||
*/
|
|
||||||
}*/
|
|
||||||
|
|
||||||
override fun dispose() {
|
override fun dispose() {
|
||||||
machine.dispose()
|
machine.dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user