CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Java Tetris

  1. #1
    Join Date
    Mar 2008
    Posts
    1

    Java Tetris

    Hi, is there anyone knows the coding for the features which allows user to control the size of the "tetris" table and the speed of the game? Need some help here, thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    17

    Re: Java Tetris

    Read the site's insides http://www.bodo.com/Applets/Blocks/

  3. #3
    Join Date
    Sep 2006
    Location
    Eastern, NC, USA
    Posts
    907

    Re: Java Tetris

    Are you using Swing or AWT? If Swing, for size, I usually use the setPreferredSize method which takes a Dimension variable. To change the speed of the game, again if Swing I change the time period of a Swing Timer object. Good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured