Welcome to RetroCoders Community
' function with arguments
var g : g = 50 : wcolor 0,0,0 : mode 1
fcolor 150,240,150 :print 5,10,"global:": print 100,10,g : swap
' func call with params...
myFn(5,3+g,2*sin(90))
func myFn(var a,var b,var c)
fcolor 250,200,150
print 50,30,"local a"
print 50,50,a
print 50,80,"local b"
print 50,100,b
var f : f = a + b + c
fcolor 150,200,250 :print 5,150,"result:": print 100,150,f
swap
endFn


Quote from: ron77 on Apr 18, 2024, 03:32 PMi compiled the tetris game code with freebasic for dos (DJGPP) AND ADDED HDMPI32.EXE file and a batch file so you can run it under dos (either dosbox or freeDOS OS) I am attaching it here for you as a zip file - tell us if it works for you (to start the game just run START.BAT file)Thanks a lot, Tetris works great!