Click here to Skip to main content
13,191,642 members (65,403 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.4K views
242 downloads
2 bookmarked
Posted 11 Oct 2017

C# Break-The-Bricks Game

, 11 Oct 2017
Rate this:
Please Sign up or sign in to vote.
A game written in C# Windows Form

Introduction

I'm currently a student studying computer science at university. In my spare time, I like to write many games on Windows Form, XNA, Unity, etc. I am releasing a small game called Break-The-Breaks which other developers can continue developing further or get an idea of how I developed it.

Using the Code

This is a nice and simple game. There are a few variables and objects:

private Rectangle[] VectRectangles;  // Stores the rectangles
private RectangleShape[] BrickArray; // Stores Microsoft's power pack rectangle shapes    
private int speedLeft = 10;          // Speed of the ball x
private int speedTop = 50;           // Speed of the ball y
private int speedBall = 40;          // Speed of the timer interval

Points of Interest

Instead of using standard rectangles, I used Microsoft's PowerPack so I can use different fill styles such as solid, trellis and divot (there are many more to choose from) to represent the rectangle being hit. 

History

  • v.01- v 0.6 - Added Microsoft's PowerPack's rectangles

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Member 12161319
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Comments and Discussions

 
PraiseMemories... Pin
Member 1277334612-Oct-17 22:19
memberMember 1277334612-Oct-17 22:19 
GeneralRe: Memories... Pin
Member 1216131915-Oct-17 8:28
memberMember 1216131915-Oct-17 8:28 
Questionmissing something? Pin
dmjm-h12-Oct-17 10:40
memberdmjm-h12-Oct-17 10:40 
AnswerRe: missing something? Pin
Member 1216131915-Oct-17 8:26
memberMember 1216131915-Oct-17 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171017.2 | Last Updated 11 Oct 2017
Article Copyright 2017 by Member 12161319
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid