formatting

This commit is contained in:
2026-04-19 14:41:10 -05:00
parent 9f790813bb
commit a803f5e759
31 changed files with 793 additions and 795 deletions

View File

@@ -1,21 +1,20 @@
import javax.swing.*;
public class Display {
public static void main(String[] args) {
int boardWidth = 800;
int boardHeight = 800;
int tileSize = 20;
JFrame game = new JFrame();
game.setSize(boardWidth, boardHeight);
game.setVisible(true);
game.setLocationRelativeTo(null);
game.setResizable(false);
Platformer platformer = new Platformer(boardWidth, boardHeight, tileSize);
game.add(platformer);
game.pack();
platformer.requestFocus();
}
}
public static void main(String[] args) {
int boardWidth = 800;
int boardHeight = 600;
int tileSize = 20;
JFrame game = new JFrame();
game.setSize(boardWidth, boardHeight);
game.setVisible(true);
game.setLocationRelativeTo(null);
game.setResizable(false);
Platformer platformer = new Platformer(boardWidth, boardHeight, tileSize);
game.add(platformer);
game.pack();
platformer.requestFocus();
}
}