Skip to content

Commit

Permalink
v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MixelTe committed Apr 30, 2022
1 parent 385e566 commit 41b969d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions src/exceptionFreeLauncher.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
try:
import main
except:
try:
import ctypes
ctypes.windll.user32.MessageBoxW(None, "Произошла ошибка", "The Legend of Pirate", 0x10)
except:
pass
4 changes: 2 additions & 2 deletions src/game/saveData.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def __init__(self, save: int):
self.checkPointY = 4
self.world = "SandWorld"
self.screen = (4, 7)
self.coins = 1000
self.coins = 0
self.health = 6
self.bullets = 0
self.time = 1
self.time = 0
self.tags: list[str] = []

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion src/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
block_cipher = None


a = Analysis(['main.py'],
a = Analysis(['exceptionFreeLauncher.py'],
pathex=['D:\\Users\\Lux\\Desktop\\python\\projects\\The Legend of Pirate\\src'],
binaries=[],
datas=[("data", "data")],
Expand Down
12 changes: 6 additions & 6 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@


class Settings:
version = "v2.0.0 (beta.5)"
version = "v2.0.0"
width = 720 # 1920
height = 405 # 1080
windowed = True
windowed = False
fps = 60
overlay_height = 184
folder_data = "data"
Expand All @@ -22,16 +22,16 @@ class Settings:
screen_height = 9
damageDelay = 400
damageDelayPlayer = 1600
fullscreen = False
fullscreen = True
tileSize = 1
DEVMode = True
DEVMode = False
drawHitboxes = False # F1
disableAI = False # F4
ghostmode = True # F5
ghostmode = False # F5
drawGrid = False # F6
deathMouse = False # F7
drawNoneImgs = False
moveScreenOnNumpad = True
moveScreenOnNumpad = False


try:
Expand Down

0 comments on commit 41b969d

Please sign in to comment.