XNA 4.0 Beginner Tutorials - Breakout
I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials on the XNA 4.0 Tutorials page of my web site. I will be making my version of the project available for download at the end of each tutorial. It will be included on the page that links to the tutorials.<br /> <br /> This is a beginner tutorial on creating a Break Out style game. I will be writing tutorials in the future on creating the game using object-oriented programming principles. The tutorial is more to introduce XNA with a more or less complete game. It won't go into state management but it will be a functional brick breaking game.<br /> <br /> To get started create a new XNA 4.0 game and call it BreakingOut. In the Break Out game there are three different game objects. There is the ball, the paddle, and the bricks. I will start by adding the paddle. The paddle is at the bottom of the screen. The object is to bounce the ball off the paddle and break the bricks on the screen. When all of the bricks have been destroyed game play moves to the next level. The paddle will be controlled by either the left and right arrow keys on the keyboard, the left thumb stick on a game pad or the direction pad on a game pad. You need to make sure that the paddle does not go off the left or right edges of the screen.
This tutorial is hosted externally
http://xnagpa.net/xna4beginner.php
I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials on the XNA 4.0 Tutorials page of my web site. I will be making my version of the project available for download at the end of each tutorial. It will be included on the page that links to the tutorials.<br />
<br />
This is a beginner tutorial on creating a Break Out style game. I will be writing tutorials in the future on creating the game using object-oriented programming principles. The tutorial is more to introduce XNA with a more or less complete game. It won't go into state management but it will be a functional brick breaking game.<br />
<br />
To get started create a new XNA 4.0 game and call it BreakingOut. In the Break Out game there are three different game objects. There is the ball, the paddle, and the bricks. I will start by adding the paddle. The paddle is at the bottom of the screen. The object is to bounce the ball off the paddle and break the bricks on the screen. When all of the bricks have been destroyed game play moves to the next level. The paddle will be controlled by either the left and right arrow keys on the keyboard, the left thumb stick on a game pad or the direction pad on a game pad. You need to make sure that the paddle does not go off the left or right edges of the screen.
Related Tutorials
Procedural Generation of 2D Tile Maps in Games
The article explains how to build a procedural 2D cave map generator using cellular automata. It covers map representat…
Localizing A Game Into French — Which Variant Should You Choose?
So, you’re making an awesome indie game, and now you’re thinking about localizing it into French? Great idea! There ar…
How Long Does It Take To Localize An Indie Game?
So you’re planning on localizing your indie game, but you’re not sure how much time to schedule in. While the timing o…
Creating game videos: best practices and pitfalls to avoid
Game video production: practical tips on how to create a game trailer or teaser that you can be proud of. Give your aud…
Adopting CI/CD: How Midwinter Entertainment iterates at speed with the help of IMS
Game development was once like one long sprint: a huge effort until you reached the finish line — at which point you co…
GameDev.net
5 Things to Consider When Making a Video to Promote Your App or Game
How can you show an app or game in your video in a way that attracts new users? Let’s take a look at what to go by when…
Discussion