Skip to content

🎮🕹️ In Tetris, players complete lines by moving differently shaped pieces (tetrominoes), which descend onto the playing field. The completed lines disappear and grant the player points, and the player can proceed to fill the vacated spaces. The game ends when the playing field is filled. The longer the player can delay this inevitable outcome, t…

Notifications You must be signed in to change notification settings

delpitec/Csharp_.NETFramework_WindowsForms_Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Tetris using C# and Windows Forms (.NET Framework)

Project description:
The project consists of the development of the world-famous Tetris game. The game implementation was done through matrices running the specific encoding for each board element, that is updated with each action on the form (Frontend). TOP10 scores are recorded in a SQL Server database with name and score fields.

tetris

Project status:
⏳ Developing

Project steps:

Gameboard:
✅ Gameboard (front)
✅ Gameboard (back)

Pieces:
✅ Pieces design
✅ Piece movimentations

Game intelligence:
✅ Piece colision
✅ Wall colision
❌ Speed acceleration according game time duration
✅ Full line detection
✅ Scoreboard refresh
✅ End game detection
✅ Game pause
✅ Game restart
✅ Game exit

Forms:
❌ Init game form
✅ Play Form
✅ Edit player name form
❌ Edit level dificult form
❌ Edit window theme form (colors)
✅ Game over form
✅ Highscores form

SQL Server communication:
✅ Read highscores stored - Top10
✅ Write new high score

 

Create the following SQL Server Data Base and column tables:

CREATE DATABASE TetrisDataBase

CREATE TABLE HighScores (
 PlayerName VARCHAR(50),
 Pontuation INT  
 );

INSERT INTO HighScores (PlayerName,Pontuation)
VALUES 
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0);

Connection string info:
This example I am using defaul user: User: sa | Password: (no password) as we can see in the following String Connection:

Tetris>Entities>DataBase>Connection

public Connection()
        {
            //SQL server connection string
            _connection.ConnectionString = @"Persist Security Info=False;User ID=sa;Initial Catalog=TetrisDataBase;Data Source=(local)";
        }

 

Contact me:

💼LinkedIn    📹Youtube    📸Instagram    📧E-mail   

About

🎮🕹️ In Tetris, players complete lines by moving differently shaped pieces (tetrominoes), which descend onto the playing field. The completed lines disappear and grant the player points, and the player can proceed to fill the vacated spaces. The game ends when the playing field is filled. The longer the player can delay this inevitable outcome, t…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages