experiments

This commit is contained in:
2025-06-05 21:51:34 +02:00
parent a5b52b6b89
commit d4665c4e9b
4 changed files with 57 additions and 14 deletions

View File

@@ -113,11 +113,11 @@ void initPlayer(Player *plr) {
plr->rect.h = TILE_SIZE;
for (ItemType ui = 1; ui < tileTypeIndex; ui++) {
plr->inventory.slotCounts[ui] = 65535;
plr->inventory.slotCounts[ui] = 32;
}
for (ItemType ui = ITEMREGISTRY_SIZE / 2; ui < itemRegistryIndex; ui++) {
plr->inventory.slotCounts[ui] = 65535;
plr->inventory.slotCounts[ui] = 0;
}
hudTexture = SDL_CreateTexture(mainRenderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, screenRect.w,