Skip to content

with Basic idea, tetris game is made in c++ and SDL2

Notifications You must be signed in to change notification settings

Tolga-dev/TetrisWithSDLCPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Tetris Game

  • Game Loop
    • event handler
      • keyboard *quit
    • Collision check
    • Down one time for every period
    • Draw

How does it work

Create Window

Render BackGround

Create a double dimensional array -> Elements are false

Draw array elements as different colour

select random object type, catching event select movement and rotation type

Render object

Every 500 sec later, move this object to one sub array

General information

in lib/include/Defines.h there is some defines u can play like me :D

url

url

url

About

with Basic idea, tetris game is made in c++ and SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published