Guest User

Untitled

a guest
Apr 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.57 KB | None | 0 0
  1. //====================================================
  2. // App.cpp
  3. //====================================================
  4. #include "DragonFireSDK.h"
  5. #include <math.h>
  6. #include "SaveData.h"
  7.  
  8. int font;
  9. char buffer[18+1];
  10. char buffer2[18+1];
  11. int TotalText;
  12. int BallX, BallY;
  13. int optionsfunctions = 0;
  14. int optionspic;
  15. int edit;
  16. int left;
  17. int TotalText2;
  18. int td;
  19. int accButton;
  20. int e2;
  21. int go;
  22. int visible = 1;
  23. int ViewY;
  24. int hide;
  25. int PostionOfBall = 1;
  26. int hide2;
  27. int help;
  28. int TouchY;
  29. int score;
  30. int startgame = 0;
  31. int speed = 4;
  32. int speed2 = 4;
  33. int BallImage;
  34. int check = 0;
  35. int BallView;
  36. int DrawScore;
  37. int SoundHandle;
  38. int bv;
  39. int by;
  40. int arrowleftButton;
  41. int arrowrightButton;
  42. int touchhandler = 0;
  43. int touchcontrolsButton;
  44. int bx;
  45. int enemyimage;
  46. int ev;
  47. int ev2;
  48. int loop;
  49. int ex = 150;
  50. int ex2 = 150;
  51. int ey = 50;
  52. int resethigh;
  53. int bck2;
  54. int randomcheck = 0;
  55. int ey2 = 50;
  56. int bonuson = 0;
  57. int about;
  58. int backtohome1;
  59. int randbonus = 0;
  60. int testobj;
  61. int usingtouch = 1;
  62. int testimage;
  63. int touchhandle;
  64. int pausebutton;
  65. int pop;
  66. int optionsbutton;
  67. int button;
  68. int checker = 0;
  69. int PlayButton;
  70. int leftorright = 0;
  71. int OptionsButton;
  72. int Surface;
  73. int speed4 = 0;
  74. int bonusimage;
  75. int bonuspeed = 0;
  76. int bonus;
  77. int font2;
  78. int pause = 0;
  79. int Stars[64][4];
  80. int gamepaused;
  81. int aboutOn;
  82. int soundon;
  83. int soundoff;
  84. int randomhandler1 = 0;
  85. int randomhandler2 = 0;
  86. int sound = 1;
  87. int pic1;
  88. int MenuButton;
  89. int newhigh;
  90. int backtomenu = 0;
  91. int helpbutton;
  92. int helpOn = 0;
  93. int back[2];
  94. int backtohome;
  95. int ResetPage;
  96.  
  97. //Screens
  98. int StartGame(int id){
  99. startgame = 1;
  100. backtomenu = 0;
  101. check = 0;
  102. return 0;
  103. }
  104. int SoundOn (int id){
  105. if(sound == 1){
  106.  
  107. }else if(sound == 0){
  108. SoundLoop(SoundHandle);
  109. sound = 1;
  110. }
  111. return 0;
  112. }
  113. int accon(int id){
  114. touchhandler = 0;
  115. return 0;
  116. }
  117. int resethighscore(int id){
  118. gdGlobal.nHiScore = 0;
  119. SaveGameData("highscore");
  120. return 0;
  121. }
  122. int SoundOff(int id){
  123. if(sound == 1){
  124. SoundStop(SoundHandle);
  125. sound = 0;
  126. }
  127. return 0;
  128. }
  129. int menu(int id){
  130. check = 0;
  131. score = 0;
  132. startgame = 0;
  133. backtomenu = 1;
  134. ex2 = Random(300);
  135. ey2 = 0;
  136. ex = Random(300);
  137. ey = 0;
  138. ButtonSetVisible(go,0);
  139. ViewSetVisible(button,0);
  140. ViewSetVisible(MenuButton,0);
  141. return 0;
  142. }
  143. int HelpButton(int id){
  144. helpOn = 1;
  145. return 0;
  146. }
  147. int back2(int id){
  148. backtohome1 = 1;
  149. ButtonSetVisible(accButton,0);
  150. ButtonSetVisible(touchcontrolsButton,0);
  151. return 0;
  152. }
  153. int touchcontrols(int id){
  154. touchhandler = 1;
  155. return 0;
  156. }
  157. int gameispaused(int id){
  158. speed = 7;
  159. speed2 = 7;
  160. pause = 0;
  161. ButtonSetVisible(gamepaused,0);
  162. ViewSetVisible(ev,1);
  163. ViewSetVisible(ev2,1);
  164. ViewSetVisible(BallView,1);
  165. return 0;
  166. }
  167. int AboutUs(int id){
  168. aboutOn = 1;
  169. return 0;
  170. }
  171. int arrowright(int id, int event, int x, int y){
  172. if(event == 1){
  173. speed4 = -10;
  174. }else{
  175. speed4 = 0;
  176. }
  177. return 0;
  178. }
  179. int Back(int id){
  180. backtohome = 1;
  181. return 0;
  182. }
  183. int PauseOn(int id){
  184. pause = 1;
  185. ButtonSetVisible(gamepaused,1);
  186. return 0;
  187. }
  188. int options(int id){
  189. optionsfunctions = 1;
  190. return 0;
  191. }
  192. int arrowleft(int id, int event, int x, int y){
  193. if(event == 1){
  194. speed4 = 10;
  195. }else{
  196. speed4 = 0;
  197. }
  198. return 0;
  199. }
  200. int OnButton(int id){
  201. if(touchhandler == 1){
  202. ViewSetVisible(arrowleftButton,1);
  203. ViewSetVisible(arrowrightButton,1);
  204. }else{
  205. ViewSetVisible(arrowleftButton,0);
  206. ViewSetVisible(arrowrightButton,0);
  207. }
  208. TextSetVisible(TotalText2,0);
  209. pause = 0;
  210. ViewSetVisible(ev,1);
  211. ViewSetVisible(ev2,1);
  212. ViewSetVisible(BallView,1);
  213. ViewSetVisible(newhigh,0);
  214. score = 0;
  215. ex2 = Random(300);
  216. ey2 = 0;
  217. ex = Random(300);
  218. ey = 0;
  219. speed2 = Random(20);
  220. speed = Random(20);
  221. ViewSetVisible(button,0);
  222. ButtonSetVisible(go,0);
  223. ButtonSetVisible(MenuButton,0);
  224. ViewSetVisible(bonus,0);
  225. randomhandler1 = 0;
  226. ButtonSetVisible(gamepaused,0);
  227. check = 0;
  228. bonuson = 0;
  229. return 0;
  230. }
  231. //Collision
  232. int CircularCollision(int Circle1,int Circle2)
  233. {
  234. int Circle1Radius=((ViewGetHeight(Circle1)/2)+(ViewGetWidth(Circle1)/2))/2;
  235. int Circle2Radius=((ViewGetHeight(Circle2)/2)+(ViewGetWidth(Circle2)/2))/2;
  236. double Circle1CenterX=Circle1Radius+ViewGetx(Circle1);
  237. double Circle1CenterY=Circle1Radius+ViewGety(Circle1);
  238. double Circle2CenterX=Circle2Radius+ViewGetx(Circle2);
  239. double Circle2CenterY=Circle2Radius+ViewGety(Circle2);
  240. int Distance=sqrt(pow(Circle2CenterX-Circle1CenterX,2)+pow(Circle2CenterY-Circle1CenterY,2));
  241. if (Distance<(Circle1Radius+Circle2Radius)) {
  242. return true;
  243. } else {
  244. return false;
  245. }
  246. }
  247. void AppMain()
  248. {
  249. LoadGameData("highscore");
  250. Surface = DrawAdd(0,0,320,480);
  251. for (int i = 0; i < 64; i++)
  252. {
  253. Stars[i][0]=Random(320);
  254. Stars[i][1]=Random(480);
  255. Stars[i][2]=Random(4)+1;
  256. Stars[i][3]=0x111111*Random(0xF);
  257. }
  258. bx = 0;
  259. by = 0;
  260. score = 0;
  261. PortraitMode();
  262. gamepaused = ButtonAdd("Images/gamepause",0,0,gameispaused,0);
  263. ButtonSetVisible(gamepaused,0);
  264. back[0] = ButtonAdd("Images/back",130,430,Back,0);
  265. ButtonSetVisible(back[0],0);
  266. back[1] = ButtonAdd("Images/back",130,320,back2,0);
  267. ButtonSetVisible(back[1],0);
  268. bonusimage = ImageAdd("Images/bonusball.png");
  269. help = ViewAdd("Images/help.png",0,0);
  270. ViewSetVisible(help,0);
  271. helpbutton = ButtonAdd("Images/help",83,190,HelpButton,0);
  272. pop = SoundAdd("Sounds/sound.snd");
  273. SoundHandle = SoundAdd("Sounds/BackroundMusic.snd");
  274. loop = SoundLoop(SoundHandle);
  275. BallImage = ImageAdd("Images/ball.png");
  276. bonus = ViewAdd(bonusimage,bx,by);
  277. ViewSetVisible(bonus,1);
  278. DrawScore = ImageAdd("Images/score.png");
  279. ButtonSetVisible(pausebutton, 0);
  280. BallView = ViewAdd(BallImage,145, 200);
  281. resethigh = ButtonAdd("Images/resethigh",70,200,resethighscore,0);
  282. enemyimage = ImageAdd("Images/enemy.png");
  283. optionspic = ViewAdd("Images/optionspic.png",30,5);
  284. ViewSetVisible(optionspic,0);
  285. testimage = ImageAdd("Images/Test.png");
  286. testobj = ViewAdd(testimage,0,474);
  287. ev = ViewAdd(enemyimage,ex,ey);
  288. ev2 = ViewAdd(enemyimage,ex2,ey2);
  289. about = ButtonAdd("Images/about",83,270,AboutUs,0);
  290. button = ViewAdd("Images/gameover.png",0,0);
  291. optionsbutton = ButtonAdd("Images/options",83,350,options,0);
  292. newhigh = ViewAdd("Images/gameoverhigh.png",0,0);
  293. go = ButtonAdd("Images/reset",109,240,OnButton,0);
  294. PlayButton = ButtonAdd("Images/play",83,110,StartGame,0);
  295. ViewSetVisible(button,0);
  296. ButtonSetVisible(go,0);
  297. hide = ViewAdd(DrawScore,0,0);
  298. pausebutton = ButtonAdd("Images/pause",260,0,PauseOn,0);
  299. pic1 = ViewAdd("Images/aboutus.png",0,0);
  300. ViewSetVisible(pic1,0);
  301. MenuButton = ButtonAdd("Images/menu",86,180,menu,0);
  302. ButtonSetVisible(MenuButton,0);
  303. soundon = ButtonAdd("Images/soundon", 55, 120,SoundOn,0);
  304. soundoff = ButtonAdd("Images/soundoff",165,120,SoundOff,0);
  305. arrowleftButton = ViewAdd("Images/arrowright1.png",245,415,arrowleft,0);
  306. arrowrightButton = ViewAdd("Images/arrowleft1.png",7,415,arrowright,0);
  307. accButton = ButtonAdd("Images/accon",50,418,accon,0);
  308. ButtonSetVisible(accButton,0);
  309. ViewSetVisible(arrowleftButton,0);
  310. ViewSetVisible(arrowrightButton,0);
  311. ButtonSetVisible(soundon,0);
  312. ButtonSetVisible(soundoff,0);
  313. bck2 = ViewAdd("Images/text.png", 15,10);
  314. font = FontAdd("Jester22Boldff00ff40");
  315. touchcontrolsButton = PushButtonAdd("Images/touchon",50,370,touchcontrols,0);
  316. ButtonSetVisible(touchcontrolsButton,0);
  317. ViewSetVisible(newhigh,0);
  318. font2 = FontAdd("Jester22Boldffff8000");
  319. TotalText=TextAdd(10,8," ",font);
  320. TotalText2=TextAdd(10,430," ",font2);
  321. ViewSetVisible(bonus,0);
  322. ButtonSetVisible(resethigh,0);
  323. }
  324.  
  325. void AppExit()
  326. {
  327. // Application exit code goes here. Perform any clean up your app might
  328. // need to do in the event of interruption by a phone call or the user
  329. // pressing the Home button, or some other event that would cause your
  330. // application to terminate.
  331. }
  332.  
  333. void OnTimer()
  334. {
  335. DrawClear(Surface);
  336. for (int i = 0; i < 64; i++)
  337. {
  338. Stars[i][1]+=Stars[i][2];
  339. DrawSetColor(Surface, Stars[i][3]);
  340. DrawSquare(Surface, Stars[i][0], Stars[i][1], 2, 2);
  341. if (Stars[i][1]>480){
  342. Stars[i][0]=Random(320);
  343. Stars[i][1]=0;
  344. Stars[i][2]=Random(4)+1;
  345. Stars[i][3]=0x111111*Random(0xF);
  346. }
  347. }
  348.  
  349. sprintf(buffer, "Score: %d", score);
  350. TextSetText(TotalText,buffer);
  351.  
  352. sprintf(buffer2, "Highscore: %d", gdGlobal.nHiScore);
  353. TextSetText(TotalText2,buffer2);
  354.  
  355. if (CircularCollision(BallView,ev)){
  356. check = 1;
  357. ex2 = Random(300);
  358. ey2 = 0;
  359. ex = Random(300);
  360. ey = 0;
  361. bx = 0;
  362. by = 0;
  363. bonuspeed = 0;
  364. ViewSetVisible(ev,0);
  365. ViewSetVisible(ev2,0);
  366. ViewSetVisible(BallView,0);
  367. ButtonSetVisible(go,1);
  368. ButtonSetVisible(MenuButton,1);
  369. ViewSetVisible(arrowleftButton,0);
  370. ViewSetVisible(arrowrightButton,0);
  371.  
  372. if(score > gdGlobal.nHiScore){
  373. TextSetxy(TotalText2,70,410);
  374. TextSetText(TotalText2,buffer2);
  375. ViewSetVisible(newhigh,1);
  376. gdGlobal.nHiScore = score;
  377. SaveGameData("highscore");
  378. TextSetVisible(TotalText2,1);
  379. }else{
  380. ViewSetVisible(button,1);
  381. }
  382. }
  383.  
  384. if (CircularCollision(BallView,ev2)){
  385. check = 1;
  386. ex2 = Random(300);
  387. ey2 = 0;
  388. ex = Random(300);
  389. ey = 0;
  390. bx = 0;
  391. by = 0;
  392. bonuspeed = 0;
  393. ViewSetVisible(ev,0);
  394. ViewSetVisible(ev2,0);
  395. ViewSetVisible(BallView,0);
  396. ButtonSetVisible(go,1);
  397. ButtonSetVisible(MenuButton,1);
  398. ViewSetVisible(arrowleftButton,0);
  399. ViewSetVisible(arrowrightButton,0);
  400.  
  401. if(score > gdGlobal.nHiScore){
  402. TextSetxy(TotalText2,70,410);
  403. ViewSetVisible(newhigh,1);
  404. gdGlobal.nHiScore = score;
  405. SaveGameData("highscore");
  406. TextSetVisible(TotalText2,1);
  407. }else{
  408. ViewSetVisible(button,1);
  409. }
  410. }
  411. if (check == 1){
  412. speed = 0;
  413. speed2 = 0;
  414. }
  415. if (CircularCollision(BallView,bonus)){
  416. by = 0;
  417. bx = 0;
  418. bonuspeed = 0;
  419. score = score + 100;
  420. }
  421.  
  422. int ballx,bally;
  423. int eny, enx;
  424. int eny2, enx2;
  425. int AccX, AccY, AccZ;
  426. // Get tilt (accelerometer) data for each axis.
  427. AccX = TiltGetx();
  428. AccY = TiltGety();
  429. // Update the ball's next X and Y values based on G-Force and the strength of gravity:
  430. if(touchhandler == 1){
  431. BallX = ViewGetx(BallView) + speed4;
  432. }else{
  433. BallX = ViewGetx(BallView) + (AccX / 17);
  434. }
  435. BallY = ViewGety(BallView) + (AccY / 30);
  436.  
  437. eny = ViewGety(ev);
  438. eny2 = ViewGety(ev2);
  439. enx2 = ViewGetx(ev2);
  440. enx = ViewGetx(ev);
  441.  
  442. // Don't let the ball go off the screen
  443.  
  444. /*
  445. // Stops for Landscape:
  446. if (BallY >= 290)
  447. BallY = 290;
  448. if (BallY <= 53)
  449. BallY = 53;
  450. if (BallX >= 450)
  451. BallX = 450;
  452. if (BallX <= 0)
  453. BallX = 0;
  454. */
  455.  
  456. // Stops for Portrait(Ball):
  457. if (BallX >= 286)
  458. BallX = 286;
  459. if (BallX <= 0)
  460. BallX = 0;
  461. if (BallY >= 440)
  462. BallY = 440;
  463. if (BallY <= 440)
  464. BallY = 440;
  465.  
  466. // Update the ball's position:
  467.  
  468. ViewSetxy(BallView, BallX, BallY);
  469. ViewSetxy(ev,enx,eny);
  470. ViewSetxy(ev,ex,ey);
  471. ViewSetxy(ev2,ex2,ey2);
  472. ViewSetxy(bonus,bx,by);
  473.  
  474. ey = ey + speed;
  475. ey2 = ey2+ speed2;
  476. by = by + bonuspeed;
  477.  
  478. if (eny >= 440){
  479. ex = Random(300);
  480. ey = -100;
  481. speed = Random(30);
  482. score +=5;
  483. if(sound == 1){
  484. SoundPlay(pop);
  485. }
  486. if(bonuspeed == 5){
  487. checker = 0;
  488. }else{
  489. checker = Random(30);
  490. }
  491. }
  492. if (by >= 440){
  493. by = 0;
  494. bx = 0;
  495. bonuspeed = 0;
  496. }
  497. if (eny2 >= 440){
  498. ex2 = Random(300);
  499. ey2 = -100;
  500. speed2 = Random(30);
  501. score +=5;
  502. if(sound == 1){
  503. SoundPlay(pop);
  504. }
  505. if(bonuspeed == 5){
  506. checker = 0;
  507. }else{
  508. checker = Random(30);
  509. }
  510. }
  511. if(speed == 0 || speed == 1 || speed == 2 || speed == 3 || speed == 4){
  512. speed = 6;
  513. }
  514. if(speed2 == 0 || speed2 == 1 || speed2 == 2 || speed2 == 3 || speed2 == 4){
  515. speed2 = 6;
  516. }
  517. if(randomhandler1 == 1 && checker != 0){
  518. checker = 0;
  519. }
  520. if(checker == 5){
  521. randomhandler1 =1;
  522. checker = 0;
  523. }
  524. if (randomhandler1 == 1){
  525. bx = Random(300);
  526. by = 0;
  527. bonuspeed = 5;
  528. ViewSetVisible(bonus,1);
  529. randomhandler1 = 0;
  530. }
  531. if(left == 1){
  532. BallX = BallX + 5;
  533. }
  534. if (backtohome == 1){
  535. ButtonSetVisible(PlayButton,1);
  536. ViewSetVisible(bck2,1);
  537. ViewSetVisible(help,0);
  538. ButtonSetVisible(about,1);
  539. ViewSetVisible(help,0);
  540. TextSetVisible(TotalText2,1);
  541. ButtonSetVisible(optionsbutton,1);
  542. ButtonSetVisible(helpbutton,1);
  543. ButtonSetVisible(back[0],0);
  544. ViewSetVisible(bonus,0);
  545. backtohome = 0;
  546. bonuson = 0;
  547. }
  548. if(backtohome1 == 1){
  549. ButtonSetVisible(PlayButton,1);
  550. ViewSetVisible(bck2,1);
  551. ViewSetVisible(help,0);
  552. ButtonSetVisible(about,1);
  553. TextSetVisible(TotalText2,1);
  554. ButtonSetVisible(optionsbutton,1);
  555. ButtonSetVisible(helpbutton,1);
  556. ButtonSetVisible(soundon,0);
  557. ButtonSetVisible(soundoff,0);
  558. ViewSetVisible(help,0);
  559. ViewSetVisible(pic1,0);
  560. ViewSetVisible(optionspic,0);
  561. TextSetxy(TotalText2,10,430);
  562. ButtonSetVisible(resethigh,0);
  563. ButtonSetVisible(back[1],0);
  564. ViewSetVisible(bonus,0);
  565. backtohome1 = 0;
  566. bonuson = 0;
  567. }
  568. if (helpOn == 1){
  569. ButtonSetVisible(PlayButton,0);
  570. ViewSetVisible(bck2,0);
  571. ViewSetVisible(help,1);
  572. ButtonSetVisible(about,0);
  573. ViewSetVisible(bonus,0);
  574. ButtonSetVisible(optionsbutton,0);
  575. TextSetVisible(TotalText2,0);
  576. ButtonSetVisible(helpbutton,0);
  577. ButtonSetVisible(back[0],1);
  578. helpOn = 0;
  579. }
  580. if(aboutOn == 1){
  581. ButtonSetVisible(PlayButton,0);
  582. ViewSetVisible(bck2,0);
  583. ButtonSetVisible(back[1],1);
  584. TextSetVisible(TotalText2,0);
  585. ViewSetVisible(pic1,1);
  586. ButtonSetVisible(optionsbutton,0);
  587. ViewSetVisible(bonus,0);
  588. ButtonSetVisible(about,0);
  589. ButtonSetVisible(helpbutton,0);
  590. aboutOn = 0;
  591. }
  592. if (backtomenu == 1){
  593. speed = 0;
  594. speed2 = 0;
  595. TextSetxy(TotalText2,10,430);
  596. TextSetVisible(TotalText2,1);
  597. ViewSetVisible(button,0);
  598. ViewSetVisible(BallView, 0);
  599. ViewSetVisible(ev, 0);
  600. ViewSetVisible(ev2, 0);
  601. ButtonSetVisible(pausebutton, 0);
  602. ButtonSetVisible(gamepaused,0);
  603. ViewSetVisible(hide, 0);
  604. ViewSetVisible(bonus,0);
  605. ButtonSetVisible(optionsbutton,1);
  606. TextSetVisible(TotalText,0);
  607. ViewSetVisible(testobj, 0);
  608. ViewSetVisible(newhigh,0);
  609. ButtonSetVisible(touchcontrolsButton,0);
  610. ButtonSetVisible(accButton,0);
  611. TextSetVisible(TotalText2,1);
  612. ViewSetVisible(bck2,1);
  613. ButtonSetVisible(helpbutton,1);
  614. ButtonSetVisible(about,1);
  615. ButtonSetVisible(PlayButton,1);
  616. ButtonSetVisible(MenuButton,0);
  617. ButtonSetVisible(go,0);
  618. backtomenu = 0;
  619. }
  620. if (startgame == 0){
  621. speed = 0;
  622. speed2 = 0;
  623. ViewSetVisible(BallView, 0);
  624. ViewSetVisible(ev, 0);
  625. ViewSetVisible(ev2, 0);
  626. ButtonSetVisible(pausebutton, 0);
  627. ViewSetVisible(hide, 0);
  628. TextSetVisible(TotalText,0);
  629. ViewSetVisible(testobj, 0);
  630. }
  631. if (startgame == 1){
  632. if(touchhandler == 1){
  633. ViewSetVisible(arrowleftButton,1);
  634. ViewSetVisible(arrowrightButton,1);
  635. }
  636. ButtonSetVisible(PlayButton,0);
  637. ViewSetVisible(BallView, 1);
  638. ButtonSetVisible(about,0);
  639. ViewSetVisible(ev, 1);
  640. ViewSetVisible(ev2, 1);
  641. ButtonSetVisible(optionsbutton,0);
  642. ViewSetVisible(hide, 1);
  643. ButtonSetVisible(pausebutton, 1);
  644. ViewSetVisible(testobj, 1);
  645. ViewSetVisible(bck2,0);
  646. TextSetVisible(TotalText,1);
  647. TextSetVisible(TotalText2,0);
  648. ButtonSetVisible(helpbutton,0);
  649. startgame = 3;
  650. }
  651. if(pause == 1){
  652. speed = 0;
  653. speed2 = 0;
  654. ViewSetVisible(ev,0);
  655. ViewSetVisible(ev2,0);
  656. ViewSetVisible(BallView,0);
  657. }
  658. if(optionsfunctions == 1){
  659. ViewSetVisible(optionspic,1);
  660. ButtonSetVisible(accButton,1);
  661. ButtonSetVisible(PlayButton,0);
  662. ButtonSetVisible(touchcontrolsButton,1);
  663. ViewSetVisible(bck2,0);
  664. ButtonSetVisible(back[1],1);
  665. TextSetVisible(TotalText2,1);
  666. ButtonSetVisible(optionsbutton,0);
  667. ViewSetVisible(bonus,0);
  668. ButtonSetVisible(about,0);
  669. ButtonSetVisible(helpbutton,0);
  670. ButtonSetVisible(resethigh,1);
  671. ButtonSetVisible(soundon,1);
  672. ButtonSetVisible(soundoff,1);
  673. TextSetxy(TotalText2,65,270);
  674. optionsfunctions = 0;
  675. }
  676. }
Add Comment
Please, Sign In to add comment