mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 11:29:46 +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 = new JPanel();
|
||||||
gamePanel.setLayout(null);
|
gamePanel.setLayout(null);
|
||||||
gamePanel.setPreferredSize(new Dimension(800,600));
|
gamePanel.setPreferredSize(new Dimension(800,600));
|
||||||
|
gamePanel.setFocusable(true);
|
||||||
|
|
||||||
actionPanel = new JPanel();
|
actionPanel = new JPanel();
|
||||||
actionPanel.setLayout(new GridLayout(1,1));
|
actionPanel.setLayout(new GridLayout(1,1));
|
||||||
@@ -104,11 +105,11 @@ public class GameLoopD extends JFrame implements Runnable {
|
|||||||
opponent03.setBounds(550,450,25,25);
|
opponent03.setBounds(550,450,25,25);
|
||||||
|
|
||||||
|
|
||||||
gamePanel.setFocusable(true);
|
|
||||||
kb = new KeyBindings(player01);
|
kb = new KeyBindings(player01);
|
||||||
gamePanel.addKeyListener(kb);
|
gamePanel.addKeyListener(kb);
|
||||||
|
|
||||||
MapEngine me = new MapEngine(4);
|
MapEngine me = new MapEngine(1);
|
||||||
me.addAllToPanel(gamePanel);
|
me.addAllToPanel(gamePanel);
|
||||||
|
|
||||||
Point spawnPoint = SpawnAssistant.getPathLocationOnGrid();
|
Point spawnPoint = SpawnAssistant.getPathLocationOnGrid();
|
||||||
|
|||||||
Reference in New Issue
Block a user