Fels(neu)
fels.py — Python Source, 1 KB (1100 bytes)
Dateiinhalt
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 felsen(frame): def __init__(self, positionFels=(0,0,0)): frame.__init__(self) #steina=box(pos=(0,0,0), length=16, height=2, width=16, frame=self) #steinb=box(pos=(2,3,0), length=5, height=10, width=8, frame=self) #steinc=box(pos=(1,3,-5), length=12, height=4, width=8, frame=self) #steind=box(pos=(-3,1,-1), length=8, height=2, width=12, frame=self) feld1=standartfield(position=(-5,0,15)) feld2=standartfield(position=(-5,1.5,10)) feld3=standartfield(position=(-5,3,5)) feld4=standartfield(position=(-5,4.5,0)) feld5=standartfield(position=(-5,6,-5)) feld6=standartfield(position=(-5,7.5,-10)) feld7=standartfield(position=(-5,9,5)) feld8=standartfield(position=(-5,3,5)) test=felsen()