Some progress
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user