Skip to content

Commit

Permalink
🍉 - Game base ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrokx committed May 8, 2021
1 parent bb22e05 commit fbe2507
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 0 deletions.
Binary file added Assets/Beach Tileset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/IceTileset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/Player2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/RPG Nature Tileset Autumn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/RPG Nature Tileset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/house.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/tileset_dungeon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions game.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import sys

import pygame


class Game:
def __init__(self):
super().__init__()
self.screen = pygame.display.set_mode((1080,720))
pygame.display.set_caption("Desert-island-adventure")

def run(self):
running = True

while running:

# Refresh window
pygame.display.flip()

# Pygame events
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
print("✅ - Window closes")
sys.exit(0)
running = False
8 changes: 8 additions & 0 deletions index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pygame

from game import Game

if __name__ == '__main__':
pygame.init()
game = Game()
game.run()
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pygame
pytmx
pyscroll

0 comments on commit fbe2507

Please sign in to comment.