Changeset 8987
- Timestamp:
- 2017-07-07 11:02:33 (6 years ago)
- Location:
- 2017/27/OskariL
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/OskariL/testiasdf/testiasdf/testiasdf/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r8942 r8987 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\OskariL\testiasdf\testiasdf\testiasdf\bin\x86\Debug\Content\1.xnb</Output> 38 <Time>2017-07-0 4T10:22:43.3836281+03:00</Time>38 <Time>2017-07-07T09:57:40.7963492+03:00</Time> 39 39 </Item> 40 40 <Item> … … 45 45 <Options>None</Options> 46 46 <Output>C:\MyTemp\OskariL\testiasdf\testiasdf\testiasdf\bin\x86\Debug\Content\2.xnb</Output> 47 <Time>2017-07-0 4T10:49:51.5094385+03:00</Time>47 <Time>2017-07-07T09:55:55.6763294+03:00</Time> 48 48 </Item> 49 49 <Item> … … 54 54 <Options>None</Options> 55 55 <Output>C:\MyTemp\OskariL\testiasdf\testiasdf\testiasdf\bin\x86\Debug\Content\3.xnb</Output> 56 <Time>2017-07-0 5T11:47:13.8055652+03:00</Time>56 <Time>2017-07-07T09:52:45.1220368+03:00</Time> 57 57 </Item> 58 58 <BuildSuccessful>true</BuildSuccessful> -
2017/27/OskariL/testiasdf/testiasdf/testiasdf/testiasdf.cs
r8942 r8987 19 19 20 20 PhysicsObject taso; 21 PhysicsObject taso2; 21 22 PhysicsObject ammus; 22 23 PhysicsObject maali; … … 126 127 kentta.SetTileMethod('P', LisaaTaso); 127 128 kentta.SetTileMethod('A', LisaaTahti); 129 kentta.SetTileMethod('M', LisaaViolettiPalikka); 128 130 kentta.SetTileMethod('N', LisaaPelaaja); 129 131 kentta.SetTileMethod('O', LisaaMaali); … … 133 135 Level.CreateHorizontalBorders(1,false, Color.Azure); 134 136 Level.Background.CreateStars(1000); 135 Light valo = new Light();136 valo.Intensity = 1.0;137 valo.Distance = 150;138 valo.X = -300.0;139 valo.Y = Level.Top - 100;140 Add(valo);141 142 137 143 138 LoadSoundEffect("maali"); … … 148 143 taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 149 144 taso.Position = paikka; 150 taso.Color = Color. Azure;145 taso.Color = Color.Purple; 151 146 taso.Tag = "taso"; 152 taso.Oscillate(new Vector(leveys, korkeus*2), 35, 0.7, 0, 0);147 taso.Oscillate(new Vector(leveys, -korkeus*2), 35, 0.7, 0, 0); 153 148 taso.CollisionIgnoreGroup = 1; 154 149 Add(taso); … … 163 158 Add(maali); 164 159 } 160 void LisaaViolettiPalikka(Vector paikka, double leveys, double korkeus) 161 { 162 taso2 = PhysicsObject.CreateStaticObject(leveys, korkeus); 163 taso2.Position = paikka; 164 taso2.Color = Color.Azure; 165 taso2.Tag = "taso"; 166 taso2.Oscillate(new Vector(leveys * 2, korkeus), 60, 0.35, 0, 0); 167 taso2.CollisionIgnoreGroup = 1; 168 Add(taso2); 169 } 165 170 void LisaaTahti(Vector paikka, double leveys, double korkeus) 166 171 { … … 168 173 PhysicsObject tahti = PhysicsObject.CreateStaticObject(leveys, korkeus); 169 174 tahti.Position = paikka; 170 tahti.Color = Color. BloodRed;171 tahti.Tag = "ta hti";175 tahti.Color = Color.Crimson; 176 tahti.Tag = "taso"; 172 177 tahti.Oscillate(new Vector(300, 100), 55, 0.65, 0, 0); 173 174 178 175 179 Add(tahti); … … 205 209 if(pelaaja1.Bottom < Level.Bottom + 20) 206 210 { 207 Explosion rajahdys = new Explosion( 100);211 Explosion rajahdys = new Explosion(300); 208 212 rajahdys.Position = pelaaja1.Position; 213 rajahdys.Image = null; 214 rajahdys.Color = Color.ForestGreen; 209 215 Add(rajahdys); 210 216 pelaaja1.Destroy(); … … 213 219 else if(pelaaja1.Top > Level.Top) 214 220 { 215 Explosion rajahdys = new Explosion( 100);221 Explosion rajahdys = new Explosion(300); 216 222 rajahdys.Position = pelaaja1.Position; 223 rajahdys.Image = null; 224 rajahdys.Color = Color.ForestGreen; 217 225 Add(rajahdys); 218 226 pelaaja1.Destroy(); … … 280 288 Add(ammus); 281 289 282 Vector vauhti = new Vector( 1000, -500);290 Vector vauhti = new Vector(800, 0); 283 291 ammus.Hit(vauhti); 284 292 } … … 286 294 { 287 295 288 Explosion rajahdys = new Explosion(1 00);296 Explosion rajahdys = new Explosion(150); 289 297 rajahdys.Position = ammus.Position; 298 rajahdys.Color = Color.ForestGreen; 299 rajahdys.Image = null; 290 300 Add(rajahdys); 291 301 ammus.Destroy(); … … 298 308 void Hyppaa(PlatformCharacter hahmo, double nopeus) 299 309 { 300 if (pelaajanhypyt =>0)310 if (pelaajanhypyt >= 0) 301 311 { 302 312 hahmo.ForceJump(nopeus); -
2017/27/OskariL/testiasdf/testiasdf/testiasdfContent/1.txt
r8886 r8987 1 ........P......................... 2 ......A....P...P....P...P....P.... 3 ...P....P.P.A..P.P.P..A..P..A.P... 4 .A..A..P.P.A....A...P..P..PA..P..P5 ..P...P.A.......P...P....P......A. 6 .A..P......A.P.P.A....P.....O..P.. 7 P ..A..A...APA.AP..P.....P.P..A....8 ..P..PP....P.A...P..P.A.P..P...... 9 .....P.N...P..PA...P..P.....A..... 10 .P....PPP............P..A......... 11 ...P...P...P..AA...A.AAPP......... 1 P 2 A P P P P P 3 P P P A M P M A M A P 4 A A M A A A M M PM M P 5 P P M M P P A 6 A M A M M A M O M 7 P A M AMP AM MP P M M 8 P PP P A M PM AA P 9 P N M MA P P A 10 P PPP P A 11 P M P AM M MMPP -
2017/27/OskariL/testiasdf/testiasdf/testiasdfContent/2.txt
r8886 r8987 1 A2 A P AAA P P3 A PA A A4 A AP PA PA5 A AP AA PO P P6 N A A P A A7 A P A AP P A APP8 A A PP PA AA AA A APA9 P PP P P P P10 P AA A P A A11 A P P P A 1 P 2 A P MM A P P 3 A M A A A 4 A AP M M A 5 M AP MM M O P P 6 N A P A M 7 M P A MP P M A AP 8 A M MM PA PM MA M MM A 9 M M P P P P P 10 P MA P M M A M M 11 A P P P A M P A -
2017/27/OskariL/testiasdf/testiasdf/testiasdfContent/3.txt
r8942 r8987 1 1 A P 2 2 P P A 3 A PA AAP P A P4 P P A A A A AA P A A5 PN P P P A6 AA A APA A PP AAA P AA7 A AA APO8 A A AA A PA P P AA A P9 A P A AA3 A PA PM P P A P 4 P P A M A M MA P A A 5 M N P P P A 6 AA A APAM MP M A A MM 7 A MA A M O 8 A A MP A PA M P MA A P 9 A P A M A 10 10 P P A AP A A P 11 11 P A A P PA P
Note: See TracChangeset
for help on using the changeset viewer.