- Timestamp:
- 2016-06-07 19:48:34 (7 years ago)
- Location:
- 2016/23/ohjaajat/Punasininen/Punasininen
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/23/ohjaajat/Punasininen/Punasininen/Punasininen/Punasininen.cs
r7197 r7198 18 18 private Image bluepic; 19 19 private Image redpic; 20 DoubleMeter percentageTracker; 20 21 21 DoubleMeter percentageTracker;22 private Shader shader; 22 23 23 24 public override void Begin() 24 25 { 26 IsMouseVisible = true; // <- voi ottaa pois 27 shader = new Shader(GraphicsDevice, Content, Camera); 28 25 29 //Gravity = new Vector(0, -1000); 26 30 CreateLevel(); … … 139 143 Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Ohjeet"); 140 144 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Lopeta"); 145 146 Mouse.Listen(MouseButton.Left, ButtonState.Pressed, () => shader.NewWave(Mouse.PositionOnWorld), null); 141 147 } 142 148 … … 159 165 } 160 166 167 protected override void Draw(Microsoft.Xna.Framework.GameTime gameTime) 168 { 169 //shader.Draw(gameTime, base.Draw); 161 170 171 shader.Draw(gameTime); 172 base.Draw(gameTime); 173 shader.DrawEnd(gameTime); 174 } 162 175 } -
2016/23/ohjaajat/Punasininen/Punasininen/Punasininen/Punasininen.csproj
r7184 r7198 14 14 <XnaFrameworkVersion>v4.0</XnaFrameworkVersion> 15 15 <XnaPlatform>Windows</XnaPlatform> 16 <XnaProfile> Reach</XnaProfile>16 <XnaProfile>HiDef</XnaProfile> 17 17 <XnaCrossPlatformGroupID>f540c567-72a8-4eab-bbcb-52fdfdf661a1</XnaCrossPlatformGroupID> 18 18 <XnaOutputType>Game</XnaOutputType> … … 115 115 <Compile Include="Punasininen.cs" /> 116 116 <Compile Include="Properties\AssemblyInfo.cs" /> 117 <Compile Include="Shader.cs" /> 118 <Compile Include="WeaponCrate.cs" /> 117 119 </ItemGroup> 118 120 <ItemGroup> -
2016/23/ohjaajat/Punasininen/Punasininen/PunasininenContent/PunasininenContent.contentproj
r7182 r7198 52 52 </Compile> 53 53 </ItemGroup> 54 <ItemGroup> 55 <Compile Include="Shockwave.fx"> 56 <Name>Shockwave</Name> 57 <Importer>EffectImporter</Importer> 58 <Processor>EffectProcessor</Processor> 59 </Compile> 60 </ItemGroup> 54 61 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 55 62 <!-- 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.