Links und Funktionen
Sprachumschaltung

Navigationspfad


Inhaltsbereich

Feld (in Arbeit)

Python Source icon field.py — Python Source, 1 KB (1052 bytes)

Dateiinhalt

from visual import *


class start(frame):
    def __init__(self, col=color.magenta):
        frame.__init__(self)
        field=box(frame=self, pos=(0,0,0), length=2, width=2, height=0.03, color=col)
        #mention=label(pos=(0,0,0),text='Start')
        
i=-4 #abstand        

class field(frame):
    def __init__(self, col=color.green):
        frame.__init__(self)
        fa=box(pos=(i*1,0,0,),length=2,width=2, height=0.03, color=col)
        fb=box(pos=(i*2,2,0,),length=2,width=2, height=0.03, color=col)
        fc=box(pos=(i*3,4,0,),length=2,width=2, height=0.03, color=col)
        fd=box(pos=(i*4,6,0,),length=2,width=2, height=0.03, color=col)
        
        

class felsen(frame):
    def __init__(self):
        frame.__init__(self)
        steina=box(pos=(i*5,6,0), length=2, height=3.5, width=3)
        steinb=box(pos=(i*5-2,5,-1), length=2, height=3, width=2)
        steinc=box(pos=(i*5-2,5,1), length=3, height=6, width=2.5)
        steind=box(pos=(i*5-4,5,0), length=3.5, heigth=8, width=2)



g=start()
f=field()
h=felsen()

Funktionsleiste