Compare commits
No commits in common. "f93dfb1fb2cd541aaf0f8368e5f9b17cf38190bd" and "e62f985e736e6559a6a22377e7124fdd88caef70" have entirely different histories.
f93dfb1fb2
...
e62f985e73
@ -1,3 +0,0 @@
|
|||||||
def init(modules, aoEngineEvents):
|
|
||||||
EngineEvent = modules['engineevents'].EngineEvent
|
|
||||||
aoEngineEvents.append(EngineEvent('level', lambda _: []))
|
|
5
main.py
5
main.py
@ -9,7 +9,7 @@ import pygame.freetype
|
|||||||
|
|
||||||
from gyro import GyroVector, Poincare2Klein
|
from gyro import GyroVector, Poincare2Klein
|
||||||
from constants import I, WHITE, BLACK, IROT, ROT, OFFSET
|
from constants import I, WHITE, BLACK, IROT, ROT, OFFSET
|
||||||
from draw import draw, DrawnSegment
|
from draw import draw
|
||||||
from alert import Alert
|
from alert import Alert
|
||||||
from engineevents import EngineEvent, EngineEventProcessingError
|
from engineevents import EngineEvent, EngineEventProcessingError
|
||||||
from defaultcontrols import defaultcontrols
|
from defaultcontrols import defaultcontrols
|
||||||
@ -140,10 +140,7 @@ def mainLoop():
|
|||||||
aoEngineEvents = fvControl_ao()
|
aoEngineEvents = fvControl_ao()
|
||||||
processevents()
|
processevents()
|
||||||
display.fill(WHITE)
|
display.fill(WHITE)
|
||||||
if len(level) != 0:
|
|
||||||
drawn = draw(level,gPlayer,pi/4,320,iDistScale)
|
drawn = draw(level,gPlayer,pi/4,320,iDistScale)
|
||||||
else:
|
|
||||||
drawn = [DrawnSegment(0, BLACK)] * 320
|
|
||||||
pygame.draw.rect(display,sky, (0,0,1280,360))
|
pygame.draw.rect(display,sky, (0,0,1280,360))
|
||||||
pygame.draw.rect(display,ground, (0,360,1280,360))
|
pygame.draw.rect(display,ground, (0,360,1280,360))
|
||||||
n = 0
|
n = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user