- Timestamp:
- 2014-06-25 15:00:53 (8 years ago)
- Location:
- 2014/26/UunoT
- Files:
-
- 12 added
- 4 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/26/UunoT/testing/testing/testing/obj/x86/Debug/ContentPipeline-{BDDFC29C-71D4-4710-8DED-5A3CD06DACEF}.xml
r5089 r5106 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-06-25T11:02:12.2746612+03:00</Time> 38 <Time>2014-06-25T13:50:04.8018132+03:00</Time> 39 </Item> 40 <Item> 41 <Source>kakkakigkre.png</Source> 42 <Name>kakkakigkre</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\kakkakigkre.xnb</Output> 47 <Time>2014-06-25T14:31:22.1795335+03:00</Time> 39 48 </Item> 40 49 <BuildSuccessful>true</BuildSuccessful> -
2014/26/UunoT/testing/testing/testing/obj/x86/Debug/cachefile-{BDDFC29C-71D4-4710-8DED-5A3CD06DACEF}-targetpath.txt
r5073 r5106 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\kakkakigkre.xnb -
2014/26/UunoT/testing/testing/testing/obj/x86/Debug/testing.csproj.FileListAbsolute.txt
r5073 r5106 3 3 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\tahti.xnb 4 4 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\kentta1.xnb 5 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\testing.exe6 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\testing.pdb7 5 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Jypeli.dll 8 6 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Jypeli.xml 9 7 C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\testing.csprojResolveAssemblyReference.cache 10 8 C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 11 C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\testing.exe 12 C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\testing.pdb 9 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Content\kakkakigkre.xnb 10 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Lag elephant.exe 11 C:\MyTemp\UunoT\testing\testing\testing\bin\x86\Debug\Lag elephant.pdb 12 C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\Lag elephant.exe 13 C:\MyTemp\UunoT\testing\testing\testing\obj\x86\Debug\Lag elephant.pdb -
2014/26/UunoT/testing/testing/testing/testing.cs
r5089 r5106 14 14 IntMeter keratytEsineet; 15 15 16 16 PhysicsObject Portaali; 17 17 PlatformCharacter pelaaja1; 18 18 IntMeter laskuri; 19 19 TileMap kentta; 20 20 List<PhysicsObject> seinaPalat = new List<PhysicsObject>(); 21 21 Image mankuva = LoadImage("kakkakigkre"); 22 22 23 23 … … 54 54 55 55 kentta.SetTileMethod('p', spawneri); 56 kentta.SetTileMethod('V', Portaali);56 kentta.SetTileMethod('V', LuoPortaali); 57 57 kentta.SetTileMethod('S', Seina); 58 58 … … 81 81 tahti.Tag = "tahti"; 82 82 Add(tahti); 83 83 84 } 84 85 … … 91 92 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 92 93 AddCollisionHandler(pelaaja1, "pahis", PelaajaOsuu); 94 AddCollisionHandler(pelaaja1, "voitto", TormaaPortaaliin); 95 93 96 Add(pelaaja1); 94 97 } … … 102 105 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 103 106 Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 104 107 Keyboard.Listen(Key.R, ButtonState.Pressed, AloitaUusiPeli, "Restart"); 105 108 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 106 109 … … 133 136 void AddMonster(Vector paikka) 134 137 { 135 PhysicsObject man = new PhysicsObject(40.0, 40.0); 136 man.Shape = Shape.Star; 137 man.Color = Color.Yellow; 138 PhysicsObject man = new PhysicsObject(5.0, 5.0); 139 man.Image = mankuva; 140 141 138 142 man.Position = paikka; 139 143 man.Tag = "pahis"; 140 144 Add(man); 141 142 man.Brain = new LabyrinthWandererBrain(RUUDUN_KOKO, 100.0, "seinä"); 145 146 147 148 man.Brain = new RandomMoverBrain(); 143 149 Timer ajastin = new Timer(); 144 ajastin.Interval = 1.5;150 ajastin.Interval = 60.5678910111223412342352; 145 151 ajastin.Timeout += delegate { kranaatti(man); }; 146 152 ajastin.Start(); … … 149 155 150 156 151 void Monster() 152 { 153 154 } 157 155 158 156 159 … … 168 171 void kranaatti(PhysicsObject man) 169 172 { 170 Grenade kranu = new Grenade( 4.0);173 Grenade kranu = new Grenade(6.0); 171 174 man.Throw(kranu, Angle.FromDegrees(30), 10000); 172 175 kranu.Tag = "pahis"; … … 177 180 { 178 181 Timer kutsuja = new Timer(); 179 kutsuja.Interval = 60.0;182 kutsuja.Interval = 0.594321; 180 183 kutsuja.Timeout += delegate { AddMonster(paikka); }; 181 184 kutsuja.Start(); … … 189 192 void LuoPisteLaskuri(double x, double y) 190 193 { 191 laskuri = new IntMeter( 3);192 laskuri.MaxValue = 3;194 laskuri = new IntMeter(100000); 195 laskuri.MaxValue = 100000; 193 196 194 197 Label naytto = new Label(); … … 231 234 seina.Destroy(); 232 235 } 233 234 235 236 // MultiSelectWindow VoittoValikko = new MultiSelectWindow("Sinä Voitit!", 236 237 //"Uudestaa?", "Lopeta"); … … 245 246 246 247 } 247 void Portaali(Vector paikka, double leveys, double korkeus)248 { 249 P hysicsObject Portaali = new PhysicsObject (30.0, 30.0 );248 void LuoPortaali(Vector paikka, double leveys, double korkeus) 249 { 250 Portaali = new PhysicsObject (30.0, 30.0 ); 250 251 Portaali.Shape = Shape.Circle; 251 252 Portaali.Color = Color.Purple; 252 253 Portaali.Position = paikka; 254 Portaali.Tag = "voitto"; 255 253 256 Add (Portaali); 257 258 259 260 254 261 255 262 … … 266 273 267 274 } 268 void TormaaPortaaliin(PhysicsObject hahmo, PhysicsObject Portaali) 269 { 275 void TormaaPortaaliin(PhysicsObject pelaaja1, PhysicsObject kohde) 276 { 277 278 270 279 WIN(); 271 280 } … … 285 294 286 295 287 288 289 290 291 292 296 } -
2014/26/UunoT/testing/testing/testing/testing.csproj
r5073 r5106 9 9 <AppDesignerFolder>Properties</AppDesignerFolder> 10 10 <RootNamespace>testing</RootNamespace> 11 <AssemblyName> testing</AssemblyName>11 <AssemblyName>Lag elephant</AssemblyName> 12 12 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 13 13 <TargetFrameworkProfile>Client</TargetFrameworkProfile> … … 19 19 <ApplicationIcon>Game.ico</ApplicationIcon> 20 20 <Thumbnail>GameThumbnail.png</Thumbnail> 21 <IsWebBootstrapper>false</IsWebBootstrapper> 22 <ReferencePath>$(registry:HKEY_LOCAL_MACHINE\Software\Jypeli@Install_Dir)\lib\x86</ReferencePath> 21 23 <PublishUrl>publish\</PublishUrl> 22 24 <Install>true</Install> … … 31 33 <ApplicationRevision>0</ApplicationRevision> 32 34 <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 33 <IsWebBootstrapper>false</IsWebBootstrapper>34 35 <UseApplicationTrust>false</UseApplicationTrust> 35 36 <BootstrapperEnabled>true</BootstrapperEnabled> 36 <ReferencePath>$(registry:HKEY_LOCAL_MACHINE\Software\Jypeli@Install_Dir)\lib\x86</ReferencePath>37 37 </PropertyGroup> 38 38 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> -
2014/26/UunoT/testing/testing/testing/testing.csproj.Debug.cachefile
r5073 r5106 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\kakkakigkre.xnb -
2014/26/UunoT/testing/testing/testingContent/kentta1.txt
r5089 r5106 8 8 # #### 9 9 # ################### 10 #### ################################################################ 11 ##### ############################################### 12 ###### ## 13 ############ * ## 14 # ##################################SSSSSS################### 15 # ## p p## ## 16 # ## p p## p ## 17 ################### ######## ## 18 # ###### * ## 19 # ###################### ############ 10 #### ########################## 11 # # p # 12 # # # 13 # #### * # 14 # ########################################################### 15 # # ## 16 #* p # p ## 17 ################### # ## 18 # ### ###### ### *## 19 # ################# # ############ 20 # # ## 21 # ###### ####### ## 22 # ##################### ######## *p ## 23 # # pS ## 24 # # S ######## ## 25 # # V S #### ## 26 # # pS #### ## 27 # ##################### #### ## 28 # ##### p ## 20 29 # ## 21 # ###### ####### ## 22 # #####################p ####### p ## 23 # # S ## 24 # # S #### ## 25 # # V S #### ## 26 # # S #### ## 27 # #####################p #### ## 28 # ##### ## 29 # p ## ## 30 # * ## 31 # * ## 30 # ###### ## 31 # ## 32 32 ########################################################################## 33 33 ########################################################################## -
2014/26/UunoT/testing/testing/testingContent/testingContent.contentproj
r5073 r5106 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="kakkakigkre.png"> 71 <Name>kakkakigkre</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.
Note: See TracChangeset
for help on using the changeset viewer.