- Timestamp:
- 2010-07-29 11:32:09 (13 years ago)
- Location:
- 2010/30/aneesavi/Cyb0rg-City
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/30/aneesavi/Cyb0rg-City/Content/Content.contentproj
r1388 r1399 54 54 </Compile> 55 55 </ItemGroup> 56 <ItemGroup> 57 <Compile Include="Evil.png"> 58 <Name>Evil</Name> 59 <Importer>TextureImporter</Importer> 60 <Processor>TextureProcessor</Processor> 61 </Compile> 62 </ItemGroup> 56 63 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 57 64 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2010/30/aneesavi/Cyb0rg-City/Peli.cs
r1388 r1399 12 12 PlatformCharacter pelaaja1; 13 13 Image seppo = LoadImage("Seppo"); 14 PlatformCharacter vihollinen; 15 Image Evil = LoadImage("Evil"); 14 16 const int ruudunLeveys = 50; 15 17 const int ruudunKorkeus = 50; … … 34 36 ruudut['1'] = LuoPelaaja; 35 37 ruudut['x'] = LuoLaakepaketti; 38 ruudut['2'] = Luovihollinen; 36 39 ruudut.Insert(ruudunLeveys, ruudunKorkeus); 37 40 } … … 53 56 PhysicsObject LuoPelaaja() 54 57 { 55 pelaaja1 = new PlatformCharacter(1 00, 100);58 pelaaja1 = new PlatformCharacter(125, 125); 56 59 pelaaja1.Mass = 4.0; 57 60 pelaaja1.Image = seppo; … … 86 89 hahmo.Jump(voima); 87 90 } 91 92 PhysicsObject Luovihollinen() 93 { 94 vihollinen = new PlatformCharacter(200, 200); 95 vihollinen.Mass = 2.0; 96 vihollinen.Image = Evil; 97 vihollinen.LeftWalkingAnimation = new Animation(Image.Mirror(Evil)); 98 vihollinen.RightWalkingAnimation = new Animation(Evil); 99 Timer ajastin = new Timer(); 100 ajastin.Interval = 1.5; 101 ajastin.Trigger += KavelytaVihollista; 102 ajastin.Start(); 103 104 return vihollinen; 105 } 106 void KavelytaVihollista(Timer sender) 107 { 108 109 } 88 110 } -
2010/30/aneesavi/Cyb0rg-City/kentta.txt
r1388 r1399 14 14 = = 15 15 = = 16 = 1 16 = 1 2 = 17 17 = = 18 18 =========================================================================================================
Note: See TracChangeset
for help on using the changeset viewer.