Advertisement
IBeetle

Untitled

Dec 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. var x, y, a, b, r, t, bnum, updown, font, font2, font3 : int
  2. font := Font.New ("Arial Black:20:bold")
  3. font2 := Font.New ("Arial Black:20:bold")
  4. font3 := Font.New ("Arial Black:20:bold")
  5. assert font > 0
  6. locate (2, 30)
  7. put "Choose your favourite"
  8. drawfillbox (0, 0, 200, 200, 9)
  9. drawfillbox (200, 0, 400, 200, 10)
  10. drawfillbox (400, 0, 1000, 200, 12)
  11. Font.Draw ("That one", 18, 85, font, purple)
  12. Font.Draw ("This one", 225, 80, font2, purple)
  13. Font.Draw ("Other one", 450, 80, font3, purple)
  14. buttonwait ("down", x, y, bnum, updown)
  15. if x >= 200 then
  16. elsif y <= 200 then
  17. put "ok"
  18. end if
  19. if x >= 0 then
  20. elsif y >= 0 then
  21. put "ok"
  22. end if
  23. %green
  24. if x >= 400 then
  25. elsif y <= 200 and x >= 400 then
  26. put "yes"
  27. end if
  28. if x >= 400 then
  29. elsif y >= 0 then
  30. put "yes"
  31. end if
  32. if x >= 640 then
  33. elsif y <= 200 then
  34. put "yeeees"
  35. end if
  36. put x
  37. put y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement