Changeset 5936
- Timestamp:
- 2015-06-09 12:03:33 (7 years ago)
- Location:
- 2015/24/UunoT/Tasohyppelypeli2
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/24/UunoT/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.cs
r5923 r5936 18 18 Image pelaajanKuva = LoadImage("norsu"); 19 19 Image tahtiKuva = LoadImage("tahti"); 20 Image naamakuva = LoadImage ("Untitled"); 20 21 21 22 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 27 28 LuoKentta(); 28 29 LisaaNappaimet(); 30 //LuoNaama(0, 0); 29 31 30 32 … … 42 44 kentta.SetTileMethod('N', LisaaPelaaja); 43 45 kentta.SetTileMethod('T', LisaaTikkaat); 46 kentta.SetTileMethod('p', spawneri); 44 47 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 45 48 Level.CreateBorders(); … … 77 80 pelaaja1 = new PlatformCharacter(leveys, korkeus); 78 81 pelaaja1.Position = paikka; 82 pelaaja1.Tag = "pelaaja"; 79 83 pelaaja1.Mass = 4.0; 80 84 pelaaja1.Image = pelaajanKuva; … … 141 145 //} 142 146 //} 147 void LuoNaama(Vector paikka) 148 { 149 PhysicsObject naama = new PhysicsObject (50, 50); 150 //naama.Position = new Vector(x, y); 151 naama.Shape = Shape.Circle; 152 naama.Image =naamakuva; 153 naama.Brain = new FollowerBrain(pelaaja1); 154 Add (naama); 155 } 156 157 void spawneri(Vector paikka, double leveys, double korkeus) 158 { 159 Timer kutsuja = new Timer(); 160 kutsuja.Interval = 0.25; 161 kutsuja.Timeout += delegate { LuoNaama(paikka); }; 162 kutsuja.Start(); 163 } 143 164 } -
2015/24/UunoT/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.csproj.Debug.cachefile
r5923 r5936 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Untitled.xnb -
2015/24/UunoT/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/Tasohyppelypeli2.csproj.FileListAbsolute.txt
r5923 r5936 11 11 C:\MyTemp\UunoT\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\obj\x86\Debug\Tasohyppelypeli2.exe 12 12 C:\MyTemp\UunoT\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\obj\x86\Debug\Tasohyppelypeli2.pdb 13 C:\MyTemp\UunoT\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\Untitled.xnb -
2015/24/UunoT/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r5923 r5936 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Untitled.xnb -
2015/24/UunoT/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2Content/Tasohyppelypeli2Content.contentproj
r5923 r5936 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="Untitled.png"> 71 <Name>Untitled</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 69 76 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 70 77 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/24/UunoT/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2Content/kentta1.txt
r5923 r5936 1 * 2 ## 3 4 * * 5 ## ## 6 7 * * 8 ## ## ## 9 10 * * * * 11 ## ## ## ## 12 13 * * * * 14 ## ## ## ## T## 15 T 16 N T 17 ###################### 1 ##################################################################### 2 # # 3 # # 4 # # 5 # # 6 # # 7 # # 8 # # 9 # # 10 # # 11 # # 12 # # 13 # # 14 # # 15 # # 16 # # 17 # # 18 # # 19 # N # 20 #####################################################################
Note: See TracChangeset
for help on using the changeset viewer.