Skip to content

spynetS/ctrisr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTRISR

Discription

Ctrisr is a Tetris clone written in c with a terminal renderer library i made, the library

The printer library is only written with libc. I move the cursor with terminal prints like

    printf("\033[%d;%dH", y, x);

Mechanics

  • A preview of where the shape is going to land
  • You move sideways with AD, rotate with W and drop on SPACE

I have not figured out how to use the arrow keys so this is a improvment potential

  • With the E key you can hold or get the holded shape.
  • The next 3 shapes are showed.

Install

Source

Git clone and then run ./run.sh. That simple script will just build it and output to a.out

Aur

There is a package on aur here

to install

yay -S ctrisr-git

then run

ctrisr

About

Tetris clone in terminal only stdlib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages