Create a simple C with SDL library or just a text-based game.
- SidoShiro
- Felix LΓ©on
Use: [ASM][BONUS]
Check the license document of this repository.
Hello!
Soon it's holidays, and for most of you the exchange semester. This subject is written in English as a little training before your fantastic trip.
2048 is the easy one
You have to make a game, choosing one of these (or doing both of them):
- Tetris-like game
- 2048-like game
Precise the headers & library used, dependencies
Your Makefile should work, with the dependencies you have written in the README.
Your README should explain EVERYTHING, max 200 lines.
You need to follow this architecture of submission, in our school git.
AUTHORS file should be correct like:
* login
game_bonus/
|
|__________AUTHORS
|
|__________README
|
|__________TODO
|
|__________Makefile
|
|__________src_tetris/
| |
| |_______*.c // Meaning all your .c files
|
|__________src_twothousantfortyeight/
| |
| |_______*.c // ... same
|
|__________include/
|
|_______*.h // Meaning all your .h files
Here a begining of a Makefile in order to have a good start.
CC = gcc
CFLAGS = -std=c99 -pedantic -Wextra -Wall -Werror -Iinclude
SRC_TETRIS = # put the tetris .c files here
SRC_TTFE = # put the twothousantfortyeight .c files here
all: # put here tetris or/and twothousandfortyeight
tetris:
$(CC) $(CFLAGS) $(SRC) -o tetris
twothousandfortyeight:
$(CC) $(CFLAGS) $(SRC) -o twothousandfortyeight
clean:
$(RM) *.o tetris twothousantfortyeight
/!\ You can choose to do tetris or/and 2048 (of course if you do the two games correctly your grade will be the best
Make a console mode tetris game. The game should take place in a 20x10 array of blocks. Border should be printed by a special ascii symbol of your choice.
Fill carefully your README: explain how to make, execute and play the game.
Core Features
- Handle collisions
- Have at least the square of 4 blocks
- Handle lose
- Handle the line removal if a full line of blocks is completed
Advance Features
- 5 types of piece
- square of 4 blocks
- bar of 4 blocks
- T of 4 blocks
- L of 5 blocks
- S of 4 blocks
square:
##
##
bar:
####
T:
#
###
S:
##
##
- Handle score - write in README the points computation used
- Handle piece rotation
- Handle randomness of piece spawning
Advance+ Features
- Main Menu (Play, See Scores, Exit)
- Score board, may write a file tetris.score in the current directory of the binary
- Add more pieces
- Colors
Implement a console version of the 2048 game in C
The game should be playable using keyboard arrow keys and/or WASD
The board should be displayed in a pretty style
If this takes you more than 2 hours, you are doing something wrong.