Updated the playdate glyph textures and increased their cycle speed a little bit

This commit is contained in:
Rezmason
2022-09-09 22:57:57 -07:00
parent 9a4c2558e7
commit f9ac81817f
5 changed files with 14 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

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

View File

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