Latest Post

How to bring A Website on the first page of Search?

It’s not an easy task. In the era of increasing competition; every 1 in a 3 business fails in the span of five years. The reason is the technology advancement. Technology is getting changed over time incessantly. To meet the competition, business needs to grow accordingly. On the contrary for many businesses it’s human nature not to adapt change and stay stuck in the past. Technological advancement means a business has to look at different ways of marketing and promotion for getting ahead of all. Now Marketing is no more a one way street as you are connected to people in more ways. For this we need to focus on the basics first. Search Algorithm The key to higher ranking in search results is keeping up the expectations of Search engines which follow an algorithm. While choosing to display results they consider following elements: Words matter – It’s all about whatever you[…]

How to get and increase Subscribers?

YouTube is a great platform around the world to connect with others globally. In the era of increasing competition people are focusing on various marketing strategies and most of the videos on YouTube are there to serve the purpose. Video content is the way of content marketing. Here we are going to talk about viewer’s development and how it relates to YouTube. There are two types of viewers we find on YouTube “Subscribers will come when they’ll find something they are looking for and they are interested in exact same content being provided by you whereas Fan Followers are the ones who are going to check every morning whether you have come up with the new content or not. In some of the cases they’ll be more demanding. Subscribers are usually permanent whereas Fan Followers can be temporary at times.” Now We are going to look at the tips that will help you[…]

How to add Tags in a YouTube Video?

In my previous article on YouTube search optimization, we discussed about Tags. Tags are one of the ways to get your videos available in searches. We are going to explore Tags further and look at the ways to optimize it. ♦ Log-in to your YouTube account. At the top right of the page where your account or channel logo is shown, Click on the logo > Creator Studio. Once you are logged-in; on the left side menu, Click Video Manager > Videos. This brings the list of videos along with edit option. ♦ If you are on your channel page, you can see Video Manager option right below the search box. Click Video Manager > Videos. This brings the list of videos along with edit option. Clicking on edit button of any of the videos takes you to the properties page of that particular video. There you can see Automatic Suggested Tags by YouTube under Basic Info. Tags are the text information about the video. You can always opt for[…]

Integrate Kongregate’s JavaScript API in HTML5 Game to Submit High Score

Though Kongregate’s API can be directly initialized in the main game’s HTML, the better way is to always create a Kongregate’s Shell which is nothing but another HTML file which you refer for running the game in stead of your default game’s HTML file. The Shell file in turn embeds your game’s default HTML file using an iFrame. Code for Shell HTML can be used from the code snippet below <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html lang=”en” xml:lang=”en” xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>Kongregate Game Shell</title> <!– Load the Kongregate Javascript API –> <script src=’https://cdn1.kongregate.com/javascripts/kongregate_api.js’></script> <!– Give the shell no border/scroll bars and match the Kongregate background color. If your game needs scrollbars, you might need to modify these styles –> <style type=”text/css”> html{border: none; overflow: hidden; background-color: #333;height: 100%;} body{border: none; background-color: #333;margin:0; padding:0;} </style> </head> <body> <script type=”text/javascript”> // Called when the API is finished loading function onLoadCompleted(){[…]

How to make a Video available in top YouTube search?

YouTube is one of the largest mediums to connect with your audience and has been ranked The second most popular site by Alexa as of April 2017. So more and more people are looking for better search ranking of their videos. We are going to look at some basic tips which will help your videos rank higher in YouTube search.  ⇒⇒ PRIMARY TIPS ⇐⇐ Making of a better content ultimately leads to the video showing up higher in YouTube search results. Following key points are not only going to help your videos becoming available in top searches but also getting more views: 1. Keyword Search  The first step is to search for a related video in YouTube and you would see search phrase suggestions as you type. These search phrases are the most popular search phrases for related content so you get some idea about what all things people are looking for and what all[…]

Optimize/Minify HTML5 Game Assets

After I wrote Block Dominoes game I decided to look into optimization of the assets, compress whatever could be done and make the game as lightweight as it could be. I had designed and made the assets at a resolution of 1920×1080. The first logical step was to go search what other developers were doing and surprisingly 1920×1080 seemed quite a big resolution to choose for a game. There was an older discussion on  HTML5GameDevs.com which suggested using a lower resolution such as 320×480 which many devs have been using successfully.  I decided to go for half of what I initially designed so I reduced all game assets to half of the original size which was 960×540. The size of all graphical assets were reduced by 40% which was a very good saving. Interestingly there was no visible difference on look and feel of the game when I tested it on iPhone6, Nexus 5 and Lenovo[…]

Handling of Moving Tweens in a Responsive Game in Phaser

If you went through previous articles on making of a responsive game in Phaser, we handled scaling and placement of individual elements according to the available width and height for the game. I moved on to writing next responsive game in Phaser and came across another scenario which requires additional handling. In Number Spread game we did not use any tween to move elements between two points. In my next game I planned to create a domino game where effects like dealing domino tiles to the players were required to be handled. While aligning and scaling of the elements were done exactly how it was done in Number Spread game, additional scenario which I needed to handle was managing the tweens which were used to deal domino tiles to the players. Consider the scenario where I made a chained tweens set to deal domino tiles to the players. I resized my game halfway[…]

Card Flip Animation in Phaser

The code example below shows how a simple card flip animation can be achieved in Phaser. In order to flip or rotate a card around x-axis we need to set the scale to zero, change the sprite frame and then set the scale back to one. TheGame.MyGame.prototype = { preload: function () { }, create: function () { this.card = this.add.sprite(this.world.centerX, this.world.centerY, “card”) this.card.frame = 0; this.card.anchor.setTo(0.5); // roll the dice when a mouse button is clicked this.game.input.onDown.add(this.flipCard, this); }, flipCard: function () { var tween1 = this.game.add.tween(this.card.scale); tween1.to({ x: 0 }, 300, Phaser.Easing.Linear.None, false, 0); tween1.onComplete.addOnce(function (sprite, tween) { if(this.card.frame == 0) this.card.frame = 1; else this.card.frame = 0; }, this); var tween2 = this.game.add.tween(this.card.scale); tween2.to({ x: 1 }, 300, Phaser.Easing.Linear.None, false, 0); tween1.chain(tween2); tween1.start(); } }; This example flips the card around x-axis. In order to flip it around y-axis, change as following flipCard: function () { var[…]

Phaser Dice Roller

While exploring Phaser online, I came across a very nice example which can be used for dice roll in a Phaser game. I probably downloaded it from github, but cannot find the original source. If someone happens to know the source, please send the URL to update in this article. Meanwhile I can not resist posting the code since it looks pretty good for use in Dice Games if someone wants to write one. The code below extends Sprite and uses Blur filters from Phaser examples. Dice = function (x, y) { Phaser.Sprite.call(this, mygame, x, y, ‘dice’); this.tween; this.anim; this.blurX = mygame.add.filter(“BlurX”); // Blur filters taken from this.blurY = mygame.add.filter(“BlurY”); // Filters -> blur example this.anchor.setTo(0.5, 0.5); var i; var frames = []; for (i=0; i < 15; i++) { frames[i] = mygame.rnd.pick([0,1,2,3,4,5]); } // the animation displays the frames from the spritesheet in a random order this.anim = this.animations.add(“roll”, frames); this.anim.onComplete.add(this.rollComplete, this);[…]

Display a hint using tween in Phaser

This is next task I planned to implement in Number Spread game I discussed in the previous article series. In a game we have many scenarios when we want to display a hint and I considered many options as to how this can be implemented in Phaser. The options could be either using a tween or animation. For Number Spread it was a simple scenario when I just needed to display a hand which moved in certain direction to give a hint to player what is to be done. A tween for this purpose seemed fine. Look at the complete code for it below. var TheGame = { }; TheGame.Params = { baseWidth: 1920, baseHeight: 1080, minPadding: 50, iconSize: 364, fieldSize: { rows: 6, cols: 6 } }; TheGame.Boot = function (game) { }; TheGame.Boot.prototype = { init: function () { this.scale.scaleMode = Phaser.ScaleManager.RESIZE; }, preload: function () { this.load.image(“loading”, “loadingback.png”); }, create:[…]