- Timestamp:
- 2010-07-08 11:08:03 (13 years ago)
- Location:
- 2010/27/Vekakart/Catch The Rainbow
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Catch The Rainbow.csproj
r1156 r1171 84 84 <Compile Include="Properties\AssemblyInfo.cs" /> 85 85 <Compile Include="Ohjelma.cs" /> 86 <Compile Include="Peli.cs" /> 86 <Compile Include="Peli.cs"> 87 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 88 </Compile> 87 89 </ItemGroup> 88 90 <ItemGroup> … … 90 92 <Content Include="GameThumbnail.png" /> 91 93 <Content Include="Kentta1.txt"> 94 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 95 </Content> 96 <Content Include="Max Mechanic.png"> 97 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 98 </Content> 99 <Content Include="Max Mechanic2.png"> 100 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 101 </Content> 102 <Content Include="Rainbow.png"> 92 103 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 93 104 </Content> -
2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Peli.cs
r1156 r1171 12 12 Vector NopeusEteen = new Vector(200, 0); 13 13 14 PlatformCharacter Chandler;14 PlatformCharacter Max; 15 15 16 16 protected override void Begin() 17 17 { 18 Luo Chandler();18 LuoMax(); 19 19 AsetaOhjaimet(); 20 20 LuoKentta(); … … 23 23 void LuoKentta() 24 24 { 25 Camera.FollowedObject = Chandler;25 Camera.FollowedObject = Max; 26 26 27 27 TileMap ruudut = TileMap.FromFile("Kentta1.txt"); … … 42 42 { 43 43 PhysicsObject Rainbow = PhysicsObject.CreateStaticObject(25, 25); 44 Rainbow.Image = Image.FromFile ("44 Rainbow.Image = Image.FromFile("Rainbow.png"); 45 45 return Rainbow; 46 46 } 47 47 48 void Luo Chandler()48 void LuoMax() 49 49 { 50 Chandler = new PlatformCharacter(20,45); 51 Chandler.Restitution = 0.0; 52 Chandler.CanRotate = false; 53 Chandler.X = -450; 54 Chandler.Y = -365; 55 Chandler.KineticFriction = 0.0; 56 Add (Chandler); 50 Max = new PlatformCharacter(35,45); 51 Max.Restitution = 0.0; 52 Max.CanRotate = false; 53 Max.X = -450; 54 Max.Y = -365; 55 Max.Image = Image.FromFile("Max Mechanic.png"); 56 Max.KineticFriction = 0.0; 57 Add (Max); 57 58 return; 58 59 } … … 72 73 void PelaajaLiikuEteenpain() 73 74 { 74 Chandler.Walk(200); 75 Max.Walk(300); 76 Max.Image = Image.FromFile("Max Mechanic.png"); 75 77 } 76 78 77 79 void PelaajaLiikuTaakse() 78 80 { 79 Chandler.Walk (-200); 81 Max.Walk (-300); 82 Max.Image = Image.FromFile("max mechanic2.png"); 80 83 } 81 84 … … 87 90 void PelaajaHypaa() 88 91 { 89 Chandler.Jump(1000);92 Max.Jump(1000); 90 93 } 91 94 }
Note: See TracChangeset
for help on using the changeset viewer.