Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MLOD Mini Projet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yoann Bordin
MLOD Mini Projet
Commits
368f45fc
Commit
368f45fc
authored
Nov 02, 2020
by
Yoann Bordin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added game compiling instructions, rules, improvements
parent
13a4fb8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
README.md
README.md
+31
-2
No files found.
README.md
View file @
368f45fc
...
...
@@ -3,5 +3,34 @@ This project is based on the Tetris game invented by Alekseï Pajitnov in 1984.
The goal is to complete a maximum of lines in a grid with pieces (tetrominoes) that fall from the top.
# Building on Windows
This project works by compiling using Notepad++ for Raylib and adding the following files to the gcc command :
```tetris-struct.c tetris-graph.c```
\ No newline at end of file
This project works by compiling using Notepad++ for Raylib and including the following files to the gcc command :
```
tetris-struct.c tetris-graph.c```
# How to play
## Rules
The goal is to complete the maximum number of lines without reaching the top of the grid.\
The score represents the number of lines completed.\
The game starts at level 1. Every 10 lines the level increases and the pieces fall faster.
## Commands
```
LEFT
``` and ```
RIGHT
```
move the current falling piece to the left or to the right.
\
```
DOWN``` accelerate the fall of the piece.\
```A``` and ```Z``` (or ```Q``` and ```W``` on QWERTY) rotates the piece anticlockwise or clockwise.
# Project contents
```
lib
```
contains the raylib library (Windows version, need to be changed if used on other OS).
\
```
src```contains all the raylib files.\
```tetris-graph.c``` contains all the functions necessary for the graphical interface of the game.\
```
tetris-struct.c
```
contains the implementation of the structure of the game.
\
```tetris-main.c```
contains the game main loop.
\
```tetris.data```
is read by the program to initialize the different tetrominoes.
# Improvements
## Features that could be added
-
A title screen with a start button and an option to change the commands.
-
A scoreboard stored in a file.
-
A score that takes into account the tetrises completed by giving bonus points.
-
A representation of the piece going next.
## Known issues
-
The game can sometimes crash when spinning a piece at a specific time.
-
It is possible to overlap the fixed pieces in the grid when spinning a piece too fast.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment