Some progress

This commit is contained in:
2025-05-29 22:37:44 +02:00
parent f6e59e74c7
commit d01bdbe819
11 changed files with 331 additions and 65 deletions

View File

@@ -3,6 +3,7 @@
//
#include <SDL2/SDL.h>
#include "../util/util.h"
#ifndef FACTORYGAME_ITEM_H
#define FACTORYGAME_ITEM_H
@@ -10,8 +11,8 @@
typedef struct {
uint16_t type;
char name[20];
SDL_Texture * texture;
SDL_Texture * textureOnBelt;
SDL_Texture * texture[ORIENT_DIRECTION_COUNT];
SDL_Texture * textureOnBelt[ORIENT_DIRECTION_COUNT];
} Item;
#define ITEMREGISTRY_SIZE 512
@@ -31,6 +32,8 @@ void loadItems(SDL_Renderer *renderer);
void renderItem(ItemOnBelt item, SDL_Renderer *renderer, int lane);
extern uint16_t itemRegistryIndex;
extern uint8_t laneTarget;
extern float speed;