SplashScreen müsste jetzt funktionieren (wenn ich nichts vergessen hab (kann ja nicht testen)) & Ordner sounds angelegt mit "step.wav" als Soundeffekt

This commit is contained in:
Wafa Sadri
2014-05-09 17:40:48 +02:00
parent a9399b39d5
commit 1d3e1c68ab
3 changed files with 5 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
<PlatformTarget>x86</PlatformTarget>
<ConsolePause>False</ConsolePause>
<additionalargs>/unsafe</additionalargs>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>none</DebugType>
@@ -31,6 +32,7 @@
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
<ConsolePause>False</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>

BIN
sounds/step.wav Normal file

Binary file not shown.

View File

@@ -1,5 +1,6 @@
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace WorldOfPeacecraft
@@ -18,11 +19,8 @@ namespace WorldOfPeacecraft
protected override void OnPaint (PaintEventArgs e)
{
Graphics g = e.Graphics;
}
public void PaintImage(Graphics g)
{
g.DrawImage (Logo, 100, 20, 450, 150);
g.InterpolationMode = InterpolationMode.Low;
g.DrawImage (Logo, 0, 0, 450, 150);
}
}
}