1
Fork 0

updated to work on windows 10 (3.6)

This commit is contained in:
Speedy6451 2021-01-16 12:25:32 -06:00
parent 77484c21c4
commit 7660bd2844
No known key found for this signature in database
GPG key ID: 338C74904DB2F814
2 changed files with 3 additions and 2 deletions

1
build.bat Normal file
View file

@ -0,0 +1 @@
pyinstaller cli.py -y -n "rise to fall" --add-data="src\levels\testlevel.json;levels" --icon="src\icon.ico"

View file

@ -14,7 +14,7 @@ class Camera(object):
self.tracking = None
def translate(self, pos):
return (pos[0]-self.x,pos[1]-self.y)
return (int(pos[0]-self.x),int(pos[1]-self.y))
def outOfBounds(self, pos):
if (pos[0]-self.y >self.h or pos[0]-self.y < 0
@ -212,7 +212,7 @@ class Mouse(Thing):
mouse = pygame.mouse.get_pos()
print(mouse)
self.setPos(mouse[0],mouse[1])
pygame.draw.circle(self._game._screen,(0,0,0,1),self._body.position,6)
pygame.draw.circle(self._game._screen,(0,0,0,1),(int(self._body.position[0]),int(self._body.position[1])),6)
class RiseToFall(object):
"""