Sunday, November 30, 2008

Board Port to BlueTrip CSS

I finished porting the playing board over to blue trip. Although it's debatable whether the play area looks any better or not, the point is to make it consistent with the css framework I am using. Here are several screenshots in different browsers.

Firefox:


IE:


Safari:
Okay, it is totally screwed up via safari + facebook, but without Facebook's filter:

Thursday, November 27, 2008

BlueTrip CSS

I added a css framework to the project, using BlueTrip CSS framework, which is a combination of BluePrint CSS and some other frameworks. This gives the pages a nice consistent look.

I also finished the majority of the session handling. I still have to work on making sure Facebook can work with the session handling as well.

Tuesday, November 18, 2008

New Layout/Interface

I've been working on an SVG using Inkskape for the board, which will be an alternative interface from the one rendered completely in HTML. It is intended to look a bit nicer than the HTML version and have snazzier graphics/animations. Here's a sampe--I'll send you the SVG if you want.

Friday, October 24, 2008

FBJS Animation Library

I completed more work on FBJS migration, but there is still a persistent issue where it seems the event handlers for bet clicking stop functioning after the first roll--it is really frustrating. Anyway, I also implemented animation effects for opacity and background color using Facebook's Animation library which uses jQuery-style function chaining.

Sunday, October 19, 2008

FBJS Blarg!

I've spent the better part of three hours trying to migrate the Javascript code I have to use the FBJS libraries. Although I'm disappointed it has taken so long, the task is beginning to bear fruit as I have almost eliminated all the bugs, and learned a great deal more about FBJS in the process. I am sure the next time I write some new FBJS code, I will be much quicker!

Still left to fix:
  • Integrating Fb:js-string identifiers to render FBML or using the beta FBJS function setInnerXHTML
  • Making sure payout hints render correctly/perhaps using the FBJS Animation libraries to perform the fading
Once that is done, there are still some key features to implement including Facebook user registration, but this should be much quicker than the time I took to implement it with the Thirteen Card Game application.

Saturday, October 18, 2008

Further Smarty-rization and Internationalization

Tonight I moved more code implement via templates, including separate Smarty templates for css, html, and ajax responses. Additionally, I implemented an database-driven internationalization engine, for easy localization in the future. The text shown to the user will be based on language code. I added tables to maintain text constants, languages, and text strings by language.

Smarty, Ajax Updating, DB backend

Today I completed integration of the Smarty Template engine and incorporated Ajax updating. I plan to tighten up the client-side code and work on Facebook support next.

Additionally, greater integration with database support has been added, storing someone's bank in the database, as well as loading payout rates from a database. This will facilitate gaming-locales which I plan to implement later, as well as group-tables, where multiple individuals will be able to bet at the same time.

Todo
  • FBJS support
  • FB Ajax support
  • PHPUnit Tests
Current Screenshot: