def draw(): clear_canvas() title_state.title_bg.draw(400, 300) store.draw(400, 300) Item_Life.draw(351, 225) Item_Stop.draw(461, 225) for i in range(2): Num_image.clip_draw(21, 0, 21, 25, 331 + (i * 110), 175) Num_image.clip_draw(0, 0, 21, 25, 350 + (i * 110), 175) Num_image.clip_draw(0, 0, 21, 25, 371 + (i * 110), 175) GameStart.draw(401, 120) sel.draw(sel_x, sel_y) # 화살표 #=================== 코인 출력 if main_state.score_check(start_state.TotalMoney) == 0: Num_image.clip_draw(0, 0, 21, 25, 400, 350) pass else: for i in range(main_state.score_check(start_state.TotalMoney)): Num_image.clip_draw(Num[i] * 21, 0, 21, 25, (400 + int(main_state.score_check(start_state.TotalMoney) / 2) * 21) - (i * 21), 350) coin_image.draw((400 + int(main_state.score_check(start_state.TotalMoney) / 2) * 21) + 50, 350) update_canvas() pass
def draw(): clear_canvas() title_state.title_bg.draw(400, 300) score_board.draw(400, 300) store_state.sel.draw(store_state.sel_x, store_state.sel_y) #=================== 스코어 출력 if main_state.score_check(main_state.DownCnt) == 0: store_state.Num_image.clip_draw(0, 0, 21, 25, 400, 350) pass else: for i in range(main_state.score_check(main_state.DownCnt)): store_state.Num_image.clip_draw(store_state.Num[i] * 21, 0, 21, 25, (400 + int(main_state.score_check(main_state.DownCnt) / 2) * 21) - (i * 21), 350) best.draw(400, 290) if main_state.score_check(best_score) == 0: store_state.Num_image.clip_draw(0, 0, 21, 25, 400, 250) for i in range(main_state.score_check(best_score)): store_state.Num_image.clip_draw(store_state.Num[i] * 21, 0, 21, 25, (400 + int(main_state.score_check(best_score) / 2) * 21) - (i * 21), 250) update_canvas() pass