Skip to content

Commit

Permalink
lets go first version
Browse files Browse the repository at this point in the history
  • Loading branch information
tails1154 committed Nov 17, 2024
1 parent 6ba9ed1 commit 5f58248
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
18 changes: 15 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,29 @@
if menu:
menu=False
gameReading=True
if event.key == pygame.K_SPACE:
if ready:
gameReading=False
ready=False
game.start()
running = True
ready=False
screen.fill("blue")
text_surface = font.render("Unmounting...", True, (255, 255, 255))
text_rect = text_surface.get_rect(center=(400, 300))
screen.blit(text_surface, text_rect)
pygame.display.flip()
game = ""
subprocess.call(['unmount', mount])
subprocess.call(['umount', mount])
subprocess.call(['umount', mount])
subprocess.call(['umount', mount])
subprocess.call(['umount', mount])
subprocess.call(['umount', mount])
text_surface = font.render("Ready for new game!", True, (255, 255, 255))
text_rect = text_surface.get_rect(center=(400, 300))
screen.blit(text_surface, text_rect)
pygame.display.flip()
menu=True

# fill the screen with a color to wipe away anything from last frame
screen.fill("blue")
Expand All @@ -78,13 +85,18 @@
screen.blit(text_surface, text_rect)
pygame.display.flip()
subprocess.call(['mount', floppy, mount])
game = importlib.import_module(mount + "/game")
sys.path.insert(0, mount)
import game
ready=True
gameReading=False
menu=False
screen.fill("blue")
if ready:
text_surface = font.render("Press enter to start!", True, (255,255,255))
screen.fill("blue")
text_surface = font.render("Press space to start!", True, (255,255,255))
text_rect = text_surface.get_rect(center=(400, 300))
screen.blit(text_surface, text_rect)
pygame.display.flip()

# flip() the display to put your work on screen
pygame.display.flip()
Expand Down
1 change: 1 addition & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo python3 main.py

0 comments on commit 5f58248

Please sign in to comment.