Advertisement
IBeetle

Skilltester NEWEST VERSION WORKING

Jan 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.18 KB | None | 0 0
  1.  
  2. View.Set ("graphics: 1700,1200")
  3. colorback (7)
  4. cls
  5. var font1, font2, font3, font4, font5, font6, font7, font8 : int
  6. var x, y, bnum, updown, spritea, pica, points : int
  7. var targetx, targety, targetx2, targety2 : int
  8. var motion : string
  9. var insult1, insult2, insult3, insult4, compliment1, compliment2, compliment3, compliment4 : string
  10. var flag, flag2 : boolean
  11. points := 0
  12. insult1 := "You know this is the easiest difficulty right?"
  13. insult2 := "My Grandma could probably do better"
  14. insult3 := "How are you going to sleep at night with that score?"
  15. insult4 := "You have slower reaction time than a sloth"
  16. compliment1 := "Wow thats pretty good"
  17. compliment2 := "Scanning for cheats..."
  18. compliment3 := "You are a God of the skill tester"
  19. compliment4 := "Immmmmpressssive"
  20. font1 := Font.New ("Magneto:50:bold")
  21. font2 := Font.New ("Magneto:50:bold")
  22. font3 := Font.New ("Showcard gothic:20:bold")
  23. font4 := Font.New ("Showcard gothic:20:bold")
  24. font5 := Font.New ("Showcard gothic:20:bold")
  25. font6 := Font.New ("Showcard gothic:20:bold")
  26. font7 := Font.New ("Showcard gothic:20:bold")
  27. font8 := Font.New ("Showcard gothic:30:bold")
  28. assert font1 > 0
  29. Font.Draw ("WELCOME TO THE SKILL TESTER", 100, 1000, font1, green)
  30. % Font.Free (font1)
  31. drawfilloval (800, 700, 150, 150, 12)
  32. drawfilloval (800, 700, 115, 115, 31)
  33. drawfilloval (800, 700, 90, 90, 12)
  34. drawfilloval (800, 700, 65, 65, 31)
  35. drawfilloval (800, 700, 25, 25, 12)
  36. drawfillbox (755, 700, 600, 695, 7)
  37. drawfillbox (797, 750, 801, 900, 7)
  38. drawfillbox (1000, 700, 845, 695, 7)
  39. drawfillbox (797, 650, 801, 500, 7)
  40. delay (1000)
  41. %loop
  42. Font.Draw ("CLICK TO START", 450, 400, font2, yellow)
  43. %Font.Draw ("CLICK TO START", 450, 400, font2, red)
  44. %end loop
  45. %blink
  46. %loop
  47. %drawfillbox (470, 390, 1220, 500, black)
  48. %end loop
  49. buttonwait ("down", x, y, bnum, updown)
  50. cls
  51. drawfillbox (50, 700, 340, 600, 187)
  52. drawfillbox (400, 700, 730, 600, 14)
  53. drawfillbox (790, 700, 1180, 600, 48)
  54. drawfillbox (1220, 700, 1600, 600, 5)
  55. drawfillbox (600, 1050, 900, 980, 50)
  56. Font.Draw ("How to play", 650, 1000, font7, purple)
  57. Font.Draw ("Slightly Difficult", 50, 650, font3, brown)
  58. Font.Draw ("Moderatly Difficult", 400, 650, font4, red)
  59. Font.Draw ("Considerably Difficult", 800, 650, font5, purple)
  60. Font.Draw ("Tremendously Difficult", 1220, 650, font6, green)
  61. buttonwait ("down", x, y, bnum, updown)
  62. %slightly
  63. if ((x >= 50 and y <= 700) and (x < 340 and y > 600)) then
  64. cls
  65. drawbox (600, 750, 1000, 670, 12)
  66. %skillchecker bar
  67. drawfillbox (800, 500, 805, 610, 12)
  68. pica := Pic.New (800, 500, 805, 610)
  69. spritea := Sprite.New (pica)
  70. Sprite.Show (spritea)
  71. targetx := 652
  72. targety := 752
  73. targetx2 := 752
  74. targety2 := 672
  75. randint (targetx, 600, 900)
  76. loop
  77. flag := false
  78. flag2 := false
  79. drawfillbox (900, 400, 700, 620, 7)
  80. %blue bar
  81. drawfillbox (targetx, targety, targetx + 100, targety2, 11)
  82. for x2 : 600 .. 1000 by 2
  83. Sprite.SetPosition (spritea, x2, 640, false)
  84. delay (15)
  85. if Mouse.ButtonMoved ("down") then
  86. buttonwait ("down", x, y, bnum, updown)
  87. drawfillbox (600, 760, 1000, 670, 7)
  88. drawbox (600, 750, 1000, 670, 12)
  89. if x2 >= targetx and x2 <= targetx + 100 then
  90. randint (targetx, 600, 900)
  91. points := points + 1
  92. color (12)
  93. put points
  94. else
  95. cls
  96. color (12)
  97. locate (50, 60)
  98. if points <= 50 then
  99. put insult1, " ", "you gained", " ", points, " ", "points"
  100. elsif points > 50 then
  101. put "Thats a fine score but still pretty bad for this difficulty..."
  102. color (12)
  103. locate (50, 70)
  104. put " you gained", " ", points, " ", "points"
  105. end if
  106. flag2 := true
  107. exit
  108. end if
  109. flag := true
  110. exit
  111. end if
  112. end for
  113. if flag = false and flag2 = false then
  114. for decreasing x3 : 1000 .. 600 by 2
  115. Sprite.SetPosition (spritea, x3, 640, false)
  116. delay (15)
  117. if Mouse.ButtonMoved ("down") then
  118. buttonwait ("down", x, y, bnum, updown)
  119. drawfillbox (600, 760, 1000, 670, 7)
  120. drawbox (600, 750, 1000, 670, 12)
  121. if x3 >= targetx and x3 <= targetx + 100 then
  122. randint (targetx, 600, 900)
  123. points := points + 1
  124. color (12)
  125. put points
  126. else
  127. cls
  128. color (12)
  129. locate (50, 60)
  130. if points <= 50 then
  131. put insult2, " ", "you gained ", " ", points, " ", "points"
  132. elsif points > 50 then
  133. put "I mean, you still shouldn't feel good about yourself on this difficulty..."
  134. color (12)
  135. locate (50, 70)
  136. put "You gained ", " ", points, " ", "points"
  137. end if
  138. flag2 := true
  139. exit
  140. end if
  141. exit
  142. end if
  143. end for
  144. end if
  145. if flag2 = true then
  146. exit
  147. end if
  148. end loop
  149.  
  150.  
  151. %moderatly
  152. elsif ((x >= 400 and y <= 700) and (x < 730 and y > 600)) then
  153. cls
  154. drawbox (600, 750, 1000, 670, 12)
  155. %skillchecker bar
  156. drawfillbox (800, 500, 805, 610, 12)
  157. pica := Pic.New (800, 500, 805, 610)
  158. spritea := Sprite.New (pica)
  159. Sprite.Show (spritea)
  160. targetx := 652
  161. targety := 752
  162. targetx2 := 752
  163. targety2 := 672
  164. randint (targetx, 600, 900)
  165. loop
  166. flag := false
  167. flag2 := false
  168. drawfillbox (900, 400, 700, 620, 7)
  169. %blue bar
  170. drawfillbox (targetx, targety, targetx + 100, targety2, 11)
  171. for x2 : 600 .. 1000 by 2
  172. Sprite.SetPosition (spritea, x2, 640, false)
  173. delay (10)
  174. if Mouse.ButtonMoved ("down") then
  175. buttonwait ("down", x, y, bnum, updown)
  176. drawfillbox (600, 760, 1000, 670, 7)
  177. drawbox (600, 750, 1000, 670, 12)
  178. if x2 >= targetx and x2 <= targetx + 100 then
  179. randint (targetx, 600, 900)
  180. points := points + 1
  181. color (12)
  182. put points
  183. else
  184. cls
  185. color (12)
  186. locate (50, 60)
  187. if points <= 20 then
  188. put insult3, " ", "you gained ", " ", points, " ", "points"
  189. elsif points > 20 then
  190. put "That score is pretty ok"
  191. put " you gained", " ", points, " ", "points"
  192. end if
  193. flag2 := true
  194. exit
  195. end if
  196. flag := true
  197. exit
  198. end if
  199. end for
  200. if flag = false and flag2 = false then
  201. for decreasing x3 : 1000 .. 600 by 2
  202. Sprite.SetPosition (spritea, x3, 640, false)
  203. delay (10)
  204. if Mouse.ButtonMoved ("down") then
  205. buttonwait ("down", x, y, bnum, updown)
  206. drawfillbox (600, 760, 1000, 670, 7)
  207. drawbox (600, 750, 1000, 670, 12)
  208. if x3 >= targetx and x3 <= targetx + 100 then
  209. randint (targetx, 600, 900)
  210. points := points + 1
  211. color (12)
  212. put points
  213. else
  214. cls
  215. color (12)
  216. locate (50, 60)
  217. if points <= 20 then
  218. put insult4, " ", "you gained ", " ", points, " ", "points"
  219. elsif points > 20 then
  220. put "Meh, try a harder difficulty"
  221. put "You gained ", " ", points, " ", "points"
  222. end if
  223. flag2 := true
  224. exit
  225. end if
  226. exit
  227. end if
  228. end for
  229. end if
  230. if flag2 = true then
  231. exit
  232. end if
  233. end loop
  234.  
  235.  
  236. %considerably
  237. elsif ((x >= 790 and y <= 700) and (x < 1180 and y > 600)) then
  238. cls
  239. drawbox (600, 750, 1000, 670, 12)
  240. %skillchecker bar
  241. drawfillbox (800, 500, 805, 610, 12)
  242. pica := Pic.New (800, 500, 805, 610)
  243. spritea := Sprite.New (pica)
  244. Sprite.Show (spritea)
  245. targetx := 652
  246. targety := 752
  247. targetx2 := 752
  248. targety2 := 672
  249. randint (targetx, 600, 900)
  250. loop
  251. flag := false
  252. flag2 := false
  253. drawfillbox (900, 400, 700, 620, 7)
  254. %blue bar
  255. drawfillbox (targetx, targety, targetx + 100, targety2, 11)
  256. for x2 : 600 .. 1000 by 2
  257. Sprite.SetPosition (spritea, x2, 640, false)
  258. delay (5)
  259. if Mouse.ButtonMoved ("down") then
  260. buttonwait ("down", x, y, bnum, updown)
  261. drawfillbox (600, 760, 1000, 670, 7)
  262. drawbox (600, 750, 1000, 670, 12)
  263. if x2 >= targetx and x2 <= targetx + 100 then
  264. randint (targetx, 600, 900)
  265. points := points + 1
  266. color (12)
  267. put points
  268. else
  269. cls
  270. color (12)
  271. locate (50, 60)
  272. if points <= 10 then
  273. put "Well, don't go beyond your skill level next time", " ", "you gained ", " ", points, " ", "points"
  274. elsif points > 10 then
  275. put "Simply, Amazing"
  276. put " you gained", " ", points, " ", "points"
  277. end if
  278. flag2 := true
  279. exit
  280. end if
  281. flag := true
  282. exit
  283. end if
  284. end for
  285. if flag = false and flag2 = false then
  286. for decreasing x3 : 1000 .. 600 by 2
  287. Sprite.SetPosition (spritea, x3, 640, false)
  288. delay (5)
  289. if Mouse.ButtonMoved ("down") then
  290. buttonwait ("down", x, y, bnum, updown)
  291. drawfillbox (600, 760, 1000, 670, 7)
  292. drawbox (600, 750, 1000, 670, 12)
  293. if x3 >= targetx and x3 <= targetx + 100 then
  294. randint (targetx, 600, 900)
  295. points := points + 1
  296. color (12)
  297. put points
  298. else
  299. cls
  300. color (12)
  301. locate (50, 60)
  302. if points <= 10 then
  303. put "Recommend not doing this skill level again", " ", "you gained ", " ", points, " ", "points"
  304. elsif points > 10 then
  305. put "You are pretty good at this!"
  306. put "You gained ", " ", points, " ", "points"
  307. end if
  308. flag2 := true
  309. exit
  310. end if
  311. exit
  312. end if
  313. end for
  314. end if
  315. if flag2 = true then
  316. exit
  317. end if
  318. end loop
  319.  
  320. %tremendously
  321. elsif ((x >= 1220 and y <= 700) and (x < 1600 and y > 600)) then
  322. cls
  323. drawbox (600, 750, 1000, 670, 12)
  324. %skillchecker bar
  325. drawfillbox (800, 500, 805, 610, 12)
  326. pica := Pic.New (800, 500, 805, 610)
  327. spritea := Sprite.New (pica)
  328. Sprite.Show (spritea)
  329. targetx := 652
  330. targety := 752
  331. targetx2 := 752
  332. targety2 := 672
  333. randint (targetx, 600, 900)
  334. loop
  335. flag := false
  336. flag2 := false
  337. drawfillbox (900, 400, 700, 620, 7)
  338. %blue bar
  339. drawfillbox (targetx, targety, targetx + 100, targety2, 11)
  340. for x2 : 600 .. 1000 by 2
  341. Sprite.SetPosition (spritea, x2, 640, false)
  342. delay (1)
  343. if Mouse.ButtonMoved ("down") then
  344. buttonwait ("down", x, y, bnum, updown)
  345. drawfillbox (600, 760, 1000, 670, 7)
  346. drawbox (600, 750, 1000, 670, 12)
  347. if x2 >= targetx and x2 <= targetx + 100 then
  348. randint (targetx, 600, 900)
  349. points := points + 1
  350. color (12)
  351. put points
  352. else
  353. cls
  354. color (12)
  355. locate (50, 60)
  356. if points <= 2 then
  357. put "At least you tried right (recommend not trying again)", " ", "you gained ", " ", points, " ", "points"
  358. elsif points > 2 then
  359. put "You actually hit them, you're a God"
  360. put " you gained", " ", points, " ", "points"
  361. end if
  362. flag2 := true
  363. exit
  364. end if
  365. flag := true
  366. exit
  367. end if
  368. end for
  369. if flag = false and flag2 = false then
  370. for decreasing x3 : 1000 .. 600 by 2
  371. Sprite.SetPosition (spritea, x3, 640, false)
  372. delay (1)
  373. if Mouse.ButtonMoved ("down") then
  374. buttonwait ("down", x, y, bnum, updown)
  375. drawfillbox (600, 760, 1000, 670, 7)
  376. drawbox (600, 750, 1000, 670, 12)
  377. if x3 >= targetx and x3 <= targetx + 100 then
  378. randint (targetx, 600, 900)
  379. points := points + 1
  380. color (12)
  381. put points
  382. else
  383. cls
  384. color (12)
  385. locate (50, 60)
  386. if points <= 2 then
  387. put "Dont worry, no one can do this level", " ", "you gained ", " ", points, " ", "points"
  388. elsif points > 2 then
  389. put "Are you the next ascendant??? Holy shit"
  390. put "You gained ", " ", points, " ", "points"
  391. end if
  392. flag2 := true
  393. exit
  394. end if
  395. exit
  396. end if
  397. end for
  398. end if
  399. if flag2 = true then
  400. exit
  401. end if
  402. end loop
  403.  
  404. %help/how to play
  405. elsif ((x >= 600 and y <= 1050) and (x < 900 and y > 980)) then
  406. cls
  407. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement