0% found this document useful (0 votes)
14 views2 pages

2D python game

The document outlines the specifications for a 2D Python game featuring a player character, a loading screen, and a shop for armor purchases. Players can choose a character, manage an inventory of items dropped by enemies, and have three lives displayed on the screen. The game includes various images for characters, armor, and backgrounds, along with a defined drop rate for coins and a mechanism to open and close the shop.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

2D python game

The document outlines the specifications for a 2D Python game featuring a player character, a loading screen, and a shop for armor purchases. Players can choose a character, manage an inventory of items dropped by enemies, and have three lives displayed on the screen. The game includes various images for characters, armor, and backgrounds, along with a defined drop rate for coins and a mechanism to open and close the shop.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

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/enemy.png

image/heart.png
image/image.png
image/loadingscreen.png
image/main.png
image/menu.png

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 "image.png" (Game maps)


current enemy image "enemy.png"
current menu image "menu.png" (Image for inventory, shop, settings)
current main menu image "main.png" (Back image for play button)
current loadingscreen image "loadingscreen.png" (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/enemy.png",
"heart": "image/heart.png",
"image": "image/image.png",
"loadingscreen": "image/loadingscreen.png",
"main": "image/main.png",
"menu": "image/menu.png",
}

You might also like