-- Information: -- -- Video Mode 4 (official) -- -- -- -- Vertical tiles on VRAM, -- -- can be changed by compilation, -- -- but is not recomended. -- -- Default value is: -- -- VRAM_TILES_V=32 -- -- -- -- Numbers of video lines to render, -- -- can be changed by compilation, -- -- but is not recommended, changes the -- -- CPU cyles. -- -- Default value is: -- -- FRAME_LINES=SCREEN_TILES_V*TILE_HEIGHT -- -- -- -- First render line is used to adjust -- -- vertical centering if the value -- -- FRAME_LINES is changed. -- -- Can not be changed by compilation. -- -- Default value is: -- -- FIRST_RENDER_LINE=24 -- -- Sites: -- http://uzebox.org/wiki/index.php?title=Video_Modes -- https://github.com/Uzebox/uzebox -- https://raw.githubusercontent.com/Uzebox/uzebox/master/kernel/videoMode4/videoMode4.def.h -- https://raw.githubusercontent.com/Uzebox/uzebox/master/kernel/videoMode4/videomode4.s return { screen = { width = 288, height = 224, vsync = 60, origin = { x = 0, y = 0, }, -- Total of unique texels, pixels and vertices on VRAM -- pixels = '?', texels = '?', vertices = false, }, colours = { total = 256, limit = false, transparent = { sprite = false, tile = false, }, palettes = false, }, meshes = false, shaders = { api = false, version = false, fragment = false, vectex = false, geometry = false, tessellation = false, }, physic = false, sprites = false, tiles = { layers = { { -- Total tiles and pixels on VRAM -- onVRAM = { screenSections = { all = { Xtiles = 32, Ytiles = 32, tiles = 1024, pixels = 262144, }, }, tiles = 'screenSections', pixels = 'screenSections', }, -- Total tiles and pixels on screen -- onScreen = { screenSections = { -- On screen section with support scrolling X and/or Y, -- -- will be include one tile by axis -- all = { Xtiles = false, Ytiles = false, tiles = 198+18+11+1+72, pixels = 50688+4608, main = { Xtiles = 18+1, Ytiles = 11+1, tiles = 198+18+11+1, pixels = 50688, }, text = { Xtiles = 36, Ytiles = 2, tiles = 72, pixels = 4608, }, }, tiles = 'screenSections', pixels = 'screenSections', }, -- Total of unique tiles on VRAM -- unique = '?', screenSections = { mirror = false, main = { optional = false, moveSection = true, { startSection = { x = 'startVRAM', y = 'startVRAM', }, endSection = { x = 'endVRAM', y = 'endVRAM', }, size = { -- Tile size in pixels -- width = 16, height = 16, }, transform = { move = true, rotate = false, scale = false, shear = false, affine = false, }, }, }, text = { optional = false, moveSection = false, { startSection = { x = 'startVRAM', y = -272, }, endSection = { x = 'endScreen', y = 'endScreen', }, size = { -- Tile size in pixels -- width = 8, height = 8, }, transform = { move = false, rotate = false, scale = false, shear = false, affine = false, }, }, }, }, }, }, }, }