mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 08:49:44 +02:00
KeyBinding Fix? oO
This commit is contained in:
@@ -66,6 +66,7 @@ public class GameLoopD extends JFrame implements Runnable {
|
||||
gamePanel = new JPanel();
|
||||
gamePanel.setLayout(null);
|
||||
gamePanel.setPreferredSize(new Dimension(800,600));
|
||||
gamePanel.setFocusable(true);
|
||||
|
||||
actionPanel = new JPanel();
|
||||
actionPanel.setLayout(new GridLayout(1,1));
|
||||
@@ -104,11 +105,11 @@ public class GameLoopD extends JFrame implements Runnable {
|
||||
opponent03.setBounds(550,450,25,25);
|
||||
|
||||
|
||||
gamePanel.setFocusable(true);
|
||||
|
||||
kb = new KeyBindings(player01);
|
||||
gamePanel.addKeyListener(kb);
|
||||
|
||||
MapEngine me = new MapEngine(4);
|
||||
MapEngine me = new MapEngine(1);
|
||||
me.addAllToPanel(gamePanel);
|
||||
|
||||
Point spawnPoint = SpawnAssistant.getPathLocationOnGrid();
|
||||
|
||||
Reference in New Issue
Block a user