From 2d2c8e9732cafc0e2162b94a76ab2c4c73afef22 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sun, 5 Feb 2017 12:56:53 -0500 Subject: [PATCH] Fixed the shop items. --- src/shop.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/shop.cpp b/src/shop.cpp index 7e55727..6a339c5 100644 --- a/src/shop.cpp +++ b/src/shop.cpp @@ -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;