Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using Jypeli; |
---|
6 | |
---|
7 | namespace 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.