Search the Community

Showing results for tags 'phaser 2.6.2'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 8 results

  1. I tried with the good "old" Crosswalk but sadly Android cmd tools were changed so I now cannot build apps with Crosswalk. Now there is Android 4.4, KitKat, WebView. I managed to make a hybrid app up and running, however I see the grey background or blank/black canvas instead of my game. I found some links, and people say that I should disable hardware acceleration for WebView which i did, and then the black canvas appeared. What do you recommend, switch to newer WebView version or I am missing something? Android manifest xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="" package="" > <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:hardwareAccelerated="true" > <activity android:name=".MainActivity" android:hardwareAccelerated="false"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-permission android:name="android.permission.INTERNET" /> </manifest> As you can seen, hardware acceleration was enabled application wide, but disabled only for the MainActivity. Before doing this, no canvas was visible, only the gray page background. When I disabled hardware acceleration then this black rectangle appeared. My file: package; import; import android.os.Bundle; import android.view.View; import android.webkit.WebSettings; import android.webkit.WebView; public class MainActivity extends AppCompatActivity { private WebView mWebView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mWebView = (WebView) findViewById(; WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabled(true); mWebView.setWebViewClient(new MyAppWebViewClient()); } @Override public void onResume(){ mWebView.loadUrl("file:///android_asset/www/index.html"); super.onResume(); } @Override public void onBackPressed() { if(mWebView.canGoBack()) { mWebView.goBack(); } else { super.onBackPressed(); } } } Any ideas?
  2. I see the docs of the Body class But i am not sure which would be the right property to change. I have two balloons falling down and they might both at the same time or one after the other, hit my rectangle. The problem is, both objects stop moving after they hit the rectangle. i am sure this has to do something with physics. As if the vertical(y coordinate) velocity gets set to 0 when they hit the rectangle. Here is a sample code: graphics = si.gameObject.add.sprite(boxX, boxY, si.ImageAssetKeys.BALLOON_ANIM_ATLAS, 0); floatingAnim = graphics.animations.add('floating', si.GraphicsUtility.getFloatingAnimArray(), 30, true); splashAnim = graphics.animations.add('splash', si.GraphicsUtility.getSplashAnimArray(), 30, false); splashAnim.onComplete.add(si.LetterBox.splashComplete, this);'floating'); = graphics;, 0.5); = false; = false; = false; = true; = velocity; = false; = false; Which body property should I change to prevent the stop in movement of balloons?
  3. Folks, I have released my first Flash game converted into Phaser on 14 May 2017. Only 87 more games to go -- all of them found here. I am so in love with this framework!!! I've tried many but Phaser is simply the best. My recent release uses the Official 2.6.2 here; if you're curious how I did it? Simply open your console and observer, all my debug is there. and the 2.7.7 here.... and it is working beautifully.
  4. In my main scene I add keyboard event listeners to specific keys in the init() state. Also some of those keys need to be disabled at specific time and re-enabled at specific time. How can I disable/enable input on specific keyboard buttons at runtime?
  5. When the sound object gets created?

    I create new game object with var game = new Phaser.Game(STAGE_WIDTH, STAGE_HEIGHT, phaser.AUTO, HTML_CONTAINER); and right after this line I call to set game.sound.mute = true/false depending on the saved value in window.localStorage. But the problem is, when I console.dir(game), it prints the structure of the Phaser game object but game.sound is still null, so I cannot set the sound to muted or unmuted at that moment. When does game.sound sub-object gets created?
  6. I am trying to develop a custom made scroll-bar(or should I call it number-picker) with graphical elements and input functions. I think there is an example where a certain Phaser game object can be constrained in coordinates. For example it can be set to only move along X axis in certain range, but Y stays always unchanged. I should be able to drag it only in X axis, so left and right. Can you suggest some example for this bit? Here is a picture of what I try to do: As you move the handle to right, the number on the left decreases down to zero. As you move the handle to the left, the number increases up to 100. Simple. Note: No need for Physics.
  7. vs Phaser.sound?

    I see the docs at the moment and found that there are two functions which seem identical in nature but are called differently., volume, loop, connect) -> Phaser.Sound and Phaser.sound(key, volume, loop, connect) -> Phaser.Sound This was made by error, one of the methods will get deprecated? Or both are viable and do the same thing and I can use whichever I prefer? Or they are used in different use cases?
  8. Time.deltaTime in Phaser?

    I am converting a Unity game to a Phaser game and there is a field called Time.deltaTime which stands for how long the last frame has lasted: deltaTime Is there something similar in Phaser and how is it called?