Advertisement
gnamp

Atri Egg Catch draft 1 dm

Dec 8th, 2015
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. rem Generated 08/12/2015 08:20:30 by Visual bB Version 1.0.0.548
  2. rem **********************************
  3. rem *<filename> *
  4. rem *<description> *
  5. rem *<Dominic McGough> *
  6. rem *<contact info> *
  7. rem *<license> *
  8. rem **********************************
  9.  
  10.  
  11. playfield:
  12. ................................
  13. XXX...XXXXX..XX.XXXX............
  14. X.XX..X.X.X.X...X..........X....
  15. X..X..X.X.X..XX.X.XX.....XX.XX..
  16. X.XX..X...X.....X..X.......X....
  17. XXX...X...X.....XXXX............
  18. ............XXX.................
  19. ....X.......X..X.XXX.XXX..XX....
  20. ..XX.XX.....XXXX.X.X.X.X.X......
  21. ....X.......XX....XX..XX..X.....
  22. ............XXXX.XXX.XXX.XX.....
  23. end
  24.  
  25.  
  26. COLUBK = $3E
  27. COLUPF = $4E
  28. player0x=50:player0y=50
  29. player1x=20:player1y=20
  30. missile0height=4:missile0y=255
  31. NUSIZ0 = 16
  32. score = 20
  33.  
  34.  
  35. sprites
  36.  
  37. basket
  38. player0:
  39. %00111100
  40. %01100110
  41. %01000010
  42. %01000010
  43. %11000011
  44. %11111111
  45. %10000001
  46. %01111110
  47. end
  48.  
  49. egg
  50. player1:
  51. %00111100
  52. %01000010
  53. %10111001
  54. %10100001
  55. %01010110
  56. %01010010
  57. %00100100
  58. %00011000
  59. end
  60.  
  61. if missile0y>240 then goto skip
  62. missile0y=missile0y-2:goto draw_loop
  63.  
  64. skip
  65. if joy0fire then missile0y = player0y-2:missile0x = player0x+4
  66.  
  67. draw_loop
  68. drawscreen
  69.  
  70. rem if player1y<player0y then player1y=player1y+1
  71. rem if player1y>player0y then player1y=player1y-1
  72. rem if player1x<player0x then player1x=player1x+1
  73. rem if player1x>player0x then player1x=player1x-1
  74. if player1y < 90 then player1y=player1y+1
  75. rem else player1y = 0
  76.  
  77. rem player1x=rand/2 goto jump
  78. rem if player1y > 300 then player1y=55
  79. player1x=player1x:player1y=player1y
  80.  
  81. if joy0up then player0y=player0y-1:goto jump
  82. if joy0down then player0y=player0y+1:goto jump
  83. if joy0left then player0x=player0x-1:goto jump
  84. if joy0right then player0x=player0x+1:goto jump
  85.  
  86. rem if collision(missile0,player1) then score=score+1:player1x=rand/2:player1y=0:missile0y=255
  87. if player1y > 80 then score=score-1:player1x=rand/2:player1y=0:goto jump
  88. if collision(player0,player1) then score=score+1:player1x=rand/2:player1y=0:missile0y=255
  89.  
  90. jump
  91. goto sprites
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement