- Timestamp:
- 2010-06-09 10:34:40 (13 years ago)
- Location:
- 2010/23/ekeimaja/Labyrinth
- Files:
-
- 12 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/ekeimaja/Labyrinth/Labyrinth/Content/Content.contentproj
r567 r593 1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 2 2 <PropertyGroup> 3 3 <ProjectGuid>3492c2a5-fbfb-4dc6-903e-2291beb7e382</ProjectGuid> … … 34 34 <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 35 35 </ItemGroup> 36 <ItemGroup> 37 <Compile Include="food.png"> 38 <Name>food</Name> 39 <Importer>TextureImporter</Importer> 40 <Processor>TextureProcessor</Processor> 41 </Compile> 42 <Compile Include="monster.png"> 43 <Name>monster</Name> 44 <Importer>TextureImporter</Importer> 45 <Processor>TextureProcessor</Processor> 46 </Compile> 47 <Compile Include="player1.png"> 48 <Name>player1</Name> 49 <Importer>TextureImporter</Importer> 50 <Processor>TextureProcessor</Processor> 51 </Compile> 52 <Compile Include="player2.png"> 53 <Name>player2</Name> 54 <Importer>TextureImporter</Importer> 55 <Processor>TextureProcessor</Processor> 56 </Compile> 57 <Compile Include="tausta.png"> 58 <Name>tausta</Name> 59 <Importer>TextureImporter</Importer> 60 <Processor>TextureProcessor</Processor> 61 </Compile> 62 <Compile Include="wall.png"> 63 <Name>wall</Name> 64 <Importer>TextureImporter</Importer> 65 <Processor>TextureProcessor</Processor> 66 </Compile> 67 </ItemGroup> 36 68 </Project> -
2010/23/ekeimaja/Labyrinth/Labyrinth/Labyrinth.csproj
r592 r593 87 87 </ItemGroup> 88 88 <ItemGroup> 89 <Content Include="food.png" /> 89 90 <Content Include="Game.ico" /> 90 91 <Content Include="GameThumbnail.png" /> … … 92 93 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 93 94 </Content> 95 <Content Include="monster.png" /> 96 <Content Include="player1.png" /> 97 <Content Include="player2.png" /> 98 <Content Include="tausta.png" /> 94 99 </ItemGroup> 95 100 <ItemGroup> -
2010/23/ekeimaja/Labyrinth/Labyrinth/Peli.cs
r592 r593 20 20 var merkit = new Dictionary<char, ObjectCreator>(); 21 21 merkit['x'] = LuoSeina; 22 //merkit['D'] = LuoHirvio;23 //merkit['0'] = LuoRuoka;24 //merkit['1'] = LuoPelaaja1;22 merkit['D'] = LuoHirvio; 23 merkit['0'] = LuoRuoka; 24 merkit['1'] = LuoPelaaja1; 25 25 //merkit['2'] = LuoPelaaja2; 26 26 27 27 char[,] ruudut = Tiles.ReadFromFile("kentta1.txt"); 28 28 29 Tiles.Insert(this, ruudut, merkit, RuudunLeveys, RuudunKorkeus); 30 Camera.ZoomToLevel(); 31 } 29 32 30 Tiles.Insert(this, ruudut, merkit, RuudunLeveys, RuudunKorkeus); 33 GameObject LuoPelaaja1() 34 { 35 GameObject Pelaaja1 = new GameObject(50.0,50.0); 36 Pelaaja1.Image = LoadImage("player1"); 37 Add(Pelaaja1); 38 return Pelaaja1; 39 } 31 40 32 Camera.ZoomToLevel(); 41 GameObject LuoHirvio() 42 { 43 GameObject Hirvio = new GameObject(50.0, 50.0); 44 Hirvio.Image = LoadImage("monster"); 45 Add(Hirvio); 46 return Hirvio; 47 } 33 48 34 49 GameObject LuoRuoka() 50 { 51 GameObject Ruoka = new GameObject(50.0, 50.0); 52 Ruoka.Image = LoadImage("food"); 53 Add(Ruoka); 54 return Ruoka; 35 55 } 36 56 -
2010/23/ekeimaja/Labyrinth/kentät/kentta2.txt
r572 r593 1 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16 x 17 x 2 x x 3 x x 4 x x 5 x x 6 x x 7 x x 8 x x 9 x x 10 x x 11 x x 12 x x 13 x x 14 x x 15 x x 16 x x 17 x x 18 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 19 19
Note: See TracChangeset
for help on using the changeset viewer.