Remove sound player, edit readme
This commit is contained in:
parent
ef31b3cb03
commit
781fb1376d
20
Program.cs
20
Program.cs
@ -11,23 +11,6 @@ namespace Tetris
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
// Music player
|
||||
#if _WINDOWS
|
||||
SoundPlayer player = new SoundPlayer("song.wav");
|
||||
player.PlayLooping();
|
||||
#endif
|
||||
|
||||
//using (var audioFile = new AudioFileReader(audioFile)) using (
|
||||
//var outputDevice = new WaveOutEvent())
|
||||
//{
|
||||
// outputDevice.Init(audioFile);
|
||||
// outputDevice.Play();
|
||||
// while (outputDevice.PlaybackState == PlaybackState.Playing)
|
||||
// {
|
||||
// Thread.Sleep(1000);
|
||||
// }
|
||||
//}
|
||||
|
||||
Matrix matrix = new Matrix();
|
||||
Shape shape = new Shape(matrix);
|
||||
int previousScore = 0;
|
||||
@ -58,9 +41,6 @@ namespace Tetris
|
||||
}
|
||||
|
||||
System.Threading.Thread.Sleep(Speed.ShowSpeed());
|
||||
#if _WINDOWS
|
||||
player.Stop();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
17
README.md
17
README.md
@ -1,5 +1,20 @@
|
||||
# Tetris
|
||||
|
||||
[](https://github.com/foglar/Tetris/actions/workflows/dotnet.yml)
|
||||
|
||||
## Compilation and running
|
||||
|
||||
```bash
|
||||
git clone https://github.com/foglar/Tetris.git
|
||||
cd Tetris
|
||||
dotnet run ./
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> For some weird cause it won't run when executed through Visual Studio on Windows.
|
||||
> Run it in terminal instead with command above.
|
||||
|
||||
## Simple tetris game
|
||||
|
||||
- [SRS specifications](./TetrominoSRS.md)
|
||||
- [SRS](./TetrominoSRS.md)
|
||||
- [FS](./TetrominoFS.md) - Not ready yet
|
||||
|
||||
@ -6,7 +6,7 @@ Date: 20/09/2024
|
||||
|
||||
## Table of Contents
|
||||
|
||||
1. Document Edit History
|
||||
1. Document Edit History
|
||||
2. Introduction
|
||||
3. Service Development
|
||||
4. Service Purpose
|
||||
|
||||
Loading…
Reference in New Issue
Block a user