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:
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