Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. addMorph: aBullet
  2.     | randX randY |
  3.     super addMorph: aBullet.
  4.     randX := (bounds origin x to: bounds corner x - aBullet width) atRandom.
  5.     randY := (bounds origin y to: bounds corner y - aBullet height) atRandom.
  6.     aBullet position: randX @ randY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement