Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- santafire = {} -- Create a table to hold all the bullets
- -- Then, when you want to fire a bullet, do:
- table.insert(santafire, sShot(player.x+25, player.y+25))
- -- and to remove it do:
- table.remove(santafire, reference to the bullet)
- -- probably the bullet itself would call this code, and pass itself
Advertisement
Add Comment
Please, Sign In to add comment