I’ve just finished the first version of a port of an old game of mine to get it running in Facebook. If you have a minute, please pop some bubbles away right here:
So far it uses the friends list to highlight your friends highscores in the leaderboard table and posts into the news feed some post if you made it into the top 500 highscores. The game is a first step to get feet wet with Facebook integration.
Thanks
Martin
P.S. And thanks to .Tom. for his help with the FB api and his samples!!!
But the iframe width is bugged at least on opera 10.1
It cuts the game vertically in the middle, forcing me to use the “fit to screen” feature from opera to then play a micro sized version of the game … (the vertical cut is at the same position as in the screenshot above and the resulting player size is ± exactly that iframe size we see on the sceenshot there)
Your highscore list / unity btw have some serious problems with european non-ascii letters. ASCII ↔ UTF conversion problem?
I now tested something: I opened the frame where no player is in a new tab.
Result is that the player looks and works all fine including the add banner on a fully white page.
The problem thus is very likely the website code on the facebook end, its iframe / div setup
my guess, its this iframe enclosing tag: <div style="position: relative; overflow: hidden"> in combination with the not so smart smartSizingFrameAdded call in the js
Yeah, thanks for pointing out. Just saw the table was in some weird swedish iso whatever standard. Changed it now to unicode. Let’s see if that helped.
Fun game, had the frame glitch or whatever as well…refresh fixed it. Also Firefox crashed once on exit, hard to know if that’s something to do with the game or what.
I just tried it in a fresh install of Safari 4.04 and the unity plug-in on OSX 10.6.2 and it keeps reloading the window not allowing me to even get the viewport.
Good to see there are more and more Unity games coming to Facebook. At some point Unity and Facebook will have to give in and give us more supporting features for integration Unity on Facebook and Facebook in Unity
It reloads a lot with osx 10.6 but after a while it calms down.
Great little game. But the window that pops up after gameover is placed behind the game.