Pic.Draw (backround, 0, 0, picMerge)
Font.Draw ("#2. In the 1949/1950 NBA season, the Syracuse Nationals still existed.", 50, 580, font1, white)
Font.Draw ("Which name do they go under now?", 230, 560, font1, white)
loop
drawbox (600, 500, 225, 550, white)
Font.Draw ("Boston Celtics", 330, 520, font1, white)
mousewhere (x, y, button)
if button = 1 then
if (x >= 225 and x <= 600) and (y >= 500 and y <= 550) then
cls
Pic.Draw (wrongback, 0, 0, picMerge)
Music.PlayFile ("boo.wav")
Font.Draw ("Incorrect!", 350, 580, font1, white)
var wrong : int := Pic.FileNew ("wronganswer.bmp")
Pic.Draw (wrong, 325, 200, picCopy)
delay (2000)
exit
end if
end if
drawbox (600, 450, 225, 400, white)
Font.Draw ("Atlanta Hawks", 330, 420, font1, white)
mousewhere (x, y, button)
if button = 1 then
if (x >= 225 and x <= 600) and (y >= 400 and y <= 450) then
cls
Pic.Draw (wrongback, 0, 0, picMerge)
Music.PlayFile ("boo.wav")
Font.Draw ("Incorrect!", 350, 580, font1, white)
var wrong : int := Pic.FileNew ("wronganswer.bmp")
Pic.Draw (wrong, 325, 270, picCopy)
delay (2000)
exit
end if
end if
drawbox (600, 350, 225, 300, white)
Font.Draw ("Philidelphia 76ers", 330, 320, font1, white)
mousewhere (x, y, button)
if button = 1 then
if (x >= 225 and x <= 600) and (y >= 300 and y <= 350) then
cls
Music.PlayFile ("clapping.wav")
Font.Draw ("Correct!", 350, 580, font1, white)
counter := counter + 1
var sixers : int := Pic.FileNew ("sixers.jpg")
Pic.Draw (sixers, 100, 200, picCopy)
Font.Draw ("The Syracuse Nationals ceased to exist after 1963.", 125, 150, font1, yellow)
delay (3000)
exit
end if
end if
drawbox (600, 250, 225, 200, white)
Font.Draw ("Toronto Raptors", 330, 220, font1, white)
mousewhere (x, y, button)
if button = 1 then
if (x >= 225 and x <= 600) and (y >= 200 and y <= 250) then
cls
Pic.Draw (wrongback, 0, 0, picMerge)
Music.PlayFile ("boo.wav")
Font.Draw ("Incorrect!", 350, 580, font1, white)
var wrong : int := Pic.FileNew ("wronganswer.bmp")
Pic.Draw (wrong, 325, 200, picCopy)
delay (2000)
exit
end if
end if
end loop
|