Advertisement
Guest User

Untitled

a guest
Jul 11th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.Xna.Framework.Graphics;
  7. using Microsoft.Xna.Framework;
  8.  
  9. namespace Breakout_Clone
  10. {
  11.     public class Ball : GameObject
  12.     {
  13.         public Paddle paddle;
  14.         public Vector2 Velocity;
  15.         public Random random;
  16.         public override void Move(Vector2 amount)
  17.         {
  18.             base.Move(amount);
  19.            
  20.         }
  21.         public void Ball(Paddle paddle)
  22.         {
  23.            
  24.            
  25.         }
  26.         public void Launch(float speed)
  27.         {
  28.             Position = new Vector2(paddle.Texture.Width / 2 - 400, paddle.Texture.Height / 2 - 400);
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement