From 3a5f8cbaa0127f6524d5f8d764b3c5e842417b58 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Mon, 5 Dec 2016 21:41:22 -0300 Subject: Fix GPU scripts --- .../scripts/load/gpu/mali400.lua | 14 ++++- .../scripts/load/gpu/ppu_rp2c02.lua | 11 +++- .../scripts/load/gpu/s-ppux_5c7x-0x.lua | 67 +++++----------------- 3 files changed, 35 insertions(+), 57 deletions(-) diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/mali400.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/mali400.lua index 5570d82..a65449b 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/mali400.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/mali400.lua @@ -3,7 +3,7 @@ return { default = { width = 1920, height = 1080, - fps = 30 + fps = 30, origin = { x = 0, y = 0, @@ -12,14 +12,22 @@ return { big = { width = 3840, height = 2160, - fps = 30 + fps = 30, origin = { x = 0, y = 0, }, }, + colors = { + 32bpp, + transparent = alpha, + mode = { + zero = 16bpp, + one = 32bpp, + }, }, - api = 'opengl_es_2_0' + mesh = true, + api = 'opengl_es_2_0', shader = { true, fragment = true, diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/ppu_rp2c02.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/ppu_rp2c02.lua index d60214d..9e49cd2 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/ppu_rp2c02.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/ppu_rp2c02.lua @@ -3,7 +3,7 @@ return { default = { width = 256, height = 224, - fps = 29.97 + fps = 29.97, origin = { x = 0, y = -8, @@ -12,13 +12,20 @@ return { pal = { width = 256, height = 240, - fps = 25 + fps = 25, origin = { x = 0, y = 0, }, }, + colors = { + 6bpp, + transparent = colorKey, + mode = { + zero = 2bpp, + }, }, + mesh = false, api = false, shader = { false, diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/s-ppux_5c7x-0x.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/s-ppux_5c7x-0x.lua index 928ee80..306e988 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/s-ppux_5c7x-0x.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/load/gpu/s-ppux_5c7x-0x.lua @@ -3,7 +3,7 @@ return { default = { width = 256, height = 224, - fps = 29.97 + fps = 29.97, origin = { x = 0, y = 0, @@ -12,7 +12,7 @@ return { pal = { width = 256, height = 240, - fps = 25 + fps = 25, origin = { x = 0, y = 0, @@ -21,7 +21,7 @@ return { bigNTSC = { width = 512, height = 448, - fps = 29.97 + fps = 29.97, origin = { x = 0, y = 0, @@ -30,13 +30,24 @@ return { bigPAL = { width = 512, height = 480, - fps = 25 + fps = 25, origin = { x = 0, y = 0, }, }, }, + colors = { + 15bpp, + transparent = averaging, + mode = { + zero = 2bpp, + one = 3bpp, + two = 4bpp, + three = 8bpp, + }, + }, + mesh = true, api = false, shader = { false, @@ -60,72 +71,24 @@ return { width = 16, height = 16, }, - defaultW = { - width = 16, - height = 8, - }, - defaultH = { - width = 8, - height = 16, - }, big = { width = 32, height = 32, }, - bigW = { - width = 32, - height = 16, - }, - bigH = { - width = 16, - height = 32, - }, huge = { width = 64, height = 64, }, - hugeW = { - width = 64, - height = 32, - }, - hugeH = { - width = 32, - height = 64, - }, }, }, tile = { true, layers = 4, size = { - tiny = { - width = 8, - height = 8, - }, - small = { - width = 16, - height = 16, - }, - smallW = { - width = 16, - height = 8, - }, - smallH = { - width = 8, - height = 16, - }, default = { width = 32, height = 32, }, - defaultW = { - width = 32, - height = 16, - }, - defaultH = { - width = 16, - height = 32, - }, big = { width = 64, height = 64, -- cgit v1.2.3-54-g00ecf