Changeset 2453 for 2011/23/anlakane
- Timestamp:
- 2011-07-25 14:36:10 (12 years ago)
- Location:
- 2011/23/anlakane/SpeedKing/SpeedKing
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/anlakane/SpeedKing/SpeedKing/SpeedKing/Peli.cs
r2014 r2453 39 39 public override void Begin() 40 40 { 41 ClearAll(); 41 42 Phone.DisplayResolution = DisplayResolution.Large; 42 //Phone.DisplayResolution = DisplayResolution.Small; 43 topten.Text = ""; 43 topten.Text = "SpeedKing Hall of Fame"; 44 44 painikkeet = new List<GameObject>(); 45 45 painamattomat = new List<GameObject>(); … … 48 48 Level.Width = 800; 49 49 Level.Height = 480; 50 51 Level.Background.Image = LoadImage("alkukuva"); 52 Level.Background.Size = new Vector(Level.Width, Level.Height); 53 TouchPanel.Listen(ButtonState.Pressed, delegate(Touch t) { AlustaPeli(); }, null); 54 PhoneBackButton.Listen(Exit, ""); 55 56 } 57 58 void AlustaPeli() 59 { 50 60 Level.Background.Image = LoadImage("tausta"); 51 61 Level.Background.Size = new Vector(Level.Width, Level.Height); … … 64 74 65 75 LisaaPistenaytto(); 66 AloitaPeli(); 67 76 AloitaPeliJaResetoiKosketus(); 77 } 78 79 public override void Continue() 80 { 81 Begin(); 68 82 } 69 83 … … 141 155 142 156 TouchPanel.Listen(ButtonState.Pressed, NayttoaPainettu, null); 143 144 //Keyboard.Listen(Key.J, ButtonState.Pressed, NappainPainettu, null, 4); 145 //Keyboard.Listen(Key.K, ButtonState.Pressed, NappainPainettu, null, 5); 146 //Keyboard.Listen(Key.L, ButtonState.Pressed, NappainPainettu, null, 6); 147 //Keyboard.Listen(Key., ButtonState.Pressed, NappainPainettu, null, 7); 157 PhoneBackButton.Listen(Begin, ""); 148 158 149 159 #region debug … … 210 220 topten.EnterAndShow(montakoPainikettaPainettu); 211 221 Keyboard.Listen(Key.Enter, ButtonState.Pressed, AloitaPeli, null); 212 TouchPanel.Listen(ButtonState.Pressed, AloitaPeliJaResetoiKosketus, null);213 } 214 215 void AloitaPeliJaResetoiKosketus( Touch touch)222 TouchPanel.Listen(ButtonState.Pressed, delegate { AloitaPeliJaResetoiKosketus(); }, null); 223 } 224 225 void AloitaPeliJaResetoiKosketus() 216 226 { 217 227 ClearControls(); -
2011/23/anlakane/SpeedKing/SpeedKing/SpeedKing/SpeedKing.csproj
r1747 r2453 66 66 </PropertyGroup> 67 67 <ItemGroup> 68 <ProjectReference Include="..\..\..\..\..\..\..\ Jypeli\trunk\Jypeli\Windows Phone Copy of Jypeli.csproj">68 <ProjectReference Include="..\..\..\..\..\..\..\trunk\Jypeli\Windows Phone Copy of Jypeli.csproj"> 69 69 <Project>{2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}</Project> 70 70 <Name>Windows Phone Copy of Jypeli</Name> -
2011/23/anlakane/SpeedKing/SpeedKing/SpeedKingContent/SpeedKingContent.contentproj
r1747 r2453 116 116 </Compile> 117 117 </ItemGroup> 118 <ItemGroup> 119 <Compile Include="alkukuva.jpg"> 120 <Name>alkukuva</Name> 121 <Importer>TextureImporter</Importer> 122 <Processor>TextureProcessor</Processor> 123 </Compile> 124 </ItemGroup> 118 125 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 119 126 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.