Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace XNAGame
- {
- class BulletHandler
- {
- static public List<Bullet> Bullets;
- class Bullet
- {
- public int X;
- public int Y;
- public Bullet(int X,int Y)
- {
- }
- }
- public void Update()
- {
- foreach (Bullet bullet in Bullets)
- {
- bullet.Y--;
- }
- }
- public void AddBullet(int x,int y)
- {
- Bullets.Add(new Bullet(x, y));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement