Compare commits
No commits in common. "00b71cd0ae670dc4c5f2f258fe61f3e6622ca178" and "f63b445e52636f0e18bd9ea5e80387da79aaf070" have entirely different histories.
00b71cd0ae
...
f63b445e52
@ -12,7 +12,7 @@ My entry for the 2024 WeightGaming Gain Jam. Action game where you collect stuff
|
||||
- SDL_ttf
|
||||
- GLEW
|
||||
|
||||
You'll also need the game resources in the same directory as the executable; get that on my site.
|
||||
You'll also need the game [resources]((/files/games/frillrun/frillrun-resources-1.0.7z) in the same directory as the executable.
|
||||
|
||||
### Linux
|
||||
|
||||
|
@ -24,8 +24,6 @@ void jsw_seed ( unsigned long s )
|
||||
* ( x[i - 1] ^ ( x[i - 1] >> 30 ) ) + i );
|
||||
x[i] &= 0xffffffffUL;
|
||||
}
|
||||
|
||||
next = 0;
|
||||
}
|
||||
|
||||
/* Mersenne Twister */
|
||||
@ -72,4 +70,4 @@ unsigned jsw_time_seed()
|
||||
seed = seed * ( UCHAR_MAX + 2U ) + p[i];
|
||||
|
||||
return seed;
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@ random_seed_set(u64 seed)
|
||||
void
|
||||
random_seed_time_set(void)
|
||||
{
|
||||
random_seed_set(jsw_time_seed());
|
||||
jsw_time_seed();
|
||||
}
|
||||
|
||||
f32
|
||||
|
@ -92,7 +92,7 @@ game_init(Game* self)
|
||||
|
||||
memset(self, '\0', sizeof(Game));
|
||||
|
||||
random_seed_set(0);
|
||||
random_seed_time_set();
|
||||
|
||||
resource_shader_read(&self->resources);
|
||||
|
||||
|
@ -227,8 +227,6 @@ level_init(Level* self, ECS* ecs, LevelSettings settings, u32 levelValue)
|
||||
level_pause_init(self);
|
||||
level_unpause(self);
|
||||
|
||||
random_seed_set(0);
|
||||
|
||||
self->settings = settings;
|
||||
self->medal = LEVEL_MEDAL_NONE;
|
||||
self->nextMedal = LEVEL_MEDAL_BRONZE;
|
||||
|
@ -396,7 +396,7 @@ static const LevelData LEVEL_DATA_DEFAULT[LEVEL_COUNT] =
|
||||
.time = -1
|
||||
},
|
||||
{
|
||||
.status = LEVEL_STATUS_LOCKED,
|
||||
.status = LEVEL_STATUS_UNLOCKED,
|
||||
.score = -1,
|
||||
.time = -1
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user