Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using SnakeProject;
- using System.Drawing;
- namespace Snakey_Löfvenborg_Ståhl
- {
- [Serializable]
- class Kaka : BallSnakeFood
- {
- bool Russin;
- public Kaka(float x, float y, float radie, Color bgcolor, bool russin) : base(x,y)
- {
- Radius = radie;
- BGColor = bgcolor;
- Russin = russin;
- }
- public override void Draw(Graphics g)
- {
- if (Russin) g.FillEllipse(new SolidBrush(Color.RosyBrown),((int)Pos.X + (int)Radius)-5, ((int)Pos.Y + (int)Radius)-5, 10, 10);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement