Pages

Showing posts with label game. Show all posts
Showing posts with label game. Show all posts

Monday, February 2, 2015

Super K O Boxing 2 Android Game

Super K.O.Boxing 2

Super K.O.Boxing 2

DOWNLOAD FULL ANDROID GAME


Read more »

Thursday, January 29, 2015

Crime Scene Investigation Android game for free

CSI:Crime Scene Investigation

Find hidden Objects and Crime.

Download full game for free now on  Android

 Android full game free download


CSI is very popular Android game. Investigate as agent. Find hidden object to solve the case mistery. Find proof against criminals. The game based on American Tv series. The most popular TV series in USA. The game status was paid but now its free to download. Download and enjoy the best hidden object game on your smartphones and tablets. 

Android Game Features :


  • Investigate whole crime scene 
  • Find proofs and gather them. 
  • Get the Criminals. 
  • Internet required . 
Status : Free 

Download Paid Game for Free from PlayStore

Read more »

Tuesday, January 27, 2015

Creating a Pentomino game using AS3 Part 2

Today well add automatic sizing and positioning to our grid.

I plan for my game to have multiple levels (maps), and each map may differ in size and shape. Since some maps can be rather big and take a lot of space, when smaller maps take much less space, there is a problem with positioning the grid properly so that most of the available screen is used.

I am going to reserve some space for a toolbar panel, which will later contain the available shapes and other game info. My game dimensions right now are 720x460. The panel will reserve 200 pixels in width, including the space left to the right screen edge. That means the width of the panel will be 195 pixels, its height - 450 pixels, because Im leaving 5 pixels for the top, left and bottom margins. Keeping that in mind, the X and Y coordinates of the panel would be 520, 5 pixels.

This leaves us 520x460 free space. Inside of this rectangle, well put our grid. However, once again, remember that Im leaving 5 pixel margins for top, bottom, left and right, so the actual rectangle size is 510x450. Thats the size that we want to fit our grid in, making it take up as much space as possible.

Go to constructor of pentomino_game() class and call a calculateGrid() function before adding gridShape to stage:

public function pentomino_game() 
{
// default map
mapGrid = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
];

// grid settings
calculateGrid();
addChild(gridShape);
gridShape.x = gridStartX;
gridShape.y = gridStartY;

// draw tiles
drawGrid();
}

First thing we do in the function is calculate how many columns and rows there are:

var columns:int = mapGrid[0].length;
var rows:int = mapGrid.length;

Write down a memo to remember the numbers were working with:

// free size: 520x460
// fit in: 510x450

Now, using the columns value we can calculate how wide a cell should be to be able to fit in the 510 width rectangle.

// calculate width of a cell:
gridCellWidth = Math.round(510 / columns);

Then we calculate the real width and height of the grid in pixels:

var width:int = columns * gridCellWidth;
var height:int = rows * gridCellWidth;

Now we can set gridStartX value, which is the left margin of the grid. Id set it to 5, but its important to remember that gridCellWidth is a rounded value, it might have been a fraction and if we just set gridStartX to 5, the right marin might be bigger or smaller than 5. Thats why we simply substract width from 520 and divide it by 2, to have the same margin from left and right. This might not always be 5 (it will be around 5 pixels then), but it will look nice since the margins are the same.

// calculate side margin
gridStartX = (520 - width) / 2;

Now, we check if height fits in the 450 high rectangle. If so, then we set gridStartY using the same method we set gridStartX:

if (height < 450) {
gridStartY = (450 - height) / 2;
}

If height is greater than or equals 450, we need to recalculate the whole thing, but set the height first instead of the width. Then we calculate height and width values again, and set gridStartX and gridStartY just like before:

if (height >= 450) {
gridCellWidth = Math.round(450 / rows);
height = rows * gridCellWidth;
width = columns * gridCellWidth;
gridStartY = (460 - height) / 2;
gridStartX = (520 - width) / 2;
}

Full function:

private function calculateGrid():void {
var columns:int = mapGrid[0].length;
var rows:int = mapGrid.length;

// free size: 520x460
// fit in: 510x450

// calculate width of a cell:
gridCellWidth = Math.round(510 / columns);

var width:int = columns * gridCellWidth;
var height:int = rows * gridCellWidth;

// calculate side margin
gridStartX = (520 - width) / 2;

if (height < 450) {
gridStartY = (450 - height) / 2;
}
if (height >= 450) {
gridCellWidth = Math.round(450 / rows);
height = rows * gridCellWidth;
width = columns * gridCellWidth;
gridStartY = (460 - height) / 2;
gridStartX = (520 - width) / 2;
}
}

The results can be observed when you use differently sized maps:




Full code:

package  
{
import flash.display.MovieClip;
import flash.display.Sprite;

/**
* Open-source pentomino game engine
* @author Kirill Poletaev
*/

public class pentomino_game extends MovieClip
{
private var mapGrid:Array = [];

private var gridShape:Sprite = new Sprite();
private var gridStartX:int;
private var gridStartY:int;
private var gridCellWidth:int;

public function pentomino_game()
{
// default map
mapGrid = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
];

// grid settings
calculateGrid();
addChild(gridShape);
gridShape.x = gridStartX;
gridShape.y = gridStartY;

// draw tiles
drawGrid();
}

private function calculateGrid():void {
var columns:int = mapGrid[0].length;
var rows:int = mapGrid.length;

// free size: 520x460
// fit in: 510x450

// calculate width of a cell:
gridCellWidth = Math.round(510 / columns);

var width:int = columns * gridCellWidth;
var height:int = rows * gridCellWidth;

// calculate side margin
gridStartX = (520 - width) / 2;

if (height < 450) {
gridStartY = (450 - height) / 2;
}
if (height >= 450) {
gridCellWidth = Math.round(450 / rows);
height = rows * gridCellWidth;
width = columns * gridCellWidth;
gridStartY = (460 - height) / 2;
gridStartX = (520 - width) / 2;
}
}

private function drawGrid():void {
gridShape.graphics.clear();
var width:int = mapGrid[0].length;
var height:int = mapGrid.length;

var i:int;
var u:int;

// draw background
for (i = 0; i < height; i++) {
for (u = 0; u < width; u++) {
if (mapGrid[i][u] == 1) drawCell(u, i, 0xffffff, 1, 0x999999);
}
}
}

private function drawCell(width:int, height:int, fill:uint, thick:Number, line:uint):void {
gridShape.graphics.beginFill(fill);
gridShape.graphics.lineStyle(thick, line);
gridShape.graphics.drawRect(width * gridCellWidth, height * gridCellWidth, gridCellWidth, gridCellWidth);
}

}

}

Thanks for reading!
Read more »

Tuesday, January 20, 2015

FIFA 14 Download 2014 FIFA WORLD CUP BRAZIL Android Game

FIFA 14

2014 FIFA WORLD CUP BRAZIL GAME 

Download free game for Android 



Download Free Android games
2014 FIFA WORLD CUP BRAZIL is most amazing football game available for Android  by EA Sports . The most authentic games for smartphone and tablet PC. You can easily shoot,kick,pass and tackle player with touch. Featuring 33 Leagues , 600 teams and 34 stadiums. Build your own team by trading players. The 2014 FIFA WORLD CUP BRAZIL Android game is highly optimized for Tablets with stunning Graphics. All the 2014 FIFA WORLD CUP BRAZIL official teams are available to enjoy the game. Download 2014 FIFA WORLD CUP BRAZIL Android game for free and enjoy the World Cup 2014.

ScreenShots : 


Download Free Android games


Download Free Android games

Download Free Android games


Download Free Android games

Download Free Android games

Download Free Android games

  Game Requirements :

APK Size : 1.35 GB
OS Supported : 2.3.3 and Up
Current Version: 1.3.6
Developer : EA Sports
Download 2014 Fifa World Cup Brazil Android Game
Read more »

Saturday, January 17, 2015

CAT BASKET ANDROID FULL GAME

CAT BASKET ANDROID GAME


CLICK TO DOWNLOAD FREE GAME
Read more »

Sunday, January 11, 2015

Download Puzzle Flash Game Save Them


Save Them Flash Game

Hey Flash Game Lovers! Today youre getting an amazing puzzle game - Save Them! Its a flash game and the download size is only 382 KB. In this game, you have to move 3 missionaries and 3 cannibals from one side to another through a boat. In any side, if the number of cannibals is more than the number of missionaries, then cannibals will eat the missionaries! 


Download Save Them


Download the game from the above link. Its a zipped file. Download size is only 382 KB! After downloading the game, you have to unzip it first. Then double click on the SaveThem to start the game. 


How to Play?

After starting the game, you will get the instruction. You have to make sure that in no side, the number of cannibals is not more than the number of missionaries. This is your only challenge. You have to take them from left side to the right side of the lake through a boat. 


06 Characters in the left side


Press on a character to jump to the boat. Thus you can take any two of them at a time. Then hit on the GO button to move the boat. After reaching the other side, click on a character to jump to the land. 

Thus you have to move all the six characters from one side to another. 


Solution

Its a very challenging game. Not many people are able to solve it. And only few people are lucky enough to solve it at first try. Even I have to try this game more than 10 times to solve it!

Lets solve it - 


Step 1

Take 1 Missionary and 1 Cannibal in the boat from the right side. Then move the boat to the left side pressing the GO button. Now jump the Cannibal to the land. And get back to the right side with the missionary. Jump the missionary to the land. 


Step 2

This time, take the remaining 2 cannibals to the boat and move to the left side. Jump one of them to the land. And the other cannibal will back to the right side with the boat. Jump the cannibals to the land.


Step 3

Now take the remaining 2 missionaries in the boat and go to the right side. Jump both missionaries to the land. Now there are 2 missionaries and 2 cannibals in the left side. And 1 cannibal and 1 missionary in the right side. See the image below - 


Save Them Screenshot


Step 4

Now take 1 missionary and 1 cannibal to the boat from the left side. Move the boat to the right side. Jump the cannibal to the right side and take the missionary to the boat. Now move the boat to the left side with two missionaries. Jump both missionaries to the left side. Were almost done! 


Save Them Flash Game


Step 5

Now take the only one cannibal from the left side. Move the boat to the right. Take another cannibal from the right side. Back to the left side with two cannibals. Jump one of them to the left side. 

Again go to the right side. Take the last cannibal in the boat and move it to the left. Now jump both cannibals to the land. Solved! 


Save Them Flash Game Solved


Always remember, the number of cannibals cant be more than the number of missionaries. Then it will be easier for you to solve the game. :) 



Stay with Marks PC Solution to get more interesting IT topics!



Read more »