Here's my problem. I'm trying to make a game entirely in turing (no pics, music, ect.) and the actual program is pretty good, it just gets kinda boring without sounds. Here's an example of what happens in my program, the first ball drops smooth, but the oher one tries to incorporate sounds, and get choppy/laggy.
Turing: | setscreen ("graphics:200;500,nobuttonbar,offscreenonly,position:center;center")
colorback (9)
process sounds (blah : int)
sound (blah + 300, 1)
end sounds
for decreasing i : maxy .. 1
cls
drawfilloval (maxx div 2, i, 10, 10, 10)
View.Update
delay (2)
end for
for decreasing i : maxy .. 1
cls
drawfilloval (maxx div 2, i, 10, 10, 10)
if i mod 20 = 0 then
fork sounds (i )
end if
View.Update
delay (2)
end for
|
|