C# 클래스 TileGenerator.EdgeDecalManager

Manages and draws edge decals
파일 보기 프로젝트 열기: Jewelots/Spelunky-Tiles 1 사용 예제들

공개 메소드들

메소드 설명
BlockDestroyed ( int blockIndex ) : void

Call when a block is destroyed

BlockDestroyed ( int blockX, int blockY, int arrayWidth ) : void

Call when a block is destroyed

CreateEdgeDecals ( bool blocks, int width, int height, int tileSize ) : void

Create edge decals around blocks

Draw ( SpriteBatch spriteBatch ) : void

Draw edge decals

EdgeDecalManager ( int tileSize ) : System

Initialises a new decal manager

SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void

Sets the texture to draw the decal with

메소드 상세

BlockDestroyed() 공개 메소드

Call when a block is destroyed
public BlockDestroyed ( int blockIndex ) : void
blockIndex int Index of the destroyed block
리턴 void

BlockDestroyed() 공개 메소드

Call when a block is destroyed
public BlockDestroyed ( int blockX, int blockY, int arrayWidth ) : void
blockX int X position of the destroyed block (tiles)
blockY int Y position of the destroyed block (tiles)
arrayWidth int Width of tile grid (tiles)
리턴 void

CreateEdgeDecals() 공개 메소드

Create edge decals around blocks
public CreateEdgeDecals ( bool blocks, int width, int height, int tileSize ) : void
blocks bool A 2D grid signifying blocks
width int Width of the grid (tiles)
height int Height of the grid (tiles)
tileSize int Size of each tile in the grid (pixels)
리턴 void

Draw() 공개 메소드

Draw edge decals
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

EdgeDecalManager() 공개 메소드

Initialises a new decal manager
public EdgeDecalManager ( int tileSize ) : System
tileSize int Size of each tile on the texture (pixels)
리턴 System

SetTexture() 공개 메소드

Sets the texture to draw the decal with
public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D Texture to use
리턴 void