My First Project

Anyone having fun with XNA I have my tetris clone coming along quite nicely..

http://str8dog.shackspace.com/NotmyTetris.png

Right now its based on fixed time steps, I am struggling to wrap my head around how to let the game run real time and get the blocks to not fly down the screen.

The spacewar example is awesome for picking up how to do various bits like sound, texture management and user input. Hell some of the classes I just swiped outright they were so easy to use.

What have you folks been able to do so far


Answer this question

My First Project

  • B Langston

    Thanks to Mitch for answering my question on another message board. My tetris rocks!

  • msdate

    To keep the speed down while using a small fixed timestep, just wait a specified number of frames between lowering your pieces. Say: frameCounter++; if (frameCounter > 15) {MovePieces(); frameCounter = 0;}

    Also, a real Tetris field is 10 blocks wide, no more, no less :)

  • Markus Ringl

    Feel free.

  • Parham!

    Ill do one better and give you the source: http://str8dog.shackspace.com/MyTetris.zip

    I take no credit for the game logic. This is pretty much a direct port of .NETTrix found in the book Beginning .NET Game Programming in C# by David Weller...

    I also swiped quite a bit of code from spacewar.

  • MaggieChan

    That is a clever approach, but I want to base the movement on a specific time span.. so that level 1 the block is forced down every second, level 2 the block is forced down every .5 second and so on..

    10 blocks you say heresy!

  • davidw

    Hey man can I/you post this screenshot at

    http://xbox360homebrew.com/photos/default.aspx

    in the personal projects gallery



  • George Waters

    NotMyself wrote:
    Thanks to Mitch for answering my question on another message board. My tetris rocks!


    Could you please post the answer to your problem here, or at least a link to the other message board.

    Thanks!

  • My First Project