Watch for Falling Blocks: Take TetrisJFX for a Spin!
Join the DZone community and get the full member experience.Join For Free
you may know that i've been progressively building a tetris game in javafx on this blog, the most recent post being game over: improving upon the compiled javafx tetris program . in each post i've shown you the code and pointed out some highlights. since then i've added some finishing touches, and would be honored if you've try it out and give me (kind) feedback for improving it further. the screenshot below shows what tetrisjfx should look like when you click this java web start link . by the way, you'll need the jre (java runtime environment) 1.5 or later. also, please keep in mind that the javafx script jar files will be included with the jre at some point. until then please understand that when you click this link those jar files will be downloaded as well, causing a bit of a delay.
in addition to clicking the image buttons at the bottom of the game, you can use keystrokes (hover over the images to see tooltips that tell you what the keystrokes are). in a future version, the arrow keys will be used for game control. i also plan to provide the ability to cause the current tetromino to fall faster. by the way, the tetrominoes fall progressively faster as your score increases, so be warned. :-)
if you have any questions or input for improvements, please post a comment. also, if you'll be at javaone 2008, please attend my javafx script programming language tutorial session and introduce yourself afterward!
javafx script: dynamic java scripting for rich internet/client-side applications
immediate ebook (pdf) download available at the book's apress site
Opinions expressed by DZone contributors are their own.