public override void Render() { SwinGame.FillCircle(_clr, X, Y, _radius); if (GameMain.DEBUG) { SwinGame.DrawRectangle(SwinGame.ColorBlack(), CollisionBox.X, CollisionBox.Y, CollisionBox.Height, CollisionBox.Width); } }
public override void Render() { SwinGame.FillRectangle(SwinGame.ColorTeal(), X, Y, _width, _height); SwinGame.DrawText(_weapon.Name, SwinGame.ColorBlack(), X, Y + _height / 2); if (GameMain.DEBUG) { SwinGame.DrawRectangle(SwinGame.ColorWhite(), CollisionBox.X, CollisionBox.Y, CollisionBox.Height, CollisionBox.Width); } }
public void DrawPoints() { int x = _rectangle._x; int y = _rectangle._y; int w = _rectangle._w; int h = _rectangle._h; SwinGame.DrawRectangle(SwinGame.ColorBlack(), x - w, y - h, w * 2, h * 2); // SwinGame.DrawRectangle(SwinGame.ColorBlack(), _rectangle._x - 1 - _rectangle._w , _rectangle._y - 1 - _rectangle._h, 2 + (_rectangle._w *2),2+( _rectangle._h *2)); //SwinGame.DrawRectangle(SwinGame.ColorWhite(), _rectangle._x - _rectangle._w, _rectangle._y - _rectangle._h, _rectangle._w *2, _rectangle._h *2); foreach (Point pt in ptList) { SwinGame.DrawCircle(SwinGame.ColorBlack(), pt._x, pt._y, 1); } if (divided) { NorthWest.DrawPoints(); NorthEast.DrawPoints(); SouthWest.DrawPoints(); SouthEast.DrawPoints(); } }
public void DisplayGame(GameData game) { SwinGame.ClearScreen(SwinGame.ColorWhite()); SwinGame.DrawBitmap("background", 0, 0); game.ply.drawPlayer(); game.bl.drawBall(game.ball); game.blk.DrawBlocks(game); game.itm.drawItem(game); SwinGame.DrawText("Score: " + game.ply.player.score.ToString() + " Lives: " + game.ply.player.lives.ToString(), SwinGame.ColorBlack(), 0, 0); SwinGame.RefreshScreen(60); }