Download Here: Brick Out Game c# Language
Video Tutorial:
Ball.cs File Code
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace BrickOut
{
/// <summary>
///
/// </summary>
public class Ball : GameObject
{
public int XStep = 5;
public int YStep = 5;
public Ball(string fileName) : base(fileName)
{
//
// TODO: Add constructor logic here
//
}
public Ball() : base("ball.gif")
{
//
// TODO: Add constructor logic here
//
}
public override void Draw(Graphics g)
{
base.Draw(g);
}
public void Move()
{
Position.X += XStep;
Position.Y += YStep;
}
}
}
Brick.cs Code
using System;
namespace BrickOut
{
/// <summary>
/// Summary description for Brick.
/// </summary>
public class Brick : GameObject
{
public Brick() : base("brick.gif")
{
//
// TODO: Add constructor logic here
//
}
}
}
Video Tutorial:
Ball.cs File Code
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace BrickOut
{
/// <summary>
///
/// </summary>
public class Ball : GameObject
{
public int XStep = 5;
public int YStep = 5;
public Ball(string fileName) : base(fileName)
{
//
// TODO: Add constructor logic here
//
}
public Ball() : base("ball.gif")
{
//
// TODO: Add constructor logic here
//
}
public override void Draw(Graphics g)
{
base.Draw(g);
}
public void Move()
{
Position.X += XStep;
Position.Y += YStep;
}
}
}
Brick.cs Code
using System;
namespace BrickOut
{
/// <summary>
/// Summary description for Brick.
/// </summary>
public class Brick : GameObject
{
public Brick() : base("brick.gif")
{
//
// TODO: Add constructor logic here
//
}
}
}
No comments:
Post a Comment