Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using SnakeProject;
  6. using System.Drawing;
  7.  
  8. namespace Snakey_Löfvenborg_Ståhl
  9. {
  10. [Serializable]
  11. class Kaka : BallSnakeFood
  12. {
  13. bool Russin;
  14. public Kaka(float x, float y, float radie, Color bgcolor, bool russin) : base(x,y)
  15. {
  16. Radius = radie;
  17. BGColor = bgcolor;
  18. Russin = russin;
  19. }
  20.  
  21. public override void Draw(Graphics g)
  22. {
  23.  
  24. if (Russin) g.FillEllipse(new SolidBrush(Color.RosyBrown),((int)Pos.X + (int)Radius)-5, ((int)Pos.Y + (int)Radius)-5, 10, 10);
  25.  
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement