PHP Classes

File: tests/js/game/sprites.js

Recommend this page to a friend!
  Classes of Vitalij Mik   PHP Tiled to CraftyJS   tests/js/game/sprites.js   Download  
File: tests/js/game/sprites.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Tiled to CraftyJS
Convert game level tiled maps CraftyJS components
Author: By
Last change:
Date: 2 years ago
Size: 2,995 bytes
 

Contents

Class file image Download
Crafty.sprite(64,128,"img/grassland.png",{ 16:[0,0], 17:[1,0], 18:[2,0], 19:[3,0], 20:[4,0], 21:[5,0], 22:[6,0], 23:[7,0], 24:[8,0], 25:[9,0], 26:[10,0], 27:[11,0], 28:[12,0], 29:[13,0], 30:[14,0], 31:[15,0], 32:[0,1], 33:[1,1], 34:[2,1], 35:[3,1], 36:[4,1], 37:[5,1], 38:[6,1], 39:[7,1], 40:[8,1], 41:[9,1], 42:[10,1], 43:[11,1], 44:[12,1], 45:[13,1], 46:[14,1], 47:[15,1], 48:[0,2], 49:[1,2], 50:[2,2], 51:[3,2], 52:[4,2], 53:[5,2], 54:[6,2], 55:[7,2], 56:[8,2], 57:[9,2], 58:[10,2], 59:[11,2], 60:[12,2], 61:[13,2], 62:[14,2], 63:[15,2], 64:[0,3], 65:[1,3], 66:[2,3], 67:[3,3], 68:[4,3], 69:[5,3], 70:[6,3], 71:[7,3], 72:[8,3], 73:[9,3], 74:[10,3], 75:[11,3], 76:[12,3], 77:[13,3], 78:[14,3], 79:[15,3], 80:[0,4], 81:[1,4], 82:[2,4], 83:[3,4], 84:[4,4], 85:[5,4], 86:[6,4], 87:[7,4], 88:[8,4], 89:[9,4], 90:[10,4], 91:[11,4], 92:[12,4], 93:[13,4], 94:[14,4], 95:[15,4], 96:[0,5], 97:[1,5], 98:[2,5], 99:[3,5], 100:[4,5], 101:[5,5], 102:[6,5], 103:[7,5], 104:[8,5], 105:[9,5], 106:[10,5], 107:[11,5], 108:[12,5], 109:[13,5], 110:[14,5], 111:[15,5], 112:[0,6], 113:[1,6], 114:[2,6], 115:[3,6], 116:[4,6], 117:[5,6], 118:[6,6], 119:[7,6], 120:[8,6], 121:[9,6], 122:[10,6], 123:[11,6], 124:[12,6], 125:[13,6], 126:[14,6], 127:[15,6], 128:[0,7], 129:[1,7], 130:[2,7], 131:[3,7], 132:[4,7], 133:[5,7], 134:[6,7], 135:[7,7], 136:[8,7], 137:[9,7], 138:[10,7], 139:[11,7], 140:[12,7], 141:[13,7], 142:[14,7], 143:[15,7] }); Crafty.sprite(64,64,"img/grassland_water.png",{ 144:[0,0], 145:[1,0], 146:[2,0], 147:[3,0], 148:[4,0], 149:[5,0], 150:[6,0], 151:[7,0], 152:[8,0], 153:[9,0], 154:[10,0], 155:[11,0], 156:[12,0], 157:[13,0], 158:[14,0], 159:[15,0], 160:[0,1], 161:[1,1], 162:[2,1], 163:[3,1], 164:[4,1], 165:[5,1], 166:[6,1], 167:[7,1], 168:[8,1], 169:[9,1], 170:[10,1], 171:[11,1], 172:[12,1], 173:[13,1], 174:[14,1], 175:[15,1], 176:[0,2], 177:[1,2], 178:[2,2], 179:[3,2], 180:[4,2], 181:[5,2], 182:[6,2], 183:[7,2], 184:[8,2], 185:[9,2], 186:[10,2], 187:[11,2], 188:[12,2], 189:[13,2], 190:[14,2], 191:[15,2], 192:[0,3], 193:[1,3], 194:[2,3], 195:[3,3], 196:[4,3], 197:[5,3], 198:[6,3], 199:[7,3], 200:[8,3], 201:[9,3], 202:[10,3], 203:[11,3], 204:[12,3], 205:[13,3], 206:[14,3], 207:[15,3] },0,0,0,32); Crafty.sprite(64,256,"img/grassland_structures.png",{ 208:[0,0], 209:[1,0], 210:[2,0], 211:[3,0], 212:[4,0], 213:[5,0], 214:[6,0], 215:[7,0], 216:[8,0], 217:[9,0], 218:[10,0], 219:[11,0], 220:[12,0], 221:[13,0], 222:[14,0], 223:[15,0], 224:[0,1], 225:[1,1], 226:[2,1], 227:[3,1], 228:[4,1], 229:[5,1], 230:[6,1], 231:[7,1], 232:[8,1], 233:[9,1], 234:[10,1], 235:[11,1], 236:[12,1], 237:[13,1], 238:[14,1], 239:[15,1] }); Crafty.sprite(128,256,"img/grassland_trees.png",{ 240:[0,0], 241:[1,0], 242:[2,0], 243:[3,0], 244:[4,0], 245:[5,0], 246:[6,0], 247:[7,0], 248:[8,0], 249:[9,0], 250:[10,0], 251:[0,1], 252:[1,1], 253:[2,1], 254:[3,1], 255:[4,1], 256:[5,1], 257:[6,1], 258:[7,1], 259:[8,1], 260:[9,1], 261:[10,1] },0,0,-32,0); Crafty.sprite(128,128,"img/male_player.png",{male:[0,6]});