feat: flower plant on player location

This commit is contained in:
beyer-rebecca
2025-04-12 21:59:25 +02:00
committed by huaqo
parent 79c6a058c7
commit 23f16988b3
4 changed files with 34 additions and 19 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ void UpdateGame(GameState *g, View *currentView, bool *running)
UpdateMouse(&g->mouse, &g->camera);
UpdateCamera2D(&g->camera, &g->player.physics.position, &g->mouse);
UpdateFloor(&g->floor, &g->camera);
UpdatePlayer(&g->player);
UpdatePlayer(&g->player, g->flowers);
UpdateArray(g->flowers, UpdateFlower);
// UpdateBee(&g->bee1, &g->flowers, &g->hive);
}
@@ -130,7 +130,7 @@ void RenderGame(GameState *g, const State *appState, Flags *flags)
{
RenderPostFX(&g->postFX[i], &g->target);
}
DrawText(TextFormat("%d", g->player.inventar.seedCount), 10, 10, 50, WHITE);
DrawText(TextFormat("Flower Seeds: %d", g->player.inventar.flowerSeedCount), 10, 10, 50, WHITE);
if (flags->showFPS)
{