Square
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
1175c900a3
commit
842d655f33
@ -48,6 +48,16 @@ public class SigKeeper implements WindowFocusListener,KeyListener,MouseListener,
|
|||||||
GraphicsDevice screen = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
|
GraphicsDevice screen = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
|
||||||
frame.setLocation((screen.getDisplayMode().getWidth()-SCREEN_WIDTH)/2,(screen.getDisplayMode().getHeight()-SCREEN_HEIGHT)/2);
|
frame.setLocation((screen.getDisplayMode().getWidth()-SCREEN_WIDTH)/2,(screen.getDisplayMode().getHeight()-SCREEN_HEIGHT)/2);
|
||||||
panel.init();
|
panel.init();
|
||||||
|
for (int x=30;x<=100;x++) {
|
||||||
|
for (int y=30;y<=100;y++) {
|
||||||
|
if (y==30||y==100) {
|
||||||
|
panel.pixel[y*SCREEN_WIDTH+x]=0xFF;
|
||||||
|
} else
|
||||||
|
if (x==30||x==100){
|
||||||
|
panel.pixel[y*SCREEN_WIDTH+x]=0xFF00;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
new Thread() {
|
new Thread() {
|
||||||
public void run(){
|
public void run(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user