Hi
Games gather many people in wonderfl.net these days.
For example people around the world was crazy about "Particle Ping Pong" this month.
What's interesting about games in wonderfl.net is that people playing games start to FORK it and try to modify it, first cheat, and second, try to build their own game.
That's wonderful. We wish more people to switch from just playing to creating.
Well, games are more fun with a ranking feature, but you needed a server to do it.
Not now.
Yesterday we released a new API, and a new library which makes it easy to use the API from Flash.
Score Ranking API and library.
Example usage of the library: Wonderfl Score API Simple Test
To create a form to submit score:
import net.wonderfl.score.basic.BasicScoreForm;
new BasicScoreForm( this ); // "this" is the document class.
And to create a score ranking viewer:
import net.wonderfl.score.basic.BasicScoreRecordViewer;
new BasicScoreRecordViewer(this);
way simple isn't it!
Score Ranking Library asdoc is here: Score Ranking Library asdoc
---
The Score Ranking library is a frontend of the serverside API.
See the serverside API documents here: GET /score/<appid>, POST /score/<appid>
To use the Score Ranking APIs inside wonderfl, API key and appid is fetched from FlashVars, so you don't have to worry about it.
The library doesn't support using the API from outside wonderfl now, but it will be supported before tomorrow :-)
---
To record your score with your name at once, and to enable to create more social codes, wonderfl adds your username and user-icon in FlashVars too.
You can disable it from your account page.(This feature is disabled when you embed the code outside wonderfl)
---
Tell us if you want any feature in wonderfl which makes it easier for you to create games or anything.
---
こんにちは!
最近ゲームがwonderflで人気を集めています。
この1ヶ月は、パーティクル崩しが、wonderfl至上最高のPVをたたき出し、twitterでも話題になっていますね。
wonderflのゲームでおもしろいのは、ゲームを遊ぶ人が、FORKしてゲームをいじり始め、最初はチートしてクリアしやすくした後、自分のゲームをつくっていく点です。
ワンダフル! もっと多くの人にゲームを遊ぶだけでなく、つくってほしいと思っています。(カヤックの経営理念は「つくる人を増やす」です)
ところで、ゲームにランキングがあると、もっとゲームにはまりやすいでしょう。でも、今まではランキング機能を実装するのに、サーバが必要でした。
Not now.
昨日、新しいAPIと、ライブラリを出しました。
スコアランキングAPIと、スコアランキングライブラリです。
ライブラリの使用例を見てみましょう
Wonderfl Score API Simple Test
スコアを記録するためのフォーム:
import net.wonderfl.score.basic.BasicScoreForm;
new BasicScoreForm( this ); // "this" is the document class.
スコアランキングを見るためのビュー:
import net.wonderfl.score.basic.BasicScoreRecordViewer;
new BasicScoreRecordViewer(this);
超簡単ですね!
---
スコアランキングライブラリは、サーバサイドのAPIのラッパーになっています。
APIのドキュメントはこちら:GET /score/<appid>, POST /score/<appid>
スコアランキングAPIをwonderfl内で使う場合には、APIキーとappidはFlashVarsで提供されますので、心配する必要はありません。↑のコードでお試しください。
---
また、スコアランキングでスコアと名前を記録するため、またもっとソーシャルなコードをつくることができるように、FlashVarsにユーザー名とアイコン画像を入れています。この機能は、アカウントページから無効にすることができます。(この機能はブログパーツでは無効です)
---
もっとおもしろいゲームやコンテンツをwonderflでつくるために、必要な機能などありましたらぜひお問い合わせから教えてください。
Have Fun!