PHP Code:
temp.playerTile = tiles[player.x + 1.5, player.y + 2];
theres also tiletype:
PHP Code:
temp.playerTiletype = tiletype(player.x + 1.5, player.y + 2);
Quote:
0: non-blocking, foreground
1: non-blocking
2: hurting underground
3: chair
4: bed1 (upper part)
5: bed2
6: swamp
7: lava swamp
8: near water
9: near lava
10: desert
11: water
12: lava
20: throw-through
21: jump stone
22: blocking
23: blocking, foreground
|