Advertisement
Guest User

Untitled

a guest
May 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace XNAGame
  7. {
  8.     class BulletHandler
  9.     {
  10.         static public List<Bullet> Bullets;
  11.  
  12.         class Bullet
  13.         {
  14.             public int X;
  15.             public int Y;
  16.  
  17.             public Bullet(int X,int Y)
  18.             {
  19.  
  20.             }
  21.  
  22.  
  23.         }
  24.         public void Update()
  25.         {
  26.             foreach (Bullet bullet in Bullets)
  27.         {
  28.             bullet.Y--;
  29.         }
  30.  
  31.         }
  32.         public void AddBullet(int x,int y)
  33.         {
  34.             Bullets.Add(new Bullet(x, y));
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement