Recreation of Smiletris, a variation of the iconic Tetris game. Mainly new events. Made in Java, executable in console or in a window using javax.swing and java.awt.
Because, for the interface, I use two objects of different packages, they don't use the same units.
The JFrame from javax.swing is mesured in pixels, the Graphics2D from java.awt is mesured in MDI. I tried to convert from one to another but the only code I found uses a Context object which I would love to get to know but it is so undocumented I didn't find any way of using it.
Because, for the interface, I use two objects of different packages, they don't use the same units. The JFrame from javax.swing is mesured in pixels, the Graphics2D from java.awt is mesured in MDI. I tried to convert from one to another but the only code I found uses a Context object which I would love to get to know but it is so undocumented I didn't find any way of using it.