FruitTetris.cpp
// Given (x,y), tries to move the tile x squares to the right and y squares down.
// Returns true if the tile was successfully moved, or false if there was some issue.
Given (x,y), tries to move the tile x squares to the right and y squares down.
Returns true if the tile was successfully moved, or false if there was some issue.
Given ( x y ) tries to move the tile x squares to the right and y squares down . Returns true if the tile was successfully moved or false if there was some issue .
bool movetile(vec2 direction)
{
	tilepos.x = tilepos.x + direction.x;
	tilepos.y = tilepos.y - direction.y;
	updatetile();
	return true;
}
bool movetile ( vec2 direction ) { tilepos . x = tilepos . x + direction . x ; tilepos . y = tilepos . y - direction . y ; updatetile ( ) ; return true ; }
Given (x,y), tries to move the tile x squares to the right and y squares down.
Given ( x y ) tries to move the tile x squares to the right and y squares down .