jakesgordon/javascript-tetris

Question: How to style blocks themselves?

Closed this issue · 2 comments

How would you go about adding background images instead of plain colors to the blocks?

For example, for the piece1, i would place attribute for each part of the piece : piece1[part=1], piece1[part=2], piece1[part=3], etc. And for each part, i make a style in the CSS for attach the appropriate background to draw the piece with all images.

I think for the piece1, i would place attribute for each part of the piece : piece1[part=1], piece1[part=2], piece1[part=3], etc. And for each part, i make a style in the CSS for attach the appropriate background to draw the piece with all images.