The Source for Java Technology Collaboration
User: Password:



Bruno Ghisi

Bruno Ghisi's Blog

Marging a FX Tetris at JavaOne!

Posted by brunogh on April 27, 2008 at 06:10 PM | Comments (11)

Marge (Java Bluetooth Framework) got a mini talk in Community Corner. It will be on Wednesday at 3:30 pm. If are you interested in Bluetooth, JSR 82 (Java Apis for Bluetooth) and Marge, do not miss that! We have integrated a Bluetooth mobile controller for a nice James Weaver's compiled JavaFX Script tetris game! Thanks, Jim!

Here is a preview (updated):

The old video is at http://www.youtube.com/v/ZvVx6RGjCjM

It will be easy to find Marge:

margeinthebackpack.jpg

Here is the last tip, keep an eye on the Mobile and Embedded Wiki page for JavaOne!

I am very excited to meet new people! See you in San Francisco!

Bruno Ghisi


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Cool. I'd like to see if I can use a wiimote as a control. do you have this source anywhere yet?

    Posted by: wsnyder6 on April 28, 2008 at 09:12 AM

  • Hello! I think you can! The protocol is very simple and basically you will have to change the receiveMessage(byte[] b) method in the TetrisBluetoothServer for moving right, left, rotating and starting the game or reimplement CommunicationListener interface and set your new class. The code is in the SVN demo folder, called BluetoothJFXTetris. We are still updating some stuff as we sync with Jim Weaver, but take a look and please let us know if you have problems or when you have done! Very nice idea! I would love to see that or do that, but I do not have a Wiiremote. Are you going to use that java libs available?
    Cheers,
    Bruno

    Posted by: brunogh on April 28, 2008 at 09:44 AM

  • Sweet. I'll have to take a few minutes and get it working with WiimoteJ.
    (http://www.wiili.org/forum/wiiremotej-f68.html)

    Posted by: wsnyder6 on April 28, 2008 at 11:21 AM

  • Awesome! WiimoteJ rocks! Let me know when done, so we can promote it in the Marge demo tab (https://marge.dev.java.net/servlets/ProjectProcess?tab=3). I forgot to tell you, the application is running a default service (D0FFBEE2D0FFBEE2D0FFBEE2D0FFBEE2) that Wiimote will have to connect, otherwise we can make the Tetris app inquiry for the devices and connect them. Also, later today I gonna commit a jar lib snapshot of Bluecove BlueZ (http://code.google.com/p/bluecove/) to make it working on Linux too. Are you going to JavaOne?

    Posted by: brunogh on April 28, 2008 at 11:29 AM

  • Due to a new version of the Tetris game with new cool stuff, the video was updated:
    http://www.youtube.com/watch?v=e5qh5ESOjkA
    Old video:
    http://www.youtube.com/v/ZvVx6RGjCjM

    Posted by: brunogh on April 28, 2008 at 09:59 PM

  • I am not going to JavaOne. :( This is compiled JavaFX, right? Does the new JFX plugin work only with NB 6.1, or just the newer daily builds?
    Thanks!

    Posted by: wsnyder6 on April 29, 2008 at 06:06 AM

  • To answer myself - yes it looks like the daily JavaFX plugin only uses daily NB.6.1 builds...:)

    Posted by: wsnyder6 on April 29, 2008 at 06:12 AM

  • Hmmm, no problem! This is compiled JavaFX and you need the daily builds to make it work in NetBeans 6.1 and the JavaOne compiler branch.

    Basically download all the nbm files from http://deadlock.netbeans.org/hudson/job/JavaFX_NB_daily/ and install via NetBeans Plugins. After that, download javafxc.jar and javafxrt.jar from http://openjfx.java.sun.com/hudson/job/openjfx-compiler-javaone/ and substitute in NETBEANS_PATH\javafx\modules\ext\compiler\lib dir to make it work.
    Thanks,
    Bruno Ghisi

    Posted by: brunogh on April 29, 2008 at 06:14 AM

  • Bruno, I wont be able to do anything with this - getting the new compiled plugin running on my machine (a mac) is turning out to take too much time that I have at the moment. Wish it could be easier to get up and running with Java on the Mac...

    Posted by: wsnyder6 on April 29, 2008 at 05:55 PM

  • VERY cool!

    What I'd like to see now is Marge + Sensor API for controlling something. e.g. Tetris control by physically tipping phone left, right, forward, backwards, etc...

    Could be a world of fun!

    Posted by: davjoh on April 30, 2008 at 12:51 AM

  • wsnyder6: No problem. If you got time, let me know... if I got a wiiremote, I will try that too.
    davjoh: that would be awesome!I t is possible to use a phone with an accelerometer.
    If anybody is reading this comment, I am accepting wiiremotes or phones with accelerometers! :)

    Posted by: brunogh on April 30, 2008 at 06:41 AM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds