Startfeld
startfield.py — Python Source, 1 KB (1024 bytes)
Dateiinhalt
#author: Mario G. #date: 25.03.2013 #version: 1.0 #name: startfield from visual import * class standartfield(frame): def __init__(self, col=color.white, position=(0,0,0), visible=true): frame.__init__(self) self.field=box(frame=self, pos= position, length=2, width=2, height=0.03, color=col) #mention=label(pos=(0,0,0),text='Start') class startfield(frame): def __init__(self, col=color.yellow, positionStart=(0,0,0), visible=true): frame.__init__(self) self.startground=box(frame=self, pos= positionStart, length=8, width=8, height=1, color=col, material=materials.emissive) #mention=label(pos=(0,0,0),text='Start') self.player1= standartfield(position=(-2,1,-2), col= color.orange) self.player2= standartfield(position=(-2,1,2), col= color.orange) self.player3= standartfield(position=(2,1,-2), col= color.orange) self.player4= standartfield(position=(2,1,2), col= color.orange) #test=startfield()