The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled HTML Code
Posted by: Chase | October 22, 2007 @ 1:26pm
HTML Code
[
Download
]
public LandTile GetLandTile(int x, int y) { LandTile landTile = new LandTile(m_TileMatrix.GetLandTile(x, y), x, y); LandData landData = Tiledata.LandData[landTile.ID]; if (!landData.Wet && landData.TextureID != 0 && Texmaps.Index.Contains(landTile.ID - 1)) { int east = m_TileMatrix.GetLandTile(x + 1, y).Z; int down = m_TileMatrix.GetLandTile(x + 1, y + 1).Z; int south = m_TileMatrix.GetLandTile(x, y + 1).Z; if (!(east == down && down == south && south == landTile.Z)) { landTile.Stretch = true; landTile.Texture = Texmaps.GetTexture(landTile.ID - 1); landTile.East = -((east - landTile.Z) << 2); landTile.Down = -((down - landTile.Z) << 2); landTile.South = -((south - landTile.Z) << 2); } } if (!landTile.Stretch) landTile.Texture = Art.GetLand(landTile.ID); return landTile; }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.44 / 8
327 Votes
http://codebin.yi.org/50
page generated in 0.00 seconds