Fixed the shop items.

This commit is contained in:
onpon4 2017-02-05 12:56:53 -05:00
parent 0effb37d4e
commit 2d2c8e9732
1 changed files with 18 additions and 18 deletions

View File

@ -266,7 +266,7 @@ static void drawShop()
for (int i = 0 ; i < icons ; i++)
{
gfx_blit(gfx_sprites[shopItems[i].image], shopItems[i].x + 10 - shop_x,
shopItems[i].y - 178, gfx_shopSprites[SHOP_S_CATALOG]);
shopItems[i].y - shop_y - 48, gfx_shopSprites[SHOP_S_CATALOG]);
}
sprintf(description, "Shield : %d", player.maxShield);
@ -460,55 +460,55 @@ void shop_init()
shopItems[SHOP_MICRO_HOMING_MISSILES].image = 25;
shopItems[SHOP_PLASMA_MAX_OUTPUT].x = shop_x;
shopItems[SHOP_PLASMA_MAX_OUTPUT].y = shop_y + 150;
shopItems[SHOP_PLASMA_MAX_OUTPUT].y = shop_y + 70;
shopItems[SHOP_PLASMA_MAX_DAMAGE].x = shop_x + 50;
shopItems[SHOP_PLASMA_MAX_DAMAGE].y = shop_y + 150;
shopItems[SHOP_PLASMA_MAX_DAMAGE].y = shop_y + 70;
shopItems[SHOP_PLASMA_MAX_RATE].x = shop_x + 100;
shopItems[SHOP_PLASMA_MAX_RATE].y = shop_y + 150;
shopItems[SHOP_PLASMA_MAX_RATE].y = shop_y + 70;
shopItems[SHOP_PLASMA_MIN_OUTPUT].x = shop_x;
shopItems[SHOP_PLASMA_MIN_OUTPUT].y = shop_y + 210;
shopItems[SHOP_PLASMA_MIN_OUTPUT].y = shop_y + 130;
shopItems[SHOP_PLASMA_MIN_DAMAGE].x = shop_x + 50;
shopItems[SHOP_PLASMA_MIN_DAMAGE].y = shop_y + 210;
shopItems[SHOP_PLASMA_MIN_DAMAGE].y = shop_y + 130;
shopItems[SHOP_PLASMA_MIN_RATE].x = shop_x + 100;
shopItems[SHOP_PLASMA_MIN_RATE].y = shop_y + 210;
shopItems[SHOP_PLASMA_MIN_RATE].y = shop_y + 130;
shopItems[SHOP_PLASMA_AMMO].x = shop_x + 250;
shopItems[SHOP_PLASMA_AMMO].y = shop_y + 150;
shopItems[SHOP_PLASMA_AMMO].y = shop_y + 70;
shopItems[SHOP_ROCKET_AMMO].x = shop_x + 300;
shopItems[SHOP_ROCKET_AMMO].y = shop_y + 150;
shopItems[SHOP_ROCKET_AMMO].y = shop_y + 70;
shopItems[SHOP_PLASMA_MAX_AMMO].x = shop_x + 350;
shopItems[SHOP_PLASMA_MAX_AMMO].y = shop_y + 150;
shopItems[SHOP_PLASMA_MAX_AMMO].y = shop_y + 70;
shopItems[SHOP_ROCKET_MAX_AMMO].x = shop_x + 400;
shopItems[SHOP_ROCKET_MAX_AMMO].y = shop_y + 150;
shopItems[SHOP_ROCKET_MAX_AMMO].y = shop_y + 70;
shopItems[SHOP_DOUBLE_ROCKETS].x = shop_x + 250;
shopItems[SHOP_DOUBLE_ROCKETS].y = shop_y + 210;
shopItems[SHOP_DOUBLE_ROCKETS].y = shop_y + 130;
shopItems[SHOP_MICRO_ROCKETS].x = shop_x + 300;
shopItems[SHOP_MICRO_ROCKETS].y = shop_y + 210;
shopItems[SHOP_MICRO_ROCKETS].y = shop_y + 130;
shopItems[SHOP_LASER].x = shop_x + 350;
shopItems[SHOP_LASER].y = shop_y + 210;
shopItems[SHOP_LASER].y = shop_y + 130;
shopItems[SHOP_HOMING_MISSILE].x = shop_x + 400;
shopItems[SHOP_HOMING_MISSILE].y = shop_y + 210;
shopItems[SHOP_HOMING_MISSILE].y = shop_y + 130;
shopItems[SHOP_CHARGER].x = shop_x + 450;
shopItems[SHOP_CHARGER].y = shop_y + 210;
shopItems[SHOP_CHARGER].y = shop_y + 130;
shopItems[SHOP_DOUBLE_HOMING_MISSILES].x = shop_x + 500;
shopItems[SHOP_DOUBLE_HOMING_MISSILES].y = shop_y + 210;
shopItems[SHOP_DOUBLE_HOMING_MISSILES].y = shop_y + 130;
shopItems[SHOP_MICRO_HOMING_MISSILES].x = shop_x + 550;
shopItems[SHOP_MICRO_HOMING_MISSILES].y = shop_y + 210;
shopItems[SHOP_MICRO_HOMING_MISSILES].y = shop_y + 130;
shopSelectedItem = -1;