Changeset 1186
- Timestamp:
- 2010-07-08 14:14:52 (13 years ago)
- Location:
- 2010/27/Vekakart
- Files:
-
- 15 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Catch The Rainbow.csproj
r1171 r1186 89 89 </ItemGroup> 90 90 <ItemGroup> 91 <Content Include="Crossword_hand.png"> 92 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 93 </Content> 91 94 <Content Include="Game.ico" /> 92 95 <Content Include="GameThumbnail.png" /> 93 < Content Include="Kentta1.txt">94 <CopyToOutputDirectory> PreserveNewest</CopyToOutputDirectory>95 </ Content>96 <Resource Include="Kentta 1.txt"> 97 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 98 </Resource> 96 99 <Content Include="Max Mechanic.png"> 97 100 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> -
2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Content/Content.contentproj
r1114 r1186 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>d7cd8561-6f1e-412b-8a0e-ce4733215a3a</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="Crossword2.png"> 38 <Name>Crossword2</Name> 39 <Importer>TextureImporter</Importer> 40 <Processor>TextureProcessor</Processor> 41 </Compile> 42 </ItemGroup> 36 43 </Project> -
2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Peli.cs
r1171 r1186 11 11 12 12 Vector NopeusEteen = new Vector(200, 0); 13 14 PhysicsObject Crossword; 13 15 14 16 PlatformCharacter Max; … … 25 27 Camera.FollowedObject = Max; 26 28 27 TileMap ruudut = TileMap.FromFile("Kentta 1.txt");29 TileMap ruudut = TileMap.FromFile("Kentta 1.txt"); 28 30 ruudut ['='] = LuoPalikka; 29 31 ruudut['C'] = LuoRainbow; 32 ruudut['J'] = LuoCrossword; 30 33 ruudut.Insert(ruudunleveys, ruudunkorkeus); 31 34 … … 92 95 Max.Jump(1000); 93 96 } 97 PhysicsObject LuoCrossword() 98 { 99 Crossword = new PhysicsObject(35.0, 45.0); 100 Crossword.Image = Image.FromFile("Crossword_hand.png"); 101 102 Timer ajastin = new Timer(); 103 ajastin.Tag = Crossword; 104 ajastin.Interval = 1; 105 ajastin.Trigger += Tekoaly; 106 Add (ajastin); 107 ajastin.Start(); 108 return Crossword; 109 } 110 void Tekoaly(Timer sender) 111 { 112 PhysicsObject vihollinen = (PhysicsObject)sender.Tag; 113 double etaisyys = vihollinen.X - Max.X; 114 if (etaisyys < 0) 115 { 116 etaisyys = etaisyys * -1; 117 } 118 if (etaisyys < 150) 119 { 120 vihollinen.Image = LoadImage("Crossword2"); 121 } 122 sender.Start(); 123 } 124 94 125 } -
2010/27/Vekakart/Kentta1.txt
r1156 r1186 14 14 = = 15 15 = C = 16 = == 16 = ==== 17 17 = == 18 18 = == … … 28 28 = == = == 29 29 = == = == 30 = == = ===== ===== = J ==31 = == = = J ====================32 = C == = == == =======33 = == === == = == === ==34 = == == === == == = == == == ====== J= ==35 = == == === = == == == J ======================================= J ========================== ==36 = 1 J ==== == = J == == ======= C J== J == J C= ========30 = == = ==== ===== = J == 31 = == = == J ================== == 32 = C == = == ===== ===== == 33 = == == === == = == == == = == 34 = == == === == == === == == == ====== J == J = == 35 = 9 == == === = == == == J ====================================== === = J ========================== == 36 = 1 == J ==== == = J == == ======= C J == == J == J C= ======== 37 37 = =================================================================================================================================================================================================================================================================================================================== == ========
Note: See TracChangeset
for help on using the changeset viewer.