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;
- using System.Threading.Tasks;
- using Microsoft.Xna.Framework.Graphics;
- using Microsoft.Xna.Framework;
- namespace Breakout_Clone
- {
- public class Ball : GameObject
- {
- public Paddle paddle;
- public Vector2 Velocity;
- public Random random;
- public override void Move(Vector2 amount)
- {
- base.Move(amount);
- }
- public void Ball(Paddle paddle)
- {
- }
- public void Launch(float speed)
- {
- Position = new Vector2(paddle.Texture.Width / 2 - 400, paddle.Texture.Height / 2 - 400);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement