- Timestamp:
- 2010-06-09 10:10:26 (13 years ago)
- Location:
- 2010/23/ekeimaja/Labyrinth
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/ekeimaja/Labyrinth/Labyrinth/Labyrinth.csproj
r567 r592 89 89 <Content Include="Game.ico" /> 90 90 <Content Include="GameThumbnail.png" /> 91 <Content Include="kentta1.txt"> 92 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 93 </Content> 91 94 </ItemGroup> 92 95 <ItemGroup> -
2010/23/ekeimaja/Labyrinth/Labyrinth/Peli.cs
r591 r592 3 3 using Jypeli.ScreenObjects; 4 4 using Jypeli.Assets; 5 using System.Collections.Generic; 6 5 7 6 8 namespace Labyrinth // © Eki Majankallio 2010 … … 8 10 public class Peli : Game 9 11 { 12 const int RuudunLeveys = 50; 13 const int RuudunKorkeus = 50; 14 10 15 protected override void Begin() 11 16 { 12 17 18 19 20 var merkit = new Dictionary<char, ObjectCreator>(); 21 merkit['x'] = LuoSeina; 22 //merkit['D'] = LuoHirvio; 23 //merkit['0'] = LuoRuoka; 24 //merkit['1'] = LuoPelaaja1; 25 //merkit['2'] = LuoPelaaja2; 26 27 char[,] ruudut = Tiles.ReadFromFile("kentta1.txt"); 28 29 30 Tiles.Insert(this, ruudut, merkit, RuudunLeveys, RuudunKorkeus); 31 32 Camera.ZoomToLevel(); 33 34 13 35 } 36 37 PhysicsObject LuoSeina() 38 { 39 PhysicsObject seina = PhysicsObject.CreateStaticObject(50.0, 50.0); 40 seina.Shape = Shapes.Rectangle; 41 seina.Color = Color.Black; 42 return seina; 43 44 } 45 46 47 48 14 49 } 15 50 } -
2010/23/ekeimaja/Labyrinth/kentät/kentta1.txt
r571 r592 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 1 x 0 xxx D 0000000 x 3 x xxxxxx xxxxxxxxxxxx xxxxxxxxxxxxxxxxx 4 x x x 5 xxxxxxxxxxx xxxxxxxxx x x x 6 xxxxx 00 x x x x 000000 x 7 xx D x x x 8 xxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxx 9 x D 0 x D x 10 xxxxxxxx xx xxxxxxxxxxxxxxxxxxxxxx x 11 x 000000 x xx x 12 xxxxxxxxxxx xx xxxxxxxx 000000 x 13 x xx xxxxxxxx x 14 x xxxxxxxxxxxxx x 15 x xxxxxxxxxxxxxxxxx xxx xxxxxxxxxxx 16 x xxxxxxxxxxxxx Fx xxx xxxxxxxxxxx 17 x 2 xxxxxxxxxxxxx xxxxxxxxxxx 18 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 19 19
Note: See TracChangeset
for help on using the changeset viewer.