Create a 2D Python game with a play, character and a soon button, when the player
press the player button start a loadingscreen of 10 second then start the game
1) game option play, choose a character and soon button
2) have an inventory for item that enemy drop when die (drop rate of 35% for
10 coins)
3) the main player have 3 life (show life left in the top right)
4) shop where the player can buy 4 type of armor with different price (show
armor image in the shop menu) (open and close key [E])
"armor_1 = 50 coins",
"armor_2 = 75 coins",
"armor_3 = 100 coins",
"armor_4 = 150 coins"
IMAGE_PATH = [
armor/1_armor.png
armor/2_armor.png
armor/3_armor.png
armor/4_armor.png
character/1_character.png
character/2_character.png
character/3_character.png
character/4_character.png
character/[Link]
image/[Link]
image/[Link]
image/[Link]
image/[Link]
image/[Link]
GAME_IMAGE = [
current player image "1_character.png" (if no character are selected
automaticly choose this one)
current player image "2_character.png"
current player image "3_character.png"
current player image "4_character.png"
current background image "[Link]" (Game maps)
current enemy image "[Link]"
current menu image "[Link]" (Image for inventory, shop, settings)
current main menu image "[Link]" (Back image for play button)
current loadingscreen image "[Link]" (make a loading icon on the
bottom right)
current 1_armor image "1_armor.png" (add 25 armor to the armor bar)
current 2_armor image "2_armor.png" (add 50 armor to the armor bar)
current 3_armor image "3_armor.png" (add 75 armor to the armor bar)
current 4_armor image "4_armor.png" (add 100 armor to the armor bar)
]
BLOCKED_COLORS = [
(160, 248, 0),
(192, 152, 72),
(176, 136, 88),
(160, 248, 0),
(128, 248, 0),
(190, 150, 74),
(141, 101, 104),
(111, 103, 43),
(160, 120, 105),
(193, 153, 71),
(165, 125, 99),
(134, 228, 8),
(113, 81, 50),
(120, 176, 24),
(48, 150, 127)
# Constants
IMAGE_PATH = {
"1_armor": "armor/1_armor.png",
"2_armor": "armor/2_armor.png",
"3_armor": "armor/3_armor.png",
"4_armor": "armor/4_armor.png",
"1_character": "character/1_character.png",
"2_character": "character/2_character.png",
"3_character": "character/3_character.png",
"4_character": "character/4_character.png",
"enemy": "character/[Link]",
"heart": "image/[Link]",
"image": "image/[Link]",
"loadingscreen": "image/[Link]",
"main": "image/[Link]",
"menu": "image/[Link]",
}