On opencard
OMath Open without Menu   44 , 49 , 461, 341
OMath Menu Grid 32
OMath NoSave
 if game_on is not 1 then
  play trapezid
   put 2 into ntx
   naratoranimex
 wait 1 seconds
  play bokuwo
   put 5 into ntx
   naratoranimex
 end if

  put 103 into presentcard
put 0 into init103

End Opencard



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 GameStart

put random(11) into rdm

if rdm = 1 then
 QuizDlg2 "How many vertexes are in this figure?",1, 2, 3, 4, 4
end if

if rdm = 2 then
 QuizDlg2 "How many sides are in this figure?",1, 2, 3, 4, 4
end if

if rdm = 3 then
 QuizDlg2 "What is this figure called?",parallelogram, rhombus,trapezoid, square, 3
end if

if rdm = 4 then
 QuizDlg2 "A trapezoid has two pairs of parallel opposite sides",Yes, No, , , 2
end if

if rdm = 5 then
 QuizDlg2 "A trapezoid has only one pair of parallel opposite sides",Yes, No, , , 1
end if

if rdm = 6 then
 QuizDlg2 "A trapezoid has three pairs of opposite sides.",Yes, No, , , 2
end if

if rdm = 7 then
 QuizDlg2 "A trapezoid has two diagonals of equal length.",Yes, No, , , 2
end if

if rdm = 8 then
 QuizDlg2 "Diagonals of a trapezoid bisect each other",Yes, No, , , 2
end if

if rdm = 9 then
 QuizDlg2 "The diagonals of a trapezoid intersect perpendicularly.",Yes, No, , , 2
end if

if rdm = 10 then
 QuizDlg2 "Opposite angles formed by the diagonals are of equal size",Yes, No, , , 1
end if

if rdm = 11 then
 QuizDlg2 "The distance is the same from the intersection of the diagonals to any vertex",Yes, No, , , 2
end if




      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      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




