Commit a3529a79 authored by Nicolas LIENART's avatar Nicolas LIENART

texture section

parent 159404de
......@@ -121,7 +121,7 @@ void gui_init()
gameData->bottomGUI = gui_addChildren(FOOTER, 0, 640, gameData->bodyGUI->dimensions->width, 160, gameData->bodyGUI, 0, FALSE);
gameData->infoGUI = gui_addChildren(INFO_SECTION, 0, 0, 600, gameData->bottomGUI->dimensions->height, gameData->bottomGUI, 0, FALSE);
gameData->infoGUI = gui_addChildren(INFO_SECTION, 0, 0, 600, gameData->bottomGUI->dimensions->height, gameData->bottomGUI, WOODPLANKS_TEX, TRUE);
gameData->buttonGUI = gui_addChildren(TOWER_BUTTONS_SECTION, 600, 0, 200, gameData->bottomGUI->dimensions->height, gameData->bottomGUI, 0, FALSE);
......
......@@ -79,7 +79,7 @@ if(!texture_surface) {
void sprite_init()
{
gameData->textures = calloc(40, sizeof(Texture*));
gameData->textures = calloc(41, sizeof(Texture*));
gameData->textures[SOLDER_TEX] = sprite_importTexture("images/sprite-entities/cafard.png", 2, 1);
gameData->textures[HUGE_SOLDER_TEX] = sprite_importTexture("images/sprite-entities/punaise.png", 2, 1);
......@@ -129,6 +129,8 @@ void sprite_init()
gameData->textures[MAINMENU_TEX] = sprite_importTexture("images/sprite-gui/MainMenu.jpg", 1, 1);
gameData->textures[LOSEMENU_TEX] = sprite_importTexture("images/sprite-gui/LoseMenu.jpg", 1, 1);
gameData->textures[WINMENU_TEX] = sprite_importTexture("images/sprite-gui/WinMenu.jpg", 1, 1);
gameData->textures[WOODPLANKS_TEX] = sprite_importTexture("images/sprite-gui/wood_planks.jpg", 1, 1);
}
SpriteTexture* sprite_loadSprite(TextureName texture_name, int loop_duration, Bool loop)
......
......@@ -217,7 +217,8 @@ typedef enum TextureName {
REINE_TEX,
MAINMENU_TEX,
LOSEMENU_TEX,
WINMENU_TEX
WINMENU_TEX,
WOODPLANKS_TEX
} TextureName;
typedef struct Texture {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment