first sprite, making up the theme, some slight adjustments to differ from the pygame template, etc.

This commit is contained in:
dvorakmortonxd 2026-06-05 11:22:12 +02:00
commit 731ba1053e
5 changed files with 7 additions and 5 deletions

View file

@ -5,9 +5,10 @@ window_fps = 60 # the frames per second, this decides how fast the main loop ru
def main(fps=window_fps): # the main function
pygame.init() # initalizes pygame
screen_width = 800 # the screen width
screen_height = 500 # the screen height
title = "Example Title" # the title of the window obviously
screen_width = 912 # the screen width
screen_height = 576 # the screen height
# THE SCREEN IS 19:12 RATIO
title = "The Destroyer of Cities" # the title of the window obviously
lastclickpos = [0, 0] # last position that was clicked, this changes every time you click somewhere on the game window
screen = pygame.display.set_mode((screen_width, screen_height)) # this initalizes the display with the screen_width and screen_height variables
pygame.display.set_caption(title) # this actually sets the title of the window from the title variable