Advertisement
IBeetle

skilltester 4 final

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