- Timestamp:
- 2015-06-09 12:01:51 (8 years ago)
- Location:
- 2015/24/OttoK
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II.csproj.Debug.cachefile
r5909 r5931 4 4 Content\tahti.xnb 5 5 Content\kaupunkitausta.xnb 6 Content\auto1kuva.xnb 6 7 Content\kentta1.txt -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/Grand_Theft_Norsu_II.cs
r5909 r5931 9 9 public class Grand_Theft_Norsu_II : PhysicsGame 10 10 { 11 11 12 Image kaupunkitausta = LoadImage("kaupunkitausta"); 12 13 … … 17 18 const int RUUDUN_KOKO = 42; 18 19 20 21 19 22 PlatformCharacter pelaaja1; 20 23 21 24 Image pelaajanKuva = LoadImage("norsu"); 22 25 Image tahtiKuva = LoadImage("tahti"); 26 Image auto1kuva = LoadImage("auto1kuva"); 27 double hyppykerroin = 1.0; 23 28 24 29 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 29 34 SetWindowSize(1024, 768, true); 30 35 Gravity = new Vector(0, -1000); 36 37 Mouse.IsCursorVisible = true; 38 Vector paikkaRuudulla = Mouse.PositionOnScreen; 39 Vector paikkaKentalla = Mouse.PositionOnWorld; 31 40 32 41 LuoKentta(); … … 44 53 kentta.SetTileMethod('*', LisaaTahti); 45 54 kentta.SetTileMethod('N', LisaaPelaaja); 55 kentta.SetTileMethod('A', LuoAuto); 46 56 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 47 57 Level.CreateBorders(); … … 84 94 Add(pelaaja1); 85 95 86 PhysicsObject auto1 = new PhysicsObject(150 87 , 100); 88 auto1.Shape = Shape.Rectangle; 89 Add(auto1); 96 90 97 } 98 void MeneAutoon(PhysicsObject auto) 99 { 100 pelaaja1.Image = auto1kuva; 101 pelaaja1.Shape = Shape.FromImage(auto1kuva); 102 103 Vector autonPaikka = auto.Position; 104 105 106 107 108 } 109 110 91 111 92 112 … … 100 120 Keyboard.Listen(Key.W, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 101 121 Keyboard.Listen(Key.Space, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 122 Keyboard.Listen(Key.F2, ButtonState.Down, AvaaKirjoitusIkkuna, "Avaa kirjoitusikkunan"); 123 Keyboard.Listen(Key.LeftControl, ButtonState.Pressed, AsetaHyppykerroin, "Korkeampi hyppy", 1.5); 124 Keyboard.Listen(Key.LeftControl, ButtonState.Released, AsetaHyppykerroin, null, 1.0); 125 Mouse.Listen(MouseButton.Left, ButtonState.Pressed, TarkistaHiirenPainallus, "Objektin kohdalla toiminto"); 126 102 127 103 128 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); … … 107 132 ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 108 133 ControllerOne.ListenAnalog(AnalogControl.LeftStick, 2.0, 109 LiikutaPelaajaa, "Liikuta pelaajaa tattia pyörittämällä.");134 LiikutaPelaajaa, "Liikuta pelaajaa tattia pyörittämällä."); 110 135 Vector tatinAsento = ControllerOne.LeftThumbDirection; 111 136 … … 120 145 void Hyppaa(PlatformCharacter hahmo, double nopeus) 121 146 { 122 hahmo.Jump(nopeus );147 hahmo.Jump(nopeus*hyppykerroin); 123 148 } 124 149 … … 133 158 Vector tatinAsento = tatinTila.StateVector; 134 159 } 160 void TarkistaHiirenPainallus() 161 { 162 163 } 164 void LuoAuto(Vector paikka, double leveys, double korkeus) 165 { 166 PhysicsObject auto1 = new PhysicsObject(auto1kuva); 167 auto1.Shape = Shape.FromImage(auto1kuva); 168 auto1.Position = paikka+ new Vector(0, 40); 169 auto1.Image = auto1kuva; 170 auto1.Mass = 350; 171 Add(auto1); 172 173 } 174 void AvaaKirjoitusIkkuna() 175 { 176 InputWindow kysymysIkkuna = new InputWindow(""); 177 kysymysIkkuna.TextEntered += ProcessInput; 178 Add(kysymysIkkuna); 179 180 } 181 void ProcessInput(InputWindow ikkuna) 182 { 183 string vastaus = ikkuna.InputBox.Text; 184 // tehdään jotain vastauksella 185 } 186 void AsetaHyppykerroin(double haluttukerroin) 187 { 188 hyppykerroin = haluttukerroin; 189 } 135 190 } -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/bin/x86/Debug/Content/kentta1.txt
r5909 r5931 1 2 3 # # 4 # # 5 # # 6 # # 7 # # 8 # # 9 # ########## # 10 # # 11 # ### N # 12 # ##### # 13 # # 14 # # 15 # ######## # 16 # # 17 # # 18 # # 19 # # 20 # # 21 # # 22 # ### # 23 # #### # 1 ............................................................................................................................ 2 #..........................................................................................................................# 3 #..........................................................................................................................# 4 #..........................................................................................................................# 5 #..........................................................................................................................# 6 #..........................................................................................................................# 7 #..........................................................................................................................# 8 #.....................................##########...........................................................................# 9 #..........................................................................................................................# 10 #.....................................................###......N...........................................................# 11 #.........................................................#######..........................................................# 12 #..........................................................................................................................# 13 #............................................................................########......................................# 14 #..........................................................................................................................# 15 #..........................................................................................................................# 16 #..........................................................................................................................# 17 #..........................................................................................................................# 18 #..........................................................................................................................# 19 #..........................................................................................................................# 20 #............................................................................###...........................................# 21 #..........................................................A.............####..............................................# 24 22 ############################################################################################################################# -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/obj/x86/Debug/Grand Theft Norsu II.csproj.FileListAbsolute.txt
r5909 r5931 13 13 C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.txt 14 14 C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb 15 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.xnb 16 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\maali.xnb 17 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\norsu.xnb 18 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\tahti.xnb 19 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb 20 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.txt 21 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Grand Theft Norsu II.exe 22 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Grand Theft Norsu II.pdb 23 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Jypeli.dll 24 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Jypeli.xml 25 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Grand Theft Norsu II.csprojResolveAssemblyReference.cache 26 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 27 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Grand Theft Norsu II.exe 28 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\obj\x86\Debug\Grand Theft Norsu II.pdb 29 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\auto1kuva.xnb -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r5909 r5931 4 4 Content\tahti.xnb 5 5 Content\kaupunkitausta.xnb 6 Content\auto1kuva.xnb 6 7 Content\kentta1.txt -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/Grand Theft Norsu IIContent.contentproj
r5909 r5931 75 75 </Compile> 76 76 </ItemGroup> 77 <ItemGroup> 78 <Compile Include="auto1kuva.png"> 79 <Name>auto1kuva</Name> 80 <Importer>TextureImporter</Importer> 81 <Processor>TextureProcessor</Processor> 82 </Compile> 83 </ItemGroup> 77 84 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 78 85 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/kentta1.txt
r5909 r5931 1 2 3 # # 4 # # 5 # # 6 # # 7 # # 8 # # 9 # ########## # 10 # # 11 # ### N # 12 # ##### # 13 # # 14 # # 15 # ######## # 16 # # 17 # # 18 # # 19 # # 20 # # 21 # # 22 # ### # 23 # #### # 1 ............................................................................................................................ 2 #..........................................................................................................................# 3 #..........................................................................................................................# 4 #..........................................................................................................................# 5 #..........................................................................................................................# 6 #..........................................................................................................................# 7 #..........................................................................................................................# 8 #.....................................##########...........................................................................# 9 #..........................................................................................................................# 10 #.....................................................###......N...........................................................# 11 #.........................................................#######..........................................................# 12 #..........................................................................................................................# 13 #............................................................................########......................................# 14 #..........................................................................................................................# 15 #..........................................................................................................................# 16 #..........................................................................................................................# 17 #..........................................................................................................................# 18 #..........................................................................................................................# 19 #..........................................................................................................................# 20 #............................................................................###...........................................# 21 #..........................................................A.............####..............................................# 24 22 ############################################################################################################################# -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/obj/x86/Debug/ContentPipeline-.xml
r5909 r5931 8 8 <Processor>TextFileContentProcessor</Processor> 9 9 <Options>None</Options> 10 <Output>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.xnb</Output>11 <Time>2015-06-0 8T14:32:24.5276945+03:00</Time>10 <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kentta1.xnb</Output> 11 <Time>2015-06-09T11:37:03.6540905+03:00</Time> 12 12 </Item> 13 13 <Item> … … 17 17 <Processor>SoundEffectProcessor</Processor> 18 18 <Options>None</Options> 19 <Output>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\maali.xnb</Output>20 <Time>2015-06-0 8T11:10:26.2276117+03:00</Time>19 <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\maali.xnb</Output> 20 <Time>2015-06-09T09:45:39.6746138+03:00</Time> 21 21 </Item> 22 22 <Item> … … 26 26 <Processor>TextureProcessor</Processor> 27 27 <Options>None</Options> 28 <Output>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\norsu.xnb</Output>29 <Time>2015-06-0 8T11:10:26.2286117+03:00</Time>28 <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\norsu.xnb</Output> 29 <Time>2015-06-09T09:45:39.7214138+03:00</Time> 30 30 </Item> 31 31 <Item> … … 35 35 <Processor>TextureProcessor</Processor> 36 36 <Options>None</Options> 37 <Output>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\tahti.xnb</Output>38 <Time>2015-06-0 8T11:10:26.2306117+03:00</Time>37 <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\tahti.xnb</Output> 38 <Time>2015-06-09T09:45:39.7994138+03:00</Time> 39 39 </Item> 40 40 <Item> … … 44 44 <Processor>TextureProcessor</Processor> 45 45 <Options>None</Options> 46 <Output>C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb</Output> 47 <Time>2015-06-08T11:50:12.9666117+03:00</Time> 46 <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\kaupunkitausta.xnb</Output> 47 <Time>2015-06-09T09:45:39.7838138+03:00</Time> 48 </Item> 49 <Item> 50 <Source>auto1kuva.png</Source> 51 <Name>auto1kuva</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\auto1kuva.xnb</Output> 56 <Time>2015-06-09T10:28:52.7008223+03:00</Time> 48 57 </Item> 49 58 <BuildSuccessful>true</BuildSuccessful> … … 54 63 <BuildConfiguration>Debug</BuildConfiguration> 55 64 <CompressContent>false</CompressContent> 56 <RootDirectory>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\</RootDirectory>57 <LoggerRootDirectory>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\</LoggerRootDirectory>58 <IntermediateDirectory>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\</IntermediateDirectory>59 <OutputDirectory>C:\MyTemp\ OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\</OutputDirectory>65 <RootDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\</RootDirectory> 66 <LoggerRootDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\</LoggerRootDirectory> 67 <IntermediateDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\</IntermediateDirectory> 68 <OutputDirectory>C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu II\bin\x86\Debug\Content\</OutputDirectory> 60 69 </Settings> 61 70 <Assemblies> … … 66 75 <Assembly> 67 76 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 68 <Value>2011-09-01T1 7:22:30+03:00</Value>77 <Value>2011-09-01T16:22:30+03:00</Value> 69 78 </Assembly> 70 79 <Assembly> 71 80 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 72 <Value>2011-09-01T1 7:22:30+03:00</Value>81 <Value>2011-09-01T16:22:30+03:00</Value> 73 82 </Assembly> 74 83 <Assembly> 75 84 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 76 <Value>2011-09-01T1 7:22:30+03:00</Value>85 <Value>2011-09-01T16:22:30+03:00</Value> 77 86 </Assembly> 78 87 <Assembly> 79 88 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 80 <Value>2011-09-01T1 7:22:30+03:00</Value>89 <Value>2011-09-01T16:22:30+03:00</Value> 81 90 </Assembly> 82 91 <Assembly> 83 92 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 84 <Value>2011-09-01T1 7:22:30+03:00</Value>93 <Value>2011-09-01T16:22:30+03:00</Value> 85 94 </Assembly> 86 95 <Assembly> 87 96 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 88 <Value>2011-09-01T1 7:22:30+03:00</Value>97 <Value>2011-09-01T16:22:30+03:00</Value> 89 98 </Assembly> 90 99 <Assembly> … … 94 103 <Assembly> 95 104 <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> 96 <Value>201 2-03-16T14:33:25.4069086+02:00</Value>105 <Value>2014-04-22T23:59:39.5941331+03:00</Value> 97 106 </Assembly> 98 107 </Assemblies> -
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu IIContent/obj/x86/Debug/Grand Theft Norsu IIContent.contentproj.FileListAbsolute.txt
r5909 r5931 1 1 C:\MyTemp\OttoK\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\Grand Theft Norsu IIContent.contentprojResolveAssemblyReference.cache 2 C:\MyTemp\otoskinn\Grand Theft Norsu II\Grand Theft Norsu II\Grand Theft Norsu IIContent\obj\x86\Debug\Grand Theft Norsu IIContent.contentprojResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.