-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By now, I have added all tests except these five: Shadow sprite, Stopwatch, Scroll test (Hill zone and Vertical), and the PCM feature of Sound test. If I fit them in 31K (6.2K each), I fit the whole suite in 64K. Otherwise I have to go compressing stuff. But it looks like I can release what I have so far to early access.
- Loading branch information
Showing
5 changed files
with
181 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
0.01 (2018-06-xx) | ||
* initial release, with everything but Shadow sprite, Stopwatch, | ||
Manual lag, Hill zone scroll, Vertical scroll, and PCM audio test | ||
0.01 (2018-06-19) | ||
* initial release, with all tests except Shadow sprite, Stopwatch, | ||
Hill zone scroll, Vertical scroll, and PCM in audio test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "global.h" | ||
|
||
// This uses the same linear congruential generator as cc65's | ||
// random function, but with different tempering. | ||
|
||
static unsigned int seed = 1; | ||
|
||
void lcg_srand(unsigned int in_seed) { | ||
seed = in_seed; | ||
} | ||
|
||
int lcg_rand(void) { | ||
seed = (seed * 0x01010101) + 0x31415927; | ||
return (seed ^ (seed >> 16)) & 0xFFFF; | ||
} |