bomb_guess_python_01
unknown
python
2 years ago
1.3 kB
20
Indexable
"""
Урок 8. Графический интерфейс в играх. Игра-кликер «Бомба».
"""
import tkinter as tk
bomb_fuse_health = 100
player_score = 0
press_return = True
root = tk.Tk()
root.title("Bomb fuse game")
root.geometry("600x600+500+400")
root.iconbitmap("assets/bomb.ico")
label = tk.Label(root, text='Press [enter] to start the game', font=('Comic Sans MS', 12))
label.pack()
fuse_label = tk.Label(root, text=f'Fuse: {str(bomb_fuse_health)}', font=('Comic Sans MS', 14))
fuse_label.pack()
score_label = tk.Label(root, text=f'Score: {str(player_score)}', font=('Comic Sans MS', 14))
score_label.pack()
bomb_not_active_img = tk.PhotoImage(file="assets/bomb_not_active_img.gif")
bomb_fire_progress_01_img = tk.PhotoImage(file="assets/bomb_fire_progress_01_img.gif")
bomb_fire_progress_02_img = tk.PhotoImage(file="assets/bomb_fire_progress_02_img.gif")
bomb_explosion_img = tk.PhotoImage(file="assets/bomb_explosion_img.gif")
bomb_label = tk.Label(image=bomb_not_active_img)
bomb_label.pack()
def update_display():
pass
def is_alive():
pass
def update_bomb():
pass
def update_score():
pass
def start(event):
pass
def click():
pass
Editor is loading...
Leave a Comment