From 729285961f209d04abc01f8f1b506cf5621652d4 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Tue, 10 Jan 2017 21:22:12 -0300 Subject: Update graphics modes --- src/hardware_data/graphics/ppu_rp2c02+mmc2.lua | 2 +- src/hardware_data/graphics/ppu_rp2c02+mmc3.lua | 4 +- src/hardware_data/graphics/ppu_rp2c02+mmc5.lua | 58 ++++++++++++++++++++++++-- src/hardware_data/graphics/ppu_rp2c02.lua | 5 +-- src/hardware_data/graphics/ppu_rp2c03+mmc2.lua | 2 +- src/hardware_data/graphics/ppu_rp2c03+mmc3.lua | 4 +- src/hardware_data/graphics/ppu_rp2c03+mmc5.lua | 58 ++++++++++++++++++++++++-- src/hardware_data/graphics/ppu_rp2c03.lua | 5 +-- src/hardware_data/graphics/ppu_rp2c07+mmc2.lua | 2 +- src/hardware_data/graphics/ppu_rp2c07+mmc3.lua | 4 +- src/hardware_data/graphics/ppu_rp2c07+mmc5.lua | 58 ++++++++++++++++++++++++-- src/hardware_data/graphics/ppu_rp2c07.lua | 5 +-- 12 files changed, 180 insertions(+), 27 deletions(-) diff --git a/src/hardware_data/graphics/ppu_rp2c02+mmc2.lua b/src/hardware_data/graphics/ppu_rp2c02+mmc2.lua index 8202e52..77a3bb5 100644 --- a/src/hardware_data/graphics/ppu_rp2c02+mmc2.lua +++ b/src/hardware_data/graphics/ppu_rp2c02+mmc2.lua @@ -107,7 +107,7 @@ return { -- Total of unique tiles on VRAM -- unique = 512, screenSections = { - main = { + main = { optional = false, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c02+mmc3.lua b/src/hardware_data/graphics/ppu_rp2c02+mmc3.lua index 9d0d5a6..689c170 100644 --- a/src/hardware_data/graphics/ppu_rp2c02+mmc3.lua +++ b/src/hardware_data/graphics/ppu_rp2c02+mmc3.lua @@ -107,7 +107,7 @@ return { -- Total of unique tiles on VRAM -- unique = 256, screenSections = { - main = { + main = { optional = false, moveSection = false, { @@ -133,7 +133,7 @@ return { }, }, }, - overlay = { + overlay0 = { optional = true, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c02+mmc5.lua b/src/hardware_data/graphics/ppu_rp2c02+mmc5.lua index 8f5e1d7..e33013a 100644 --- a/src/hardware_data/graphics/ppu_rp2c02+mmc5.lua +++ b/src/hardware_data/graphics/ppu_rp2c02+mmc5.lua @@ -101,7 +101,7 @@ return { -- Total of unique tiles on VRAM -- unique = 65536, screenSections = { - main = { + main = { optional = false, moveSection = false, { @@ -127,9 +127,61 @@ return { }, }, }, - overlay = { + overlay0 = { optional = true, - moveSection = false, + moveSection = true, + { + startSection = { + x = 'free', + y = 'free', + }, + endSection = { + x = 'free', + y = 'free', + }, + size = { + -- Tile size in pixels -- + width = 16, + height = 16, + }, + transform = { + move = false, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + overlay1 = { + optional = true, + moveSection = true, + { + startSection = { + x = 'free', + y = 'free', + }, + endSection = { + x = 'free', + y = 'free', + }, + size = { + -- Tile size in pixels -- + width = 16, + height = 16, + }, + transform = { + move = false, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + overlay2 = { + optional = true, + moveSection = true, { startSection = { x = 'free', diff --git a/src/hardware_data/graphics/ppu_rp2c02.lua b/src/hardware_data/graphics/ppu_rp2c02.lua index ea3c893..1b270f6 100644 --- a/src/hardware_data/graphics/ppu_rp2c02.lua +++ b/src/hardware_data/graphics/ppu_rp2c02.lua @@ -1,7 +1,6 @@ -- Information: -- -- PPU (Picture processing unit) -- --- RP2C02 without MMC -- --- (Memory management controller) -- +-- RP2C02 without mapper -- return { screen = { @@ -107,7 +106,7 @@ return { -- Total of unique tiles on VRAM -- unique = 256, screenSections = { - main = { + main = { optional = false, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c03+mmc2.lua b/src/hardware_data/graphics/ppu_rp2c03+mmc2.lua index 3c593ae..16437f7 100644 --- a/src/hardware_data/graphics/ppu_rp2c03+mmc2.lua +++ b/src/hardware_data/graphics/ppu_rp2c03+mmc2.lua @@ -107,7 +107,7 @@ return { -- Total of unique tiles on VRAM -- unique = 512, screenSections = { - main = { + main = { optional = false, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c03+mmc3.lua b/src/hardware_data/graphics/ppu_rp2c03+mmc3.lua index a1ac2a8..9c23ea5 100644 --- a/src/hardware_data/graphics/ppu_rp2c03+mmc3.lua +++ b/src/hardware_data/graphics/ppu_rp2c03+mmc3.lua @@ -107,7 +107,7 @@ return { -- Total of unique tiles on VRAM -- unique = 256, screenSections = { - main = { + main = { optional = false, moveSection = false, { @@ -133,7 +133,7 @@ return { }, }, }, - overlay = { + overlay0 = { optional = true, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c03+mmc5.lua b/src/hardware_data/graphics/ppu_rp2c03+mmc5.lua index bda312c..d648fde 100644 --- a/src/hardware_data/graphics/ppu_rp2c03+mmc5.lua +++ b/src/hardware_data/graphics/ppu_rp2c03+mmc5.lua @@ -101,7 +101,7 @@ return { -- Total of unique tiles on VRAM -- unique = 65536, screenSections = { - main = { + main = { optional = false, moveSection = false, { @@ -127,9 +127,61 @@ return { }, }, }, - overlay = { + overlay0 = { optional = true, - moveSection = false, + moveSection = true, + { + startSection = { + x = 'free', + y = 'free', + }, + endSection = { + x = 'free', + y = 'free', + }, + size = { + -- Tile size in pixels -- + width = 16, + height = 16, + }, + transform = { + move = false, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + overlay1 = { + optional = true, + moveSection = true, + { + startSection = { + x = 'free', + y = 'free', + }, + endSection = { + x = 'free', + y = 'free', + }, + size = { + -- Tile size in pixels -- + width = 16, + height = 16, + }, + transform = { + move = false, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + overlay2 = { + optional = true, + moveSection = true, { startSection = { x = 'free', diff --git a/src/hardware_data/graphics/ppu_rp2c03.lua b/src/hardware_data/graphics/ppu_rp2c03.lua index 1aaf272..7f6a08c 100644 --- a/src/hardware_data/graphics/ppu_rp2c03.lua +++ b/src/hardware_data/graphics/ppu_rp2c03.lua @@ -1,7 +1,6 @@ -- Information: -- -- PPU (Picture processing unit) -- --- RP2C03/RP2C04/RP2C05 without MMC -- --- (Memory management controller) -- +-- RP2C03/RP2C04/RP2C05 without mapper -- return { screen = { @@ -107,7 +106,7 @@ return { -- Total of unique tiles on VRAM -- unique = 256, screenSections = { - main = { + main = { optional = false, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c07+mmc2.lua b/src/hardware_data/graphics/ppu_rp2c07+mmc2.lua index ab72c0f..4c07bad 100644 --- a/src/hardware_data/graphics/ppu_rp2c07+mmc2.lua +++ b/src/hardware_data/graphics/ppu_rp2c07+mmc2.lua @@ -107,7 +107,7 @@ return { -- Total of unique tiles on VRAM -- unique = 512, screenSections = { - main = { + main = { optional = false, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c07+mmc3.lua b/src/hardware_data/graphics/ppu_rp2c07+mmc3.lua index 3b6b5ef..4f39f40 100644 --- a/src/hardware_data/graphics/ppu_rp2c07+mmc3.lua +++ b/src/hardware_data/graphics/ppu_rp2c07+mmc3.lua @@ -107,7 +107,7 @@ return { -- Total of unique tiles on VRAM -- unique = 256, screenSections = { - main = { + main = { optional = false, moveSection = false, { @@ -133,7 +133,7 @@ return { }, }, }, - overlay = { + overlay0 = { optional = true, moveSection = false, { diff --git a/src/hardware_data/graphics/ppu_rp2c07+mmc5.lua b/src/hardware_data/graphics/ppu_rp2c07+mmc5.lua index 04aab84..ce5a516 100644 --- a/src/hardware_data/graphics/ppu_rp2c07+mmc5.lua +++ b/src/hardware_data/graphics/ppu_rp2c07+mmc5.lua @@ -101,7 +101,7 @@ return { -- Total of unique tiles on VRAM -- unique = 65536, screenSections = { - main = { + main = { optional = false, moveSection = false, { @@ -127,9 +127,61 @@ return { }, }, }, - overlay = { + overlay0 = { optional = true, - moveSection = false, + moveSection = true, + { + startSection = { + x = 'free', + y = 'free', + }, + endSection = { + x = 'free', + y = 'free', + }, + size = { + -- Tile size in pixels -- + width = 16, + height = 16, + }, + transform = { + move = false, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + overlay1 = { + optional = true, + moveSection = true, + { + startSection = { + x = 'free', + y = 'free', + }, + endSection = { + x = 'free', + y = 'free', + }, + size = { + -- Tile size in pixels -- + width = 16, + height = 16, + }, + transform = { + move = false, + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + overlay2 = { + optional = true, + moveSection = true, { startSection = { x = 'free', diff --git a/src/hardware_data/graphics/ppu_rp2c07.lua b/src/hardware_data/graphics/ppu_rp2c07.lua index 4e0b6d3..b81cedc 100644 --- a/src/hardware_data/graphics/ppu_rp2c07.lua +++ b/src/hardware_data/graphics/ppu_rp2c07.lua @@ -1,7 +1,6 @@ -- Information: -- -- PPU (Picture processing unit) -- --- RP2C07 without MMC -- --- (Memory management controller) -- +-- RP2C07 without mapper -- return { screen = { @@ -107,7 +106,7 @@ return { -- Total of unique tiles on VRAM -- unique = 256, screenSections = { - main = { + main = { optional = false, moveSection = false, { -- cgit v1.2.3-54-g00ecf