public Sprite(ref Game game) { /* konstruktor */ p_game = game; p_position = new PointF(0, 0); p_velocity = new PointF(0, 0); p_size = new Size(0, 0); p_bitmap = null; p_alive = true; p_columns = 1; p_totalFrames = 1; p_currentFrame = 0; p_animationDir = AnimateDir.FORWARD; p_animationWrap = AnimateWrap.WRAP; p_lastTime = 0; p_animationRate = 30; }
public Asset(ref GamePlay gamePlay) { p_gamePlay = gamePlay; p_position = new PointF(0, 0); p_velocity = new PointF(0, 0); p_size = new Size(0, 0); p_bitmap = null; p_alive = true; p_columns = 1; p_totalFrames = 1; p_currentFrame = 0; p_animationDir = AnimateDir.FORWARD; p_animationWrap = AnimateWrap.WRAP; p_lastTime = 0; p_animationRate = 30; }
public Sprite(ref Cipher cipher) { game = cipher; position = new PointF(0, 0); velocity = new PointF(0, 0); mSize = new Size(0, 0); bitmap = null; alive = true; colums = 1; totalFrames = 1; currentFrame = 0; animateDirection = AnimateDir.Forward; animateWrap = AnimateWrap.Wrap; lastTime = 0; animationRate = 30; }