On move_object
OMath Menu Move
end move_object

On find_length
OMath Menu Length
End find_length

On find_angle
OMath Menu AngleSize
End find_angle

On Cancellation
OMath Menu Undo
End Cancellation




On opencard
OMath Open without menu    44 , 49 , 461, 341


OMath Menu Grid 32
OMath NoSave
if game_on = 0 then
  play bokuwo
   put 5 into ntx
   naratoranimex
put 0 into init105
else
  put 105 into presentcard

end if
End Opencard


On fix_screen
OMath Menu FixedOperation
end fix_screen


On idle

OMath  Put Value of ang_10002 into anglex
OMath  Put Value of ang_10003 into angley


--OMath Set LabelValue x , 1, anglex
--OMath Set LabelValue Y , 1, angley
end idle


---------------
On GameStart

put anglex into x
put angley into y

if random(2) = 1 then

 QuizDlg8 "X tiene un ngulo de ___ grados", x
else
 QuizDlg8 "Y tiene un ngulo de ___ grados",y
End if




fix_screen

      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat

move_object

      put 0 into quiz_quit
  if math_answer is not 1 then
       if math_answer is  -1 then
          play  uhoh2


          exit GameStart
       else
              play jawharp
          showwitch_surprised
      end if

   else
           play good
           show_frog_good


 

  end if


End Gamestart





