There are multiple ways to implement the game Tetris,
from a game engine stand point.
If u were going to program it, how would i implement it?
Using objects or procedurally, etc.
Think of yours FIRST, post it, then read the rest of them
Its more fun that way
I'll go first
Each collection of blocks would be an object with a few
different properties, which could be altered to create
the different shapes, etc, meaning all objects would be from
the exact same class.
Each object would propagate thru a 2d array, from top to bottom going 'downwards'
Each object would respond to the keyboard input, moving,
changing shape, etc.
Once it comes to rest, a quick parse of the 2d array will
reveal if a line is filled. If so, clear the line, drop
any necessary blocks, repeat. (probably recursive)
Loop back to the top.
PS: if this is a stupid threat, my apologies, but its 4:30 am
and I can't sleep
from a game engine stand point.
If u were going to program it, how would i implement it?
Using objects or procedurally, etc.
Think of yours FIRST, post it, then read the rest of them
Its more fun that way
I'll go first
Each collection of blocks would be an object with a few
different properties, which could be altered to create
the different shapes, etc, meaning all objects would be from
the exact same class.
Each object would propagate thru a 2d array, from top to bottom going 'downwards'
Each object would respond to the keyboard input, moving,
changing shape, etc.
Once it comes to rest, a quick parse of the 2d array will
reveal if a line is filled. If so, clear the line, drop
any necessary blocks, repeat. (probably recursive)
Loop back to the top.
PS: if this is a stupid threat, my apologies, but its 4:30 am
and I can't sleep