From 22e98a7a49ec699fb0c062b1957e5dbcdb73ee83 Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Tue, 7 Feb 2023 23:22:48 +0100 Subject: [PATCH] update --- src/main/java/PingPong/GamePanel.java | 11 +++++++++++ src/main/java/PingPong/Paddle.java | 3 +++ target/classes/PingPong/GamePanel.class | Bin 1251 -> 2007 bytes target/classes/PingPong/Paddle.class | Bin 261 -> 604 bytes target/classes/PingPong/Score.class | Bin 258 -> 383 bytes 5 files changed, 14 insertions(+) diff --git a/src/main/java/PingPong/GamePanel.java b/src/main/java/PingPong/GamePanel.java index 639d25a..fb3af78 100644 --- a/src/main/java/PingPong/GamePanel.java +++ b/src/main/java/PingPong/GamePanel.java @@ -25,17 +25,28 @@ public class GamePanel extends JPanel implements Runnable { + + + public void run() { } + public void draw(Graphics g) { score.draw(g); paddle_1.draw(g); paddle_2.draw(g); ball.draw(g); + } + public void move() { + + paddle_1.move(); + paddle_2.move(); + ball.move(); + } public void paint(Graphics g) { image = createImage(getWidth(), getHeight()); diff --git a/src/main/java/PingPong/Paddle.java b/src/main/java/PingPong/Paddle.java index 8818b4e..eb15f54 100644 --- a/src/main/java/PingPong/Paddle.java +++ b/src/main/java/PingPong/Paddle.java @@ -12,4 +12,7 @@ public class Paddle { public void released(KeyEvent e) { } + + public void move() { + } } diff --git a/target/classes/PingPong/GamePanel.class b/target/classes/PingPong/GamePanel.class index 6da66e176fe8e6b09e420e512c0ca34476b59989..7d69b478a9cb01d736ec9e040a0b0215c0ffceca 100644 GIT binary patch literal 2007 zcmZWqT~pge6g_JL1|z^G!7U_d10fAINerZ4se#sD0|G-_L!qP}RM=aiM95TxN>)BP~ zSe6Z2T5)utJBA(&G4wLyg>h>9oOREbm|gcX1bXI8+w>L%qEqSJJ_y7$^g|QqcB>6X z3M5KF<82km#W9GX7!n$i7#0}(@3KHw%`wgdQd1>`mo?73?5bm&9GO)&*MhjIVFW3G z-V>u%v*f|7K(d2U_Jf3ZSHX-53UNU1KpJ+tN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 P*GwosGDtdROhfYzKn^rn diff --git a/target/classes/PingPong/Paddle.class b/target/classes/PingPong/Paddle.class index 79e7e2d1030c28d0ea89577088cf0bb63aa2912f..4c524880858a1682bd8d33d824adcec5d9debbd4 100644 GIT binary patch literal 604 zcmaiw&rZTX5XQfOLJ^QZq9}?aMZGre$o=iOW06vs) zwk6S^h9>*XPG`PfX6NJc?H#~5I%VXLw_#OLK#|axiiL0j5ssbv(NuZ~p?Ic3m0S?= z-QLhfiBKP?a6E{(XCQn(kOb>8@;TI970SE$(@5$^F*1c6H}XU<6k3^l_0viwDke1D zHBO&Fz7|VDyX&Tdh-Kp3Xfc~8FYfn-1R4`sf7A%}Ov^ZyKH>0(SuSLlIJffo%3Lx8 zkJb4`taT7dS_V?2r1C>F*Pgsq<|&ozu_tCQ9Kq(rna={5)v<1I=5QpAh2vMy3tw_5 zvzoHe3TriM;JD2hp@urEF`x1=&|k(ff$?3=9mm3<49m`X{S1sxUH6_F>eLWoF<83iB{90!daN%?qR%8Tf!C H69Yd0hAIe( diff --git a/target/classes/PingPong/Score.class b/target/classes/PingPong/Score.class index 29c99b7a8811cc49e013adfe1d8791e8999242ee..52090d3343f69c1945c7d15944d20a5fe60f00b4 100644 GIT binary patch delta 179 zcmZo-`p?95>ff$?3=9mm3?dV`dd*o)=o z7#SGT85x8z7SsY9N delta 38 ucmey*)WpPf>ff$?3=9mm3<49mdM92~W@McBRf~~%vI3(xD+2=)13v)&LJDC3