Dig Your Own Grave

Add Vector Runner Remix to your Website

BASIC INTEGRATION:

To perform a basic integration, use the following embed code:

<iframe src="http://games.tresensa.com/vector-runner-remix/" width="960px" height="536px" frameborder=0 scrolling="no" allowtransparency="true" style="position: absolute; width: 960px; height: 536px; top: 0px; left:0px;" /></iframe>

That’s it!


OPTIONAL STEPS:

If you want the game to go into fullscreen mode when a user visits on a mobile device you will need to perform some additional steps. To see how this looks, try visiting the game on a mobile device at: http://www.digyourowngrave.com/vector-runner-remix/

Here is an example of how to do this in php. You will require the Mobile_Detect.php library, available at: http://code.google.com/p/php-mobile-detect/

Make sure this code goes at the very beginning of your page, before the <html> and <head> tags.

// Check if the user is on mobile - if so redirect to the iframe source for fullscreen play
$detect = new Mobile_Detect();
if($detect->isMobile())
{
   header('Location: http://games.tresensa.com/vector-runner-remix/');
   exit;
}


Return to DIGYOUROWNGRAVE.COM for more entertaining videos, games, pictures, and crazy stuff!