Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

XNA Puzzle Game - Part 7 of 7

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
716 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 6, 2011

Tetris concept was created and invented by Alexey Pajitnov.

In this tutorial will show how you can get started with a brand new XNA Project in scratch on a puzzle game concept known as Tetris.

You can download XNA Game Studio 3.1 at http://www.microsoft.com/downloads/details.aspx?familyid=80782277-d584-42d2-8...

Any questions and comments you can also email me at dhoyt2010@gmail.com.

Please view the video in HD resolution.

Enjoy

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (dhoyt2010)

  • Amazing tutorial but i'm stuck on making different rotations for different shapes. I have a line shape and the T shape make but i can't figure out how to make them rotate right. Any help would be great :) thanks in advance

  • @SuperJTutorials In the HandleInput() method contains functionality that you can modify for the rotation that would get stored in the list of Rectangles. To create a new rotation would be to adjust the x and y coordinates of the Rectangle objects that gets stored in the "_currentShape" variable.

  • Well the comment got too long. I will continue here.

    Because the method is not supported the game cannot run. I'm doing a little bit of research but without luck so far.

    Hope someone can have an answer for this.

    Thanks for the tutorial.

  • @Bojex I appreciate the comments. There are many approaches to getting the same result. In the case of .NET you have many options. I'm just showing only one approach to a particular algorithm and figure you would find an alternative :).

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • @Bojex Great, glad that you can make it work on Xbox. I never tried it myself, I've only developed games on Windows. You can just refer to me as "Duane Hoyt", thanks.

  • @dhoyt2010 Hi, thanks for the answer. Well yeah that can be done, what i did instead was using the First Method that worked exactly the same and got the same result. The game is now working perfectly on Xbox, i will upload the video later. Can i know your full name so we can put you in our thesis acknowledgement ?

  • @Bojex Mainly the Find() method is just searching for an item by a lambda express so for example "p => p.Y == block.Y" is returning a block where the Y property matches. You can easily replace it with another nested foreach loop if you can't use the Find() method.

  • Hello there.

    Well what @javikuz didn't say was that he and myself are writing a tetris-clon in XNA 4.0 for Xbox 360 and we started with your code here, so we really appreciate the tutorial. It's really excellent, we will give you the credit you deserve when everything it's finished.

    Something i wanted to mention was that for Xbox the Find method of list is not supported. You can find it in the first foreach inside DropBlocks. I wanted to ask you if you know of an alternative for using this?

  • @javikuz Thank you very much for checking out XNA 4.0 :D. I would expect that most of the functionality would be the same. In my next tutorial on Matrices I would like to demonstrate using 4.0.

  • Hey the tutorial was excellent and i really learned a lot from it, really appreciate it. This tutorial works just fine with XNA 4.0 if anyone is wondering, only two issues.

    1. You will have to make your own cube for the tutorial, maybe use photoshop, or even paint, im not really sure but i did not have the option to make a bitmap in XNA.

    2. In the CheckDrop method when you define the bottomBlock you have to use descending instead of ascending.

    The rest of the code is 100% solid for XNA 4.0.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more