old-java-games

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit baff240f93d3a2ab6ec262516fecb19311863495
parent 3cecd08b6a162eaef74c23b11e3de620bada85ae
Author: mpizzzle <michael.770211@gmail.com>
Date:   Fri,  1 Mar 2019 23:21:34 +0000

adding size for windowed mode

Diffstat:
MPong/src/PongGame.java | 2+-
MZombie/src/ZombieGame.java | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Pong/src/PongGame.java b/Pong/src/PongGame.java @@ -39,7 +39,7 @@ public class PongGame extends JFrame implements KeyListener, Runnable { pongGame.setLayout(null); pongGame.setBackground(Color.black); - + pongGame.setSize(RIGHTEDGE, BOTTOMEDGE); PongGame.area = new PongArea(pongGame); pongGame.add(area); //RIGHTEDGE = pongGame.getBounds().width - 1; diff --git a/Zombie/src/ZombieGame.java b/Zombie/src/ZombieGame.java @@ -40,6 +40,7 @@ public class ZombieGame extends JFrame implements KeyListener, Runnable { ZombieGame zombieGame = new ZombieGame(); zombieGame.setLayout(null); zombieGame.setBackground(Color.gray); + zombieGame.setSize(RIGHTEDGE, BOTTOMEDGE); area = new ZombieArea(zombieGame); zombieGame.add(area);