Jump to content

New Phaser minigame "Sour Lemon" on Facebook

Recommended Posts



I added a very simple minigame using Phaser to Facebook here:



I used the Facebook smash game lib here: https://github.com/fbsamples/web-friend-smash

and currently only utilized the friend request for share but might use the Facebook highscore share that's in their example


for chip sounds I used this amazing vst  http://www.alyjameslab.com/alyjameslabsuperpsg.html


for simple Facebook rev generation I used CPMstar: https://www.cpmstar.com  (which is allowed on Facebook)


Connecting Phaser games to the Facebook Api using the smash code is ultra simple, at the end of their social.js class found at above link

I just added this at end of class:


function logFromGame()
      appId      : 'ADD YOUR APP ID HERE',
      xfbml      : true,
      version    : 'v2.5'
    FB.Event.subscribe('auth.authResponseChange', onAuthResponseChange);
    FB.Event.subscribe('auth.statusChange', onStatusChange);
then once the Phaser game was loaded I called this method, then just made sure the Phaser game was added in the html before the social.js
You might be asking "do people still play games on Facebook", yep and it seems they like very very simple html5 games made with Phaser! It seems better than submitting games the old skool way to arcades.
Link to post
Share on other sites
  • 8 months later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...