diff --git a/README.md b/README.md index 7f63e0a..06f6ffe 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,5 @@ You control the weather to your liking, just be aware, it can turn against you! # Credits -Here I will list all the external resources I will use, most likely, fonts. I make most of my assets by my own. \ No newline at end of file +Here I will list all the external resources I will use, most likely, fonts. I make most of my assets by my own. +Alright so I think its fair to state I stole some code from my last minijam project at https://git.dvorakmortonxd.dev/dvorakmortonxd/revival-inc , however I dont know if this counts as external resource since, I am literally the one who wrote it. \ No newline at end of file diff --git a/levels.py b/levels.py index 1233ece..261718c 100644 --- a/levels.py +++ b/levels.py @@ -1,7 +1,7 @@ from render import load_sprite # this makes it so our function for rendering sprites from sprites.png is available in here def level1(screen, sheet, lastclickpos, basicfont, mouse, click, level): # the function for our first level, ignore the unused variables here, you can use them when you edit it - screen.blit(load_sprite(sheet, 0, 0, 26, 8, 210, 60), (200, 200)) # this renders a button I made in the sprites.png, its purely for visual purposes so it doesnt matter where you click rn + screen.blit(load_sprite(sheet, 0, 0, 57, 36, 912, 576), (0, 0)) # this renders a button I made in the sprites.png, its purely for visual purposes so it doesnt matter where you click rn if click: # this checks if you clicked, when you clicked it does the following stuff under level = 2 # sets the level to 2 print("yo") # prints out "yo" for debugging purposes, otherwise completely unnecessary diff --git a/main.py b/main.py index e8e618d..55ada2a 100644 --- a/main.py +++ b/main.py @@ -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 diff --git a/sprites.png b/sprites.png index 7bcb86e..df9c9e9 100644 Binary files a/sprites.png and b/sprites.png differ diff --git a/sprites.pxo b/sprites.pxo index efd09b9..7fc7be5 100644 Binary files a/sprites.pxo and b/sprites.pxo differ