A tutorial about the process of turning a PyGame Game into an Android App using Buildozer in a virtual machine
Install buildozer: https://buildozer.readthedocs.io/en/l...
Signing .aab: / build-aab-file-and-sign-key-later
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()
###############################################
My games on itch: https://finfetchannel.itch.io/
My website: https://finfetchannel.github.io/
My discord: / discord
My GitHub: https://github.com/FinFetChannel