I decided on an old school type intro But now I am stuck.
I want do draw a checked floor pattern with blue and white squares on it and have it going off in to the distance.
I can't show my code at the moment, If someone has done this or knows how to do this
Your help would be great, I have part of some old code but I can't remember the rest of it.
Code: Select all
Procedure DrawGrid()
Static Z
Static X
Static TX
Static TY
Static Clr
Static Shade
Static ClrStrt = 1
Dim PolyTransform.f(8)
For Z = 0 To Grid-2
ClrStrt = ClrStrt + 1
If ClrStrt > 2
ClrStrt = 1
EndIf
Clr = ClrStrt
For X = 0 To Grid-2
Clr = Clr+1
If Clr > 2
Clr = 1
EndIf
TX = (GridX(X,Z) / (GridZ(X,Z) - Move)) + HalfX
TY = (GridY(X,Z) / (GridZ(X,Z) - Move)) + HalfY
PolyTransform(0) = TX
PolyTransform(1) = TY
TX = (GridX(X+1,Z) / (GridZ(X+1,Z) - Move)) + HalfX
TY = (GridY(X+1,Z) / (GridZ(X+1,Z) - Move)) + HalfY
PolyTransform(2) = TX
PolyTransform(3) = TY
TX = (GridX(X+1,Z+1) / (GridZ(X+1,Z+1)-Move))+HalfX
TY = (GridY(X+1,Z+1) / (GridZ(X+1,Z+1)-Move))+HalfY
PolyTransform(4) = TX
PolyTransform(5) = TY
TX = (GridX(X,Z+1) / (GridZ(X,Z+1) - Move)) + HalfX
TY = (GridY(X,Z+1) / (GridZ(X,Z+1) - Move)) + HalfY
PolyTransform(6) = TX
PolyTransform(7) = TY
Shade = (TY/4) - 75
If Shade<0
Shade=0
EndIf
If Clr = 1
SetColor(Shade,Shade,Shade)
EndIf
If Clr = 2
SetColor( 0, 0,Shade)
EndIf
Poly(PolyTransform)
Next
Next
EndProcedure







