1
QB64 Discussion / Re: Bizzarre error with $include
« on: November 26, 2021, 07:08:42 am »put the include on line 15I tried this first, but got an even weirder error. :) When I entered `TPen down` in turtle-test.bas, (a normal use of TPen,) it told me "name already in use".
Indeed, the main body of the code may not appear after any subroutines. The standard pattern is to include "turtle.bi" at the top of the program with needed declarations, and "turtle.bm" at the bottom with Sub and Function implementations.This worked, thanks! :)
Welcome @eekee I look forward to fixing your Turtles code as stated and checking it out.Good catch, thanks!
Oh not finished, don't forget to change Turtle Angle degrees into radians in Sin() and Cos() for Move use _D2R() degrees to radians.