diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-18 23:27:45 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-18 23:27:45 -0300 |
commit | 34e9853606049734956c9b79265e96ab0cb4f79e (patch) | |
tree | a103939a0d8ddd528da484bb3d311e17cc4ad332 /src/hardware_data | |
parent | 84e94cf9bf3ba364b1268d3040942c8458d823cc (diff) |
Update graphics modes
Diffstat (limited to 'src/hardware_data')
-rw-r--r-- | src/hardware_data/graphics/ppu_lr35902-cgb.lua | 68 | ||||
-rw-r--r-- | src/hardware_data/graphics/ppu_lr35902-dmg.lua | 38 | ||||
-rw-r--r-- | src/hardware_data/graphics/ppu_lr35902-sgb.lua | 43 | ||||
-rw-r--r-- | src/hardware_data/graphics/ppu_rp2c0x+mmcx.lua | 148 | ||||
-rw-r--r-- | src/hardware_data/graphics/ppu_rp2c0x.lua | 7 |
5 files changed, 227 insertions, 77 deletions
diff --git a/src/hardware_data/graphics/ppu_lr35902-cgb.lua b/src/hardware_data/graphics/ppu_lr35902-cgb.lua index 6ca179e..5e9e346 100644 --- a/src/hardware_data/graphics/ppu_lr35902-cgb.lua +++ b/src/hardware_data/graphics/ppu_lr35902-cgb.lua @@ -1,28 +1,19 @@ return { screen = { - ntsc = { - width = 160, - height = 144, - fps = 29.97, - origin = { - x = 0, - y = -8, - }, - }, - pal = { - width = 160, - height = 144, - fps = 25, - origin = { - x = 0, - y = 0, + { + width = 160, + height = 144, + refresh = 59.73, + origin = { + x = 0, + y = 0, }, }, }, colours = { total = '15bpp', - limit = 49, - background = true, + limit = 56, + background = false, transparent = 'colourKey', }, meshes = false, @@ -102,51 +93,56 @@ return { tiles = { layers = { { - total = 399, - limit = 384, + total = { + x = 32, + y = 32, + 1024, + }, + onScreen = 399, + limit = false, unique = true, independent = false, palettes = { specify = true, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, }, mirror = true, diff --git a/src/hardware_data/graphics/ppu_lr35902-dmg.lua b/src/hardware_data/graphics/ppu_lr35902-dmg.lua index c07da7e..80c16ae 100644 --- a/src/hardware_data/graphics/ppu_lr35902-dmg.lua +++ b/src/hardware_data/graphics/ppu_lr35902-dmg.lua @@ -1,28 +1,19 @@ return { screen = { - ntsc = { - width = 160, - height = 144, - fps = 29.97, - origin = { - x = 0, - y = -8, - }, - }, - pal = { - width = 160, - height = 144, - fps = 25, - origin = { - x = 0, - y = 0, + { + width = 160, + height = 144, + refresh = 59.73, + origin = { + x = 0, + y = 0, }, }, }, colours = { total = 4, limit = false, - background = true, + background = false, transparent = 'colourKey', }, meshes = false, @@ -72,16 +63,21 @@ return { tiles = { layers = { { - total = 399, - limit = 192, + total = { + x = 32, + y = 32, + 1024, + }, + onScreen = 399, + limit = false, unique = true, independent = false, palettes = { specify = true, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, }, mirror = true, diff --git a/src/hardware_data/graphics/ppu_lr35902-sgb.lua b/src/hardware_data/graphics/ppu_lr35902-sgb.lua index 3ebb904..420655f 100644 --- a/src/hardware_data/graphics/ppu_lr35902-sgb.lua +++ b/src/hardware_data/graphics/ppu_lr35902-sgb.lua @@ -1,28 +1,28 @@ return { screen = { - ntsc = { - width = 160, - height = 144, - fps = 29.97, - origin = { - x = 0, - y = -8, + { + width = 160, + height = 144, + refresh = 61.17, + origin = { + x = 0, + y = 0, }, }, - pal = { - width = 160, - height = 144, - fps = 25, - origin = { - x = 0, - y = 0, + { + width = 160, + height = 144, + refresh = 59.73, + origin = { + x = 0, + y = 0, }, }, }, colours = { total = '15bpp', limit = 10, - background = true, + background = false, transparent = 'colourKey', }, meshes = false, @@ -72,16 +72,21 @@ return { tiles = { layers = { { - total = 399, - limit = 192, + total = { + x = 32, + y = 32, + 1024, + }, + onScreen = 399, + limit = false, unique = true, independent = false, palettes = { specify = true, { total = 4, - limit = 3, - keys = 1, + limit = false, + keys = false, }, }, mirror = true, diff --git a/src/hardware_data/graphics/ppu_rp2c0x+mmcx.lua b/src/hardware_data/graphics/ppu_rp2c0x+mmcx.lua new file mode 100644 index 0000000..6908943 --- /dev/null +++ b/src/hardware_data/graphics/ppu_rp2c0x+mmcx.lua @@ -0,0 +1,148 @@ +return { + screen = { + ntsc = { + width = 256, + height = 224, + refresh = 60.0988, + origin = { + x = 0, + y = -8, + }, + }, + pal = { + width = 256, + height = 240, + refresh = 50.0070, + origin = { + x = 0, + y = 0, + }, + }, + ntsc-vs = { + width = 256, + height = 224, + refresh = 60.0985, + origin = { + x = 0, + y = -8, + }, + }, + pxps = '72Ki', + txps = 320, + plps = false, + }, + colours = { + total = 64, + limit = 25, + background = true, + transparent = 'colourKey', + }, + meshes = false, + shaders = { + api = false, + version = false, + fragment = false, + vectex = false, + geometry = false, + tessellation = false, + }, + physic = false, + sprites = { + onScreen = 64, + onLine = 8, + palettes = { + specify = true, + { + total = 4, + limit = 3, + keys = 1, + }, + { + total = 4, + limit = 3, + keys = 1, + }, + { + total = 4, + limit = 3, + keys = 1, + }, + { + total = 4, + limit = 3, + keys = 1, + }, + }, + transform = { + move = true, + rotate = false, + scale = 'flip', + shear = false, + affine = false, + }, + sizes = { + { + width = 8, + height = 8, + }, + { + width = 8, + height = 16, + }, + }, + }, + tiles = { + layers = { + { + total = { + x = 32, + y = 30, + 960, + }, + onScreen = 272, + limit = 512, + unique = true, + independent = false, + palettes = { + specify = true, + { + total = 4, + limit = 3, + keys = 1, + }, + { + total = 4, + limit = 3, + keys = 1, + }, + { + total = 4, + limit = 3, + keys = 1, + }, + { + total = 4, + limit = 3, + keys = 1, + }, + }, + mirror = true, + transform = { + individual = true, + move = true, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + sizes = { + { + width = 16, + height = 16, + }, + }, + map = false, + }, + }, + }, +} diff --git a/src/hardware_data/graphics/ppu_rp2c0x.lua b/src/hardware_data/graphics/ppu_rp2c0x.lua index a2c1c5f..c034056 100644 --- a/src/hardware_data/graphics/ppu_rp2c0x.lua +++ b/src/hardware_data/graphics/ppu_rp2c0x.lua @@ -94,7 +94,12 @@ return { tiles = { layers = { { - total = 272, + total = { + x = 32, + y = 30, + 960, + }, + onScreen = 272, limit = 256, unique = true, independent = false, |