Archive for December, 2009

JavaFX Games: Q*Bert (QBert) and Sokoban

I just attended a JavaFX university class, which got me motivated to create 2 JavaFX Games:

Q*Bert

Sokoban
(use page-up / down to change levels, space to restart level)

If someone would like to see the source-code, please leave a comment. :)

Tags: ,

Facebook Connect: Display login button only when not connected to site

Currently i’m testing the features of Facebook Connect and i ran into troubles:

  • how to display the login button only if a user has not connected
  • how to display the image only if a user has connected

My simplest solution was to add some custom css classes:

  • fb-connecting: when the status of facebook connect is not known. e.g. display a “connecting…” message
  • fb-not-connected: when user is not connected to facebook. e.g. show connect button
  • fb-connected: when user is connected to facebook. e.g. show user picture and name

View the demo page

Read the rest of this entry »

Tags: , ,