- Timestamp:
- 2012-04-20 12:56:49 (11 years ago)
- Location:
- 2012/JAO/John
- Files:
-
- 8 added
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/JAO/John/norsupeli/norsupeli/norsupeli/bin/x86/Debug/Data/pisteet.xml
r2729 r2737 6 6 <Item Index="0" Type="Jypeli.ScoreItem, Jypeli4, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null"> 7 7 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 8 <Value> fsdg</Value>8 <Value>k</Value> 9 9 </Field> 10 10 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 11 <Value> 2</Value>11 <Value>15.5166977</Value> 12 12 </Field> 13 13 </Item> 14 14 <Item Index="1" Type="Jypeli.ScoreItem, Jypeli4, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null"> 15 15 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 16 <Value>f sdg</Value>16 <Value>fhd</Value> 17 17 </Field> 18 18 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 19 <Value> 2</Value>19 <Value>19.0833714999997</Value> 20 20 </Field> 21 21 </Item> 22 22 <Item Index="2" Type="Jypeli.ScoreItem, Jypeli4, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null"> 23 23 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 24 <Value> fsdg</Value>24 <Value>-</Value> 25 25 </Field> 26 26 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 27 <Value> 2</Value>27 <Value>999</Value> 28 28 </Field> 29 29 </Item> 30 30 <Item Index="3" Type="Jypeli.ScoreItem, Jypeli4, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null"> 31 31 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 32 <Value> fsdg</Value>32 <Value>-</Value> 33 33 </Field> 34 34 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 35 <Value> 2</Value>35 <Value>999</Value> 36 36 </Field> 37 37 </Item> 38 38 <Item Index="4" Type="Jypeli.ScoreItem, Jypeli4, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null"> 39 39 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 40 <Value> fsdg</Value>40 <Value>-</Value> 41 41 </Field> 42 42 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 43 <Value> 2</Value>43 <Value>999</Value> 44 44 </Field> 45 45 </Item> 46 46 <Item Index="5" Type="Jypeli.ScoreItem, Jypeli4, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null"> 47 47 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 48 <Value> fsdg3</Value>48 <Value>-</Value> 49 49 </Field> 50 50 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 51 <Value> 2</Value>51 <Value>999</Value> 52 52 </Field> 53 53 </Item> … … 57 57 </Field> 58 58 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 59 <Value> 0</Value>59 <Value>999</Value> 60 60 </Field> 61 61 </Item> … … 65 65 </Field> 66 66 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 67 <Value> 0</Value>67 <Value>999</Value> 68 68 </Field> 69 69 </Item> … … 73 73 </Field> 74 74 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 75 <Value> 0</Value>75 <Value>999</Value> 76 76 </Field> 77 77 </Item> … … 81 81 </Field> 82 82 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 83 <Value> 0</Value>83 <Value>999</Value> 84 84 </Field> 85 85 </Item> … … 87 87 </Field> 88 88 <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 89 <Value> fsdg3</Value>89 <Value>k</Value> 90 90 </Field> 91 91 </Object> -
2012/JAO/John/norsupeli/norsupeli/norsupeli/bin/x86/Debug/kentta1.txt
r2729 r2737 22 22 23 23 * * * * * * * * * * * * * * * 24 N##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM## 25 ######################################################################### 24 N##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM## 25 ########################################################################## -
2012/JAO/John/norsupeli/norsupeli/norsupeli/kentta1.txt
r2729 r2737 22 22 23 23 * * * * * * * * * * * * * * * 24 N##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM## 25 ######################################################################### 24 N##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM##MMM## 25 ########################################################################## -
2012/JAO/John/norsupeli/norsupeli/norsupeli/norsupeli.cs
r2729 r2737 14 14 const int RUUDUN_KOKO = 35; 15 15 IntMeter laskuri; 16 ScoreList topLista = new ScoreList(10, true, 0);16 ScoreList topLista = new ScoreList(10, true, 999); 17 17 List<Label> valikonKohdat; 18 18 Timer aikaLaskuri; … … 27 27 SoundEffect maaliAani = LoadSoundEffect("maali"); 28 28 Image mariobro = LoadImage("mariobro"); 29 Image supermariobro = LoadImage("supermariobro"); 29 30 30 31 public override void Begin() … … 35 36 { 36 37 ClearAll(); 37 valikonKohdat = new List<Label>(); 38 39 Label kohta1 = new Label("Aloita uusi peli"); 40 kohta1.Position = new Vector(0, 40); 41 valikonKohdat.Add(kohta1); 42 43 Label kohta2 = new Label("Lopeta"); 44 kohta2.Position = new Vector(0, -40); 45 valikonKohdat.Add(kohta2); 46 47 foreach (Label valikonKohta in valikonKohdat) 48 { 49 Add(valikonKohta); 50 } 51 52 Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaPeli, null); 53 Mouse.ListenOn(kohta2, MouseButton.Left, ButtonState.Pressed, Exit, null); 38 Level.Width = Screen.Width; 39 Level.Height = Screen.Height; 40 Level.Background.Image = supermariobro; 41 Level.Background.FitToLevel(); 42 43 MultiSelectWindow valikko = new MultiSelectWindow("", "Aloita peli", "Lopeta"); 44 valikko.ActiveColor = Color.Transparent; 45 valikko.ItemSelected += PainettiinValikonNappia; 46 Add(valikko); 47 48 //valikonKohdat = new List<Label>(); 49 50 //Label kohta1 = new Label("Aloita uusi peli"); 51 //kohta1.BorderColor = Color.Black; 52 //kohta1.Position = new Vector(0, 40); 53 //valikonKohdat.Add(kohta1); 54 55 //Label kohta2 = new Label("Lopeta"); 56 //kohta2.Position = new Vector(0, -40); 57 //valikonKohdat.Add(kohta2); 58 59 //foreach (Label valikonKohta in valikonKohdat) 60 //{ 61 // Add(valikonKohta); 62 //} 63 64 //Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaPeli, null); 65 //Mouse.ListenOn(kohta2, MouseButton.Left, ButtonState.Pressed, Exit, null); 54 66 55 67 Mouse.IsCursorVisible = true; 56 Mouse.ListenMovement(1.0, ValikossaLiikkuminen, null);68 // Mouse.ListenMovement(1.0, ValikossaLiikkuminen, null); 57 69 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, ""); 58 70 } … … 75 87 { 76 88 ClearAll(); 89 lukumaara = 0; 77 90 Gravity = new Vector(0.0, -900.0); 78 91 … … 188 201 if (kohde.Tag.ToString() == "M"){ 189 202 //AloitaPeli(); 190 MultiSelectWindow valikko = new MultiSelectWindow("",191 "Aloita uudelleen!");203 aikaLaskuri.Pause(); 204 MultiSelectWindow valikko = new MultiSelectWindow("", "Aloita uudelleen!"); 192 205 valikko.ItemSelected += PainettiinValikonNappia; 193 206 Add(valikko); … … 231 244 AloitaPeli(); 232 245 break; 233 246 case 1: 247 Exit(); 248 break; 234 249 } 235 250 } -
2012/JAO/John/norsupeli/norsupeli/norsupeli/norsupeli.csproj.Debug.cachefile
r2729 r2737 6 6 Content\supermario.xnb 7 7 Content\mariobro.xnb 8 Content\supermariobro.xnb 8 9 kentta1.txt -
2012/JAO/John/norsupeli/norsupeli/norsupeli/obj/x86/Debug/cachefile-{FD96ACD3-5DB8-47E3-8612-7F91F792881B}-targetpath.txt
r2729 r2737 6 6 Content\supermario.xnb 7 7 Content\mariobro.xnb 8 Content\supermariobro.xnb -
2012/JAO/John/norsupeli/norsupeli/norsupeli/obj/x86/Debug/norsupeli.csproj.FileListAbsolute.txt
r2729 r2737 15 15 D:\John\norsupeli\norsupeli\norsupeli\bin\x86\Debug\Content\supermario.xnb 16 16 D:\John\norsupeli\norsupeli\norsupeli\bin\x86\Debug\Content\mariobro.xnb 17 D:\John\norsupeli\norsupeli\norsupeli\bin\x86\Debug\Content\supermariobro.xnb -
2012/JAO/John/norsupeli/norsupeli/norsupeliContent/norsupeliContent.contentproj
r2729 r2737 91 91 </Compile> 92 92 </ItemGroup> 93 <ItemGroup> 94 <Compile Include="supermariobro.png"> 95 <Name>supermariobro</Name> 96 <Importer>TextureImporter</Importer> 97 <Processor>TextureProcessor</Processor> 98 </Compile> 99 </ItemGroup> 93 100 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 94 101 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2012/JAO/John/norsupeli/norsupeli/norsupeliContent/obj/x86/Debug/ContentPipeline.xml
r2729 r2737 65 65 <Time>2012-04-19T14:07:05.15625+03:00</Time> 66 66 </Item> 67 <Item> 68 <Source>supermariobro.png</Source> 69 <Name>supermariobro</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>D:\John\norsupeli\norsupeli\norsupeli\bin\x86\Debug\Content\supermariobro.xnb</Output> 74 <Time>2012-04-20T12:30:18.0857535+03:00</Time> 75 </Item> 67 76 <BuildSuccessful>true</BuildSuccessful> 68 77 <Settings> -
2012/JAO/John/rally/rally/rally/obj/x86/Debug/rally.csproj.FileListAbsolute.txt
r2729 r2737 7 7 D:\John\rally\rally\rally\obj\x86\Debug\rally.exe 8 8 D:\John\rally\rally\rally\obj\x86\Debug\rally.pdb 9 D:\John\rally\rally\rally\bin\x86\Debug\Content\auto.xnb -
2012/JAO/John/rally/rally/rally/rally.cs
r2729 r2737 7 7 using Jypeli.Widgets; 8 8 9 public class rally : PhysicsGame9 public class rally : TopDownPhysicsGame 10 10 { 11 Image olionKuva = LoadImage("auto"); 12 13 Automobile rally3d; 11 14 public override void Begin() 12 15 { 13 16 // TODO: Kirjoita ohjelmakoodisi tähän 14 Automobile rally3d = new Automobile(100,100); 17 Gravity = 50.0; 18 19 rally3d= new Automobile(100, 100); 20 //rally3d. 15 21 Add(rally3d); 22 rally3d.Acceleration = 500.0; 23 rally3d.Image = Image.Mirror( olionKuva); 24 rally3d.MomentOfInertia = 1.0; 25 rally3d.Restitution = 0.1; 26 rally3d.AngularDamping = 0.9; 27 28 29 asetaohjain(); 30 Luorata(); 31 Level.CreateBorders(); 32 33 16 34 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 17 35 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 18 36 } 37 void asetaohjain() 38 { 39 40 Keyboard.Listen(Key.Up, ButtonState.Down, 41 kiihdyttaa, null, 100000000.0); 42 Keyboard.Listen(Key.Down, ButtonState.Down, 43 jarruta, null, 1.0); 44 Keyboard.Listen(Key.Left, ButtonState.Down, 45 kaanny, null, 10.0); 46 Keyboard.Listen(Key.Right, ButtonState.Down, 47 kaanny, null, -10.0); 48 } 49 50 void kaanny(double suunta) 51 { 52 rally3d.Turn(Angle.FromDegrees(suunta), 0.1); 53 // rally3d.Angle += Angle.FromDegrees(suunta); 54 } 55 56 void kiihdyttaa(double nopeus) 57 { 58 rally3d.Accelerate(); 59 } 60 61 void jarruta(double nopeus) 62 { 63 rally3d.Brake(); 64 } 65 void Luorata() 66 { 67 Vector[] reittiPisteet = new Vector[] 68 { 69 new Vector( Level.Left, Level.Top ), 70 new Vector( Level.Left, Level.Bottom ), 71 new Vector( Level.Right, Level.Bottom ), 72 new Vector( Level.Right, Level.Top ), 73 new Vector( Level.Left-75, Level.Top ), 74 75 // ... 76 }; 77 78 RoadMap tie = new RoadMap(reittiPisteet); 79 tie.DefaultWidth = 150.0; 80 tie.DefaultFriction = 1.0; 81 tie.Insert(); 82 } 19 83 } -
2012/JAO/John/rally/rally/rallyContent/obj/x86/Debug/ContentPipeline.xml
r2729 r2737 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>auto.png</Source> 6 <Name>auto</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>D:\John\rally\rally\rally\bin\x86\Debug\Content\auto.xnb</Output> 11 <Time>2012-04-20T11:57:44.1913353+03:00</Time> 12 </Item> 4 13 <BuildSuccessful>true</BuildSuccessful> 5 14 <Settings> … … 15 24 <Assemblies> 16 25 <Assembly> 26 <Key>C:\Program Files\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 27 <Value>2012-03-15T10:46:56+02:00</Value> 28 </Assembly> 29 <Assembly> 30 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 31 <Value>2010-08-23T12:41:18+03:00</Value> 32 </Assembly> 33 <Assembly> 34 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 35 <Value>2010-08-23T12:41:18+03:00</Value> 36 </Assembly> 37 <Assembly> 38 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 39 <Value>2010-08-23T12:41:18+03:00</Value> 40 </Assembly> 41 <Assembly> 42 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 43 <Value>2010-08-23T12:41:18+03:00</Value> 44 </Assembly> 45 <Assembly> 46 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 47 <Value>2010-08-23T12:41:18+03:00</Value> 48 </Assembly> 49 <Assembly> 50 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 51 <Value>2010-08-23T12:41:18+03:00</Value> 52 </Assembly> 53 <Assembly> 17 54 <Key>C:\WINDOWS\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 18 55 <Value>2012-04-02T16:44:17.671875+03:00</Value> -
2012/JAO/John/rally/rally/rallyContent/rallyContent.contentproj
r2729 r2737 44 44 <Reference Include="TextFileContentExtension" /> 45 45 </ItemGroup> 46 <ItemGroup> 47 <Compile Include="auto.png"> 48 <Name>auto</Name> 49 <Importer>TextureImporter</Importer> 50 <Processor>TextureProcessor</Processor> 51 </Compile> 52 </ItemGroup> 46 53 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 47 54 <!-- 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.