Python PyGame to Android App: How to make .apk and .aab files with Buildozer Full Tutorial

Аватар автора
Кодовое Вдохновение
A tutorial about the process of turning a PyGame Game into an Android App using Buildozer in a virtual machine Code for the sample project: ################################################# import pygame, random, os PATH = os.path.abspath('.')+'/' pygame.init() screen = pygame.display.set_mode((400, 400)) pygame_head = pygame.image.load(PATH+'pygame-head-party.png').convert_alpha() current_color = (255, 0, 0) done = False while not done: for event in pygame.event.get(): if event.type == pygame.QUIT: done = True elif event.type == pygame.MOUSEBUTTONDOWN: current_color = random.sample(range(0, 256), 3) screen.fill(current_color) screen.blit(pygame_head, (0,0)) pygame.display.flip() pygame.quit() ###############################################

0/0


0/0

0/0

0/0

0/0