mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Updated the playdate glyph textures and increased their cycle speed a little bit
This commit is contained in:
11
TODO.txt
11
TODO.txt
@@ -20,7 +20,6 @@ Audio system
|
||||
Randomize pitch a little?
|
||||
|
||||
Playdate version
|
||||
Regenerate texture
|
||||
At this point, pay someone to make the sound effect or something
|
||||
Audio toggle in system menu
|
||||
Launcher card
|
||||
@@ -46,6 +45,16 @@ Resurrections
|
||||
|
||||
WebGPU
|
||||
Why is it brighter than the regl version?
|
||||
Create a project that tests them side-by-side
|
||||
That's right, two canvases, one regl and one webgpu
|
||||
program them both to do the same basic ops in a floating point texture
|
||||
display that texture
|
||||
Retrieve the texture from the GPU and spit it out
|
||||
Possible causes of difference
|
||||
Color space
|
||||
Floating point math
|
||||
Texture interpolation
|
||||
Blur implementation
|
||||
Try https://github.com/brendan-duncan/wgsl_reflect
|
||||
Get rid of end pass once it's possible to copy a bgra8unorm to a canvas texture
|
||||
Switch to rgba32float somehow?
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -30,7 +30,7 @@ static int numColumns;
|
||||
static int numRows;
|
||||
static int numCells;
|
||||
|
||||
static const int numStandardGlyphs = 133;
|
||||
static const int numStandardGlyphs = 135;
|
||||
static const int numPDGlyphs = 10;
|
||||
static const int numTotalGlyphs = numStandardGlyphs + numPDGlyphs;
|
||||
static const int numFades = 32;
|
||||
@@ -141,7 +141,7 @@ static int update(void* ud)
|
||||
if (speed < minSpeed) {
|
||||
speed = minSpeed;
|
||||
}
|
||||
delta = sys->getElapsedTime() * speed + sys->getCrankChange() * 2 / 360;
|
||||
delta = sys->getElapsedTime() * speed + sys->getCrankChange() * 5 / 360;
|
||||
}
|
||||
sys->resetElapsedTime();
|
||||
time += delta;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -17,7 +17,7 @@ local numColumns <const> = floor(screenWidth / glyphWidth)
|
||||
local numRows <const> = floor(screenHeight / glyphWidth)
|
||||
local numCells <const> = numColumns * numRows
|
||||
|
||||
local numStandardGlyphs <const> = 133
|
||||
local numStandardGlyphs <const> = 135
|
||||
local numPDGlyphs <const> = 10
|
||||
local numTotalGlyphs <const> = numStandardGlyphs + numPDGlyphs
|
||||
local numFades <const> = 32
|
||||
@@ -115,7 +115,7 @@ function playdate.update()
|
||||
mustDraw = true
|
||||
end
|
||||
|
||||
cell.glyphCycle = cell.glyphCycle + delta * 2
|
||||
cell.glyphCycle = cell.glyphCycle + delta * 5
|
||||
if cell.glyphCycle > 1 then
|
||||
cell.glyphCycle = cell.glyphCycle % 1
|
||||
local lastGlyphIndex = cell.glyphIndex
|
||||
|
||||
Reference in New Issue
Block a user