aboutsummaryrefslogtreecommitdiff
path: root/game/menus
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-11 10:42:11 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-11 10:42:11 +0100
commit1e89a817a41c67e34d75d13cc8017de9c5bdac30 (patch)
treeee4a91923f2d72877e3dce02d7b0eb9542846dc8 /game/menus
parentcd69fcce59532b1fd21ce1ac566d13ad34bd526b (diff)
Fixed bug: Sprites less pixely
Diffstat (limited to 'game/menus')
-rw-r--r--game/menus/shop/ShopMenuScene.cpp113
1 files changed, 111 insertions, 2 deletions
diff --git a/game/menus/shop/ShopMenuScene.cpp b/game/menus/shop/ShopMenuScene.cpp
index 641352c..84d6035 100644
--- a/game/menus/shop/ShopMenuScene.cpp
+++ b/game/menus/shop/ShopMenuScene.cpp
@@ -67,10 +67,47 @@ void ShopMenuScene::load_scene() {
Asset("asset/other_effects/effect_rocketmgshell_TVOS.png"),
Sprite::Data {
.sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
- .size = {0, 100},
+ .size = {0, 20},
+ .angle_offset = 30,
.position_offset = {0, 0},
}
);
+ shop_item_bullet.add_component<Sprite>(
+ Asset("asset/other_effects/effect_rocketmgshell_TVOS.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .angle_offset = 10,
+ .position_offset = {-10, -30},
+ }
+ );
+ shop_item_bullet.add_component<Sprite>(
+ Asset("asset/other_effects/effect_rocketmgshell_TVOS.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .angle_offset = -10,
+ .position_offset = {-40, 30},
+ }
+ );
+ shop_item_bullet.add_component<Sprite>(
+ Asset("asset/other_effects/effect_rocketmgshell_TVOS.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .angle_offset = 0,
+ .position_offset = {10, 15},
+ }
+ );
+ shop_item_bullet.add_component<Sprite>(
+ Asset("asset/other_effects/effect_rocketmgshell_TVOS.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .angle_offset = -5,
+ .position_offset = {45, -5},
+ }
+ );
const string BULLETS_STRING = "BULLETS";
size
@@ -112,10 +149,82 @@ void ShopMenuScene::load_scene() {
Asset("asset/background/aquarium/bubble.png"),
Sprite::Data {
.sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
- .size = {0, 100},
+ .size = {0, 10},
.position_offset = {0, 0},
}
);
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 10},
+ .position_offset = {-50, -20},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .position_offset = {45, -40},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .position_offset = {-20, 40},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 15},
+ .position_offset = {15, -25},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 10},
+ .position_offset = {10, 5},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 10},
+ .position_offset = {-5, -20},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .position_offset = {15, -40},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 20},
+ .position_offset = {-20, 10},
+ }
+ );
+ shop_item_bubble.add_component<Sprite>(
+ Asset("asset/background/aquarium/bubble.png"),
+ Sprite::Data {
+ .sorting_in_layer = STARTING_SORTING_IN_LAYER + 1,
+ .size = {0, 15},
+ .position_offset = {30, -25},
+ }
+ );
const string BUBBLE_STRING = "BUBBLE";
size