On opencard
OMath Open  without menu   44 , 49 , 461, 341
OMath Menu Grid 32
OMath NoSave


  play area_t
   put 3 into ntx
   naratoranimex
wait 1 seconds

  play bokuwo
   put 5 into ntx
   naratoranimex
  put 101 into presentcard
put 0 into init101

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 idle

OMath  Put Value of len_10001 into lengthx

OMath  Put Value of len_10002 into lengthy

end idle


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

put int( lengthx * 100) / 100.0  into length1x
put int( length1x * 10 + 0.5) / 10.0  into length1x



put int(lengthy * 100) / 100.0 into length2x
put int( length2x * 10 + 0.5) / 10.0  into length2x





put (length1x * length2x)/2  into body

put int(body + 0.5) into body


 QuizDlg4 "What is the area of the triangle rounded to the nearest integer?",body








      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





