old-java-games

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

commit 3cecd08b6a162eaef74c23b11e3de620bada85ae
parent 036f5f7fd7597d076866da9f56d831681addba13
Author: mpizzzle <michael.770211@gmail.com>
Date:   Fri,  1 Mar 2019 23:05:52 +0000

setting screen size

Diffstat:
MMario/src/MarioGame.java | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Mario/src/MarioGame.java b/Mario/src/MarioGame.java @@ -31,7 +31,7 @@ public class MarioGame extends JFrame implements KeyListener, Runnable { static int RIGHT = 0; // the next 2 constants are overridden in init once we know the screen size static int RIGHTEDGE = 789; - static int BOTTOMEDGE = 900; + static int BOTTOMEDGE = 800; static int PAGEWIDTH = 741; static Point IMAGESIZE = new Point(152, 107); @@ -166,7 +166,7 @@ public class MarioGame extends JFrame implements KeyListener, Runnable { MarioGame marioGame = new MarioGame(); marioGame.setLayout(null); marioGame.setBackground(Color.white); - + marioGame.setSize(RIGHTEDGE, BOTTOMEDGE); area = new MarioArea(marioGame); marioGame.add(area); //RIGHTEDGE = (marioGame.getBounds().width / XAMOUNT) * XAMOUNT + LEFTEDGE;