Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Flow on C#

Name: VIPPER 2013-11-27 1:26

I need to do this game called Flow, this has to connect two separates point with one line, but the other lines can't touch the other ones. So, I'm using the MouseMove propertie but I need help with the intersections so the program can tell with a messagebox some kind of "error" o continue with the game

        List<Point> lista = new List<Point>();

              Main ()

           private void Form1_MouseMove(object sender, MouseEventArgs e)
        {
            Graphics g = this.CreateGraphics();
            Pen lapiz = new Pen(Color.Purple, 8);
            g.DrawRectangle(lapiz, new Rectangle(e.X, e.Y, 3, 3));

            lista.Add(new Point(e.X, e.Y));
            if (lista.Count > 1)
            {
                g.DrawLine(lapiz, lista[lista.Count - 1], lista[lista.Count - 2]);
            }

           
        }

Name: VIPPER 2014-01-04 14:13

>>1

Is your code better than Puppy Games? : http://www.puppygames.net

Name: VIPPER 2014-01-04 14:21

>>1
C#
There's your first problem. Why don't you just give up now, drop C#, and instead learn the magic of Perl?

Name: VIPPER 2014-01-08 22:31

Try implementing it in LISP

Don't change these.
Name: Email:
Entire Thread Thread List