Added: 1 year ago
From: dhoyt2010
Views: 740
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (14)

Sign In or Sign Up now to post a comment!
  • 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 :).

  • 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?

  • @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.

  • @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 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.

  • 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.

  • @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.

  • Great tutorial. Now i'm hard at work making more shapes :D I'm looking forward to some more tutorials from you.

  • @MMastrup Thanks very much. Keep practicing and my next tutorial is on Matrices which will be very fun! :).

  • Hey these are great tutorials, have you released any games on Xbox360 or WP7? If so I would be interested in knowing.

    I have to admit I dont think I've seen such a detailed tutorial which is great! It's not just copying code its acutally learning what it means and does *likes* from me :)

  • @sdtuu Thanks, I appreciate the comments :D. I have not released any games yet however I have a plan to release a multiplayer game on the xbox live service either this year or next year. Yes, it took quite a lot of effort on my part however I really did enjoy creating this tutorial and the point is no matter what it took, as long as I had fun and I certainly did. Be sure to check out more upcoming tutorials in the future.

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