Final Tiles Game

final--add your elements

HTML

<canvas id="myCanvas" width="500" height="500" style="border:1px solid #000000;"></canvas>

JavaScript

/***********************
Adjust game variables to make it work
************************/
  //change if you make a zelda style
var overhead = false;
//change to show or hide tile numbers
var displayTile = true;
//do you want to shoot bullets?
var bulletsInGame = false; //change to shoot bullets
//jumpstomp?
var jumpstomp = false;
//size of tiles
var tileW = 64;
var tileH = 64;
//size of sprites
var manW = 62; //less than tileW
var manH = 62; //less than tileH
//control jumping and falling
var gravity = 0.8;
var jumpstart = -12;
//bullets
var bulletSpeed = 10;
var bulletSize = 10;
var bulletColor = "red";
//change to your images vvvv
var manImage = "https://s11.postimg.org/nymonzjrn/image.png";
var upsideDownManImage = "https://s14.postimg.org/b5zg9qswx/UDSS.png"
var baddieImage = "https://s12.postimg.org/ghg07p7st/Baddie.png";
var tileImage = "https://s12.postimg.org/5q2lnaazx/APSCITISPRI.jpg";
var bgImage = "https://s21.postimg.org/di662qrxj/BKFIRE.jpg";
//////////////////////
//key controls
//////////////////////
var left = 37;
var up = 38;
var right = 39;
var down = 40;
var fire = 32;
/****************
change for your own maps
****************/
var map1 = [
 [1,0,1],
 [1,0,1],
 [1,0,1],
 [1,0,1],
 [1,1,1] 
 ];
var map2 = [
 [1,1,1,1,1,1],
 [1,0,0,0,0,1],
 [1,0,1,1,0,1],
 [1,0,1,1,0,1],
 [1,0,1,1,0,1],
 [1,0,1,1,0,1],
 [1,0,1,1,0,1],
 [1,0,1,1,0,0],
 [1,1,1,1,1,1] 
 ];
var map3 = [
 [1,1,1,1,1,1,1,1,1],
 [1,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,0],
 [1,1,1,0,0,0,1,1,1],
 [0,0,0,0,0,0,0,0,0] 
 ];
var map4 = [
 [1,1,1,1,1,1,1,1,1,1],
 [1,0,0,0,1,1,0,0,0,1],
 [1,0,1,0,1,1,0,1,0,1],
 [1,0,1,0,0,0,0,1,0,1],
 [1,0,1,0,0,0,0,1,0,1],
 [1,0,1,0,0,0,0,1,0,1],
 [1,0,1,0,0,0,0,1,0,1],
 [0,0,0,0,0,0,0,0,0,0] 
 ];
var map5 = [
 [0,0,0,0,0,0,0,0,0,0,0,0],
 [1,1,1,0,0,0,0,0,0,1,1,1],
 [1,0,0,0,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,0,0,0,1],
 [1,0,0,0,0,0,0,0,0,0,0,0],
...