Changeset 7473
- Timestamp:
- 2016-06-20 15:56:16 (7 years ago)
- Location:
- 2016/25/AaroV
- Files:
-
- 45 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/25/AaroV/Pong!/Pong!/Pong_/Pong_.cs
r7462 r7473 12 12 PhysicsObject oikeaReuna; 13 13 14 Vector nopeusYlos = new Vector(0, 700);15 Vector nopeusAlas = new Vector(0, - 700);14 Vector nopeusYlos = new Vector(0, 800); 15 Vector nopeusAlas = new Vector(0, -800); 16 16 PhysicsObject pallo; 17 17 PhysicsObject maila1; … … 33 33 { 34 34 pallo = new PhysicsObject(50, 50); 35 pallo.Shape = Shape. Circle;36 pallo.Color = Color. Emerald;35 pallo.Shape = Shape.Octagon; 36 pallo.Color = Color.Crimson; 37 37 38 38 maila1 = LuoMaila(Level.Left + 20.0, 0.0); … … 50 50 oikeaReuna = Level.CreateRightBorder(); 51 51 vasenReuna.Restitution = 1.0; 52 vasenReuna.IsVisible = false;52 oikeaReuna.IsVisible = false; 53 53 pallo.Restitution = 1.0; 54 54 Camera.ZoomToLevel(); … … 56 56 vasenReuna.Restitution = 1.0; 57 57 vasenReuna.IsVisible = false; 58 Level.Background.CreateGradient(Color. Red, Color.Turquoise);58 Level.Background.CreateGradient(Color.OrangeRed, Color.DarkBlue); 59 59 } 60 60 … … 125 125 return; 126 126 } 127 if ((nopeus.Y < 127 if ((nopeus.Y <=0) && (maila.Bottom < Level.Bottom)) 128 128 { 129 129 maila.Velocity = Vector.Zero; … … 146 146 { 147 147 IntMeter laskuri = new IntMeter(0); 148 laskuri.MaxValue = 10 ;148 laskuri.MaxValue = 100; 149 149 Label naytto = new Label(); 150 150 naytto.BindTo(laskuri); 151 151 naytto.X = x; 152 152 naytto.Y = y; 153 naytto.TextColor = Color. White;153 naytto.TextColor = Color.LightYellow; 154 154 naytto.BorderColor = Level.Background.Color; 155 155 naytto.Color = Level.Background.Color;
Note: See TracChangeset
for help on using the changeset viewer.