source: 2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Kuutio.cs @ 4371

Revision 4371, 640 bytes checked in by akansaja, 10 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6
7namespace Levypallo
8{
9   internal class Kuutio : PhysicsObject
10    {
11
12        public Kuutio(int indexY, int indexX,  Color vari)
13            : base(100, 100)
14        {
15
16
17
18
19            Color = vari;
20            X = indexX * 100 +50;
21            Y = (indexY + 2) * 100 + 50;
22            this.IgnoresGravity = true;
23            this.MakeStatic();
24            this.Restitution = 1.0;
25            this.Tag = "kuutio";
26            Levypallo.instance.Add(this);
27
28           
29           
30
31        }
32
33    }
34}
Note: See TracBrowser for help on using the repository browser.