Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Zmayka
- {
- Image im = Image.FromFile("stoormtroper-star-wars-512.png");
- public List<Point> XY { get; set; }
- public Zmayka()
- {
- XY.Add(new Point(50, 50));
- XY.Add(new Point(50, 50));
- XY.Add(new Point(50, 50));
- }
- public void Draw(PaintEventArgs e)
- {
- for (int i = 0; i < XY.Count; i++)
- {
- e.Graphics.DrawImage(im, XY[i].X, XY[i].Y, 50, 50);
- }
- }
- }
- public class apple
- {
- Image im = Image.FromFile("Rebel_icon.png");
- public List<Point> xy { get; set; }
- public apple()
- {
- xy.Add(new Point(50, 50));
- }
- public void Draw(PaintEventArgs e)
- {
- for (int i = 0; i < xy.Count; i++)
- {
- e.Graphics.DrawImage(im, xy[i].X, xy[i].Y, 50, 50);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement