colortest: fixed some stuff
This commit is contained in:
parent
a5220fb56c
commit
56cb6e3998
1 changed files with 174 additions and 171 deletions
|
@ -25,6 +25,9 @@ class Vector(tuple):
|
||||||
def __div__(self,factor):
|
def __div__(self,factor):
|
||||||
return self.__mul__(1.0/factor)
|
return self.__mul__(1.0/factor)
|
||||||
|
|
||||||
|
def __truediv__(self,factor):
|
||||||
|
return self.__div__(factor)
|
||||||
|
|
||||||
def __rmul__(self,factor):
|
def __rmul__(self,factor):
|
||||||
return self.__mul__(factor)
|
return self.__mul__(factor)
|
||||||
|
|
||||||
|
@ -202,7 +205,7 @@ class Game(object):
|
||||||
def __init__(self, modes=[SwarmMode,TransitionMode,LelMode,BallMode]):
|
def __init__(self, modes=[SwarmMode,TransitionMode,LelMode,BallMode]):
|
||||||
self.modes = modes
|
self.modes = modes
|
||||||
pygame.init()
|
pygame.init()
|
||||||
self.screen = pygame.display.set_mode( (1280,800), pygame.FULLSCREEN )
|
self.screen = pygame.display.set_mode( (1280,800), pygame.HWSURFACE )
|
||||||
pygame.mouse.set_visible(False)
|
pygame.mouse.set_visible(False)
|
||||||
self.setmode(0)
|
self.setmode(0)
|
||||||
self.running = True
|
self.running = True
|
||||||
|
|
Loading…
Reference in a new issue