Revision 835,
529 bytes
checked in by vilvaini, 13 years ago
(diff) |
tuunasin pongin ja tein muutaman uuden minipelin.
|
Line | |
---|
1 | using System; |
---|
2 | using Jypeli; |
---|
3 | using Jypeli.ScreenObjects; |
---|
4 | using Jypeli.Assets; |
---|
5 | |
---|
6 | public class Peli : PhysicsGame |
---|
7 | { |
---|
8 | protected override void Begin() |
---|
9 | { |
---|
10 | teeympyra(RandomGen.NextInt(-699, 699), RandomGen.NextInt(-449, 499), 40); |
---|
11 | } |
---|
12 | |
---|
13 | void teeympyra(double x, double y, double kuinkasuuri) |
---|
14 | { |
---|
15 | PhysicsObject pallo = new PhysicsObject(kuinkasuuri, kuinkasuuri); |
---|
16 | pallo.Shape = Shapes.Circle; |
---|
17 | pallo.X = x; |
---|
18 | pallo.Y = y; |
---|
19 | Add(pallo); |
---|
20 | |
---|
21 | } |
---|
22 | |
---|
23 | } |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.