multiplayer (nicht fertig)
main.py — Python Source, 1 KB
Dateiinhalt
from visual import * from bricks import * from player import * from ball import * from gconn import * scene.title="PongVPong" scene.autoscale=False scene.fullscreen=True scene.userspin=False scene.userzoom=False scene.fov = 0.5 * math.pi player0 = player() b_ = ball() b = ball() b.v = vector(0, 0, 0) b.pos = (20, 0, 0) world = world() world.worldgen() g = GameConnection() def startGame(): while True: rate(200) player0.move() b_.collision(player0, world)