Changeset 5101
- Timestamp:
- 2014-06-25 14:56:37 (9 years ago)
- Location:
- 2014/26/TimoH
- Files:
-
- 5 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/Juoksupeli.cs
r5087 r5101 37 37 void LuoPelaaja(Vector paikka, double leveys, double korkeus) 38 38 { 39 Pelaaja = new PhysicsObject( 100.0, 100.0);39 Pelaaja = new PhysicsObject(50.0, 50.0); 40 40 Pelaaja.Position = paikka; 41 Pelaaja.Image = LoadImage("jonne"); 41 Pelaaja.Shape = Shape.Star; 42 //Pelaaja.Image = LoadImage("jonne"); 42 43 Add(Pelaaja); 43 44 } … … 54 55 void LisaaOhjaimet() 55 56 { 56 Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, 1000));57 Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(- 1000, 0));58 Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector( 1000, 0));59 Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, - 1000));57 Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, 2000)); 58 Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(-2000, 0)); 59 Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(2000, 0)); 60 Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, -2000)); 60 61 Keyboard.Listen(Key.R, ButtonState.Pressed, AloitaAlusta, "aloitaa pelin alusta"); 61 62 … … 72 73 void LuoVihu(Vector paikka, double leveys, double korkeus) 73 74 { 74 vihu = new PhysicsObject( 100, 100);75 vihu.Image = LoadImage(" images");75 vihu = new PhysicsObject(300, 50); 76 vihu.Image = LoadImage("puukko_04"); 76 77 vihu.Position = paikka; 77 78 Add(vihu); -
2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/Juoksupeli.csproj.Debug.cachefile
r5087 r5101 3 3 Content\jonne.xnb 4 4 Content\images.xnb 5 Content\puukko_04.xnb 5 6 Content\kentta.txt -
2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/bin/x86/Debug/Content/kentta.txt
r5087 r5101 1 ############################################################################ 2 #.......................................................................... #3 #.......................................................................... #4 #.......................................................................... #5 #.......................................................................... #6 #.......................................................................... #7 #.......................................................................... #8 #.......................................................................... #9 #.......................................................................... #10 #.... .......................#####..........................................#11 #.......................................................................... #12 #.......................................................................... #13 #..................................#....................................... #14 # p..........................#####............................v.............#15 #.......................................................................... #16 #.......................................................................... #17 #.......................................................................... #18 #.......................................................................... #19 #.......................................................................... #20 #.......................................................................... #21 #.......................................................................... #22 #.......................................................................... #23 #.......................................................................... #24 #.......................................................................... #25 #.......................................................................... #26 #.......................................................................... #27 #.......................................................................... #28 #.......................................................................... #29 #.......................................................................... #30 #.......................................................................... #31 ############################################################################ 1 ########################################################################################################################## 2 #........................................................................................................................# 3 #........................................................................................................................# 4 #........................................................................................................................# 5 #........................................................................................................................# 6 #........................................................................................................................# 7 #........................................................................................................................# 8 #........................................................................................................................# 9 #........................................................................................................................# 10 #....p......................#####........................................................................................# 11 #........................................................................................................................# 12 #.............................................................................................##################.........# 13 #..................................#..........................................................#................#.........# 14 #...........................#####..........................................................................v...#.........# 15 #..............................................................................................................#.........# 16 #.............................................................................................##################.........# 17 #........................................................................................................................# 18 #........................................................................................................................# 19 #........................................................................................................................# 20 #........................................................................................................................# 21 #........................................................................................................................# 22 #........................................................................................................................# 23 #........................................................................................................................# 24 #........................................................................................................................# 25 #........................................................................................................................# 26 #........................................................................................................................# 27 #........................................................................................................................# 28 #........................................................................................................................# 29 #........................................................................................................................# 30 #........................................................................................................................# 31 ########################################################################################################################## -
2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/obj/x86/Debug/ContentPipeline-{522A2DCB-7EC9-4788-A4D4-9C05B1FEF581}.xml
r5087 r5101 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\kentta.xnb</Output> 11 <Time>2014-06-25T1 0:55:08.493092+03:00</Time>11 <Time>2014-06-25T14:00:23.1522908+03:00</Time> 12 12 </Item> 13 13 <Item> … … 37 37 <Output>C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\images.xnb</Output> 38 38 <Time>2014-06-25T10:58:46.7569162+03:00</Time> 39 </Item> 40 <Item> 41 <Source>puukko_04.png</Source> 42 <Name>puukko_04</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\puukko_04.xnb</Output> 47 <Time>2014-06-25T12:29:28.4184851+03:00</Time> 39 48 </Item> 40 49 <BuildSuccessful>true</BuildSuccessful> -
2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/obj/x86/Debug/Juoksupeli.csproj.FileListAbsolute.txt
r5087 r5101 11 11 C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\jonne.xnb 12 12 C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\images.xnb 13 C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\obj\x86\Debug\Juoksupeli.csprojResolveAssemblyReference.cache 14 C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\puukko_04.xnb -
2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/obj/x86/Debug/cachefile-{522A2DCB-7EC9-4788-A4D4-9C05B1FEF581}-targetpath.txt
r5087 r5101 3 3 Content\jonne.xnb 4 4 Content\images.xnb 5 Content\puukko_04.xnb 5 6 Content\kentta.txt -
2014/26/TimoH/Juoksupeli/Juoksupeli/JuoksupeliContent/JuoksupeliContent.contentproj
r5087 r5101 74 74 </Compile> 75 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="puukko_04.png"> 78 <Name>puukko_04</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 </Compile> 82 </ItemGroup> 76 83 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 77 84 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/26/TimoH/Juoksupeli/Juoksupeli/JuoksupeliContent/kentta.txt
r5087 r5101 1 ############################################################################ 2 #.......................................................................... #3 #.......................................................................... #4 #.......................................................................... #5 #.......................................................................... #6 #.......................................................................... #7 #.......................................................................... #8 #.......................................................................... #9 #.......................................................................... #10 #.... .......................#####..........................................#11 #.......................................................................... #12 #.......................................................................... #13 #..................................#....................................... #14 # p..........................#####............................v.............#15 #.......................................................................... #16 #.......................................................................... #17 #.......................................................................... #18 #.......................................................................... #19 #.......................................................................... #20 #.......................................................................... #21 #.......................................................................... #22 #.......................................................................... #23 #.......................................................................... #24 #.......................................................................... #25 #.......................................................................... #26 #.......................................................................... #27 #.......................................................................... #28 #.......................................................................... #29 #.......................................................................... #30 #.......................................................................... #31 ############################################################################ 1 ########################################################################################################################## 2 #........................................................................................................................# 3 #........................................................................................................................# 4 #........................................................................................................................# 5 #........................................................................................................................# 6 #........................................................................................................................# 7 #........................................................................................................................# 8 #........................................................................................................................# 9 #........................................................................................................................# 10 #....p......................#####........................................................................................# 11 #........................................................................................................................# 12 #.............................................................................................##################.........# 13 #..................................#..........................................................#................#.........# 14 #...........................#####..........................................................................v...#.........# 15 #..............................................................................................................#.........# 16 #.............................................................................................##################.........# 17 #........................................................................................................................# 18 #........................................................................................................................# 19 #........................................................................................................................# 20 #........................................................................................................................# 21 #........................................................................................................................# 22 #........................................................................................................................# 23 #........................................................................................................................# 24 #........................................................................................................................# 25 #........................................................................................................................# 26 #........................................................................................................................# 27 #........................................................................................................................# 28 #........................................................................................................................# 29 #........................................................................................................................# 30 #........................................................................................................................# 31 ##########################################################################################################################
Note: See TracChangeset
for help on using the changeset viewer.