Added animations

Added new assets for the player
Added lookups for assets
Initial sound testing
Re-enabled temp world drawing
This commit is contained in:
2025-10-06 00:52:16 +01:00
parent 3eb8683ce3
commit c721839dfa
30 changed files with 210 additions and 20 deletions

View File

@@ -29,6 +29,20 @@ Str8 Str8_WrapZ(U8 *data) {
return result;
}
#define FNV_OFFSET_BIAS ((U64) 0xCBF29CE484222325)
#define FNV_PRIME ((U64) 0x100000001B3)
U64 Str8_Hash(Str8 v) {
U64 result = FNV_OFFSET_BIAS;
for (S64 it = 0; it < v.count; ++it) {
result ^= v.data[it];
result *= FNV_PRIME;
}
return result;
}
Str8 Str8_Copy(M_Arena *arena, Str8 s) {
Str8 result;
result.count = s.count;