• Content count

  • Joined

  • Last visited

About dcgames

  • Rank
    Advanced Member

Contact Methods

  • Website URL

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

298 profile views
  1. Perfect. Exactly what I was looking for. Thanks much. Let me try this now.
  2. You can do something like this on first button click. Notice the last parameter is set to false which ensures tween does not automatically execute. var tween = game.add.tween(sprite).to({ alpha: 0 }, 2000, "Linear", false); In second button click you can simply call tween.start() to start the tween.
  3. I am using RESIZE mode and have a few tweens which move from one point to another. The moment I resize the game, I need to recalculate the new x/y target for the sprites and update the tweens otherwise sprites keep moving to the previous target location which is incorrect for new size of the game. I looked into updateTweenData method but could not achieve what I want to do. I have tried to pause the tweens in resize method and directly change properties' x/y (tween.properties.x, tween.properties.y) but it does not change anything and tweens keep moving to previous target location after I resume. Changing x/y using something like updateTweenData ("x", newValue) also makes no difference. Does anyone know if this is supported and is possible to achieve?
  4. www.goodboydigital.com/pixijs/bunnymark/ Correct URL
  5. If I set scale mode to RESIZE and use following code to display a loading mage, it is not always centered. I noticed it happens more frequently on desktop as opposed to mobile. Has anyone else noticed this issue? var loadingBar = this.add.sprite(this.world.centerX, this.world.centerY, "loading"); loadingBar.anchor.setTo(0.5); this.load.setPreloadSprite(loadingBar);
  6. I just wanted to post an update to this. I eventually ended up using CSS and setting overflow-y property to hidden which completely hides the temporary vertical scrolling. I can then use java script to remove overflow-y property later on which I needed in certain scenarios. Doesn't look like an elegant solution but works for now.
  7. I have been trying Phaser for past couple months and thought of learning it by making a bunch of Solitaire games. All well and fine and games are functioning decently well. I am facing issues with making the game load in a smooth manner. I created the game for a big canvas 1920 px and am using Bootstrap to fit the game into the available space. I do the maths to correctly adjust width or height of the game before it is initialized and then pass the parameters to initialize the game and load states. The issue is that the game loads initially with the full size and then resizes it on the screen which kind of jumps and flickers and does no way look smooth. Just try to load the game http://www.onlinesologames.com/klondike You will notice how its resizing the canvas and also notice the vertical scrolling to the right which is pretty visible for a good couple seconds or more. I am using ScaleManager and SHOW_ALL to automatically resize and the code is pretty standard. game.stage.backgroundColor = 0x008000; game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.scale.setScreenSize = true; game.physics.startSystem(Phaser.Physics.ARCADE); game.state.start("Loading"); In order to give it a smooth load effect I tried a couple things. I have tried to set the background color to match the HTML background color and then change the color after the actual game starts loading. That does not fix the problem as the scrolling will still show up for a couple seconds and screen will flicker. Then I tried to hide the entire canvas area and then unhide it using jQuery (something like $("#mygame").fadeIn(500)) after I have preloaded the assets and am going to start game state. The problem still stays and it doesn't matter at what stage I unhide the game canvas, it first loads the game in full size then scales it back to the available space. I am looking for your experience in how to handle this if anybody has faced this problem before and if there is something in Phaser which can elegantly resolve this. If you want to look at how the two approaches behave in reality, I can deploy it and share the URL's.
  8. Thanks BdR. Yes, there are no sound effects as of now. Though I do plan to add sound effects in future to all games which is in the backlog for now since right now I am onto writing another set of half dozen interesting card games which can be played against the bot. Your idea of flashing is very good and a bit of help in the first game. I am going to implement both in the next version of this game (and other as well :)) once I am through with current set of bot games. Thanks much for playing. Very much appreciated. Please do report if you or anybody finds any issue.
  9. Guys, I am just finishing up rummy card game which can be played against a bot. The AI part is almost finished and looking for suggestions to improve the game. Your suggestions are much appreciated. Game Link: http://www.onlinesologames.com/rummy
  10. Hi, I just saw that this thread is still active so decided to post the link to my site which is going to have many more games added in future all in Phaser. Currently it contains 10 beautiful Solitaire games. Looking forward to your comments.. http://www.onlinesologames.com/
  11. Just wanted to post an update on publishing of another set. Now it has complete set of 10 most popular solitaire games. Thanks so much for visiting. http://www.onlinesologames.com/
  12. Thanks so much. I know this has already been done so many times but still it is quite exciting to write again just to learn something like Phaser. I hope more people find it nice enough to play.
  13. I have started writing solitaire games in Phaser as I try to learn more about Phaser. I plan to write a set of all popular ones and am ready with the first couple games. Your feedback and advice is much appreciated. http://www.onlinesologames.com/
  14. Added web version of the game as well. Your valuable feedback is much appreciated.
  15. Guys, I have just rolled out a new puzzle game which is unique in its gameplay. I request you to provide a feedback and ways you think this puzzle can be improved. The puzzle is quite interesting and needs a lot of strategy and number crunching for high scores. Though I myself has been consistently scoring over a few thousands minimum for each completed game, I have not seen anybody else reach even 500 so far. I am not sure if this is because of lack of clarity or instructions. Your helpful insight will help. Your feedback is much appreciated. https://play.google.com/store/apps/details?id=com.algotgames.spreadthenumber [Update] - Added web version of the game @ http://www.playonlinedicegames.com/spreadthenumber