Starting item and battle stuff

This commit is contained in:
2026-07-08 10:05:21 -05:00
parent a73f55beb0
commit b693ea4102
41 changed files with 1727 additions and 20 deletions
+5
View File
@@ -59,6 +59,11 @@ errorret_t rpgInit(void) {
entityItemSet(itemEnt, ITEM_ID_POTION, 1);
entityPositionSet(itemEnt, (worldpos_t){ 12, 2, 0 });
// TEST: Give the player a starting assortment of items.
backpackAdd(ITEM_ID_POTION, 5);
backpackAdd(ITEM_ID_POTATO, 3);
backpackAdd(ITEM_ID_APPLE, 8);
// TEST: Create a test map area.
uint8_t areaIndex = mapAreaAdd(
(worldpos_t){ 11, 3, 0 },