# Pong game help me

**URL:** <https://discourse.processing.org/t/pong-game-help-me/7499>\
**Category:** Project Guidance\
**Tags:** homework\
**Created:** [January 14, 2019, 10:36am UTC](https://discourse.processing.org/t/pong-game-help-me/7499 "2019-01-14T10:36:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VLAD](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@VLAD](https://discourse.processing.org/u/VLAD)\
**Post date:** [January 14, 2019, 10:36am UTC](https://discourse.processing.org/t/pong-game-help-me/7499/1 "2019-01-14T10:36:00Z")

</div>

Hello,  
I have to do a Pong for School but i didnt know how to do it, i’m absolut beginner.  
Pls help me.  
I’ve found some code for the game but they didnt have all i want.  
And I want to understand what happen in the code so if u can explain and put codes thanks u.

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [January 14, 2019, 10:47am UTC](https://discourse.processing.org/t/pong-game-help-me/7499/2 "2019-01-14T10:47:55Z")

</div>

You will need a ball and two paddles.

Each of these things will need a size and position.

Knowing just that much, you can write some code!

The code you can write is the variables for the sizes and positions of the paddles and ball.

You can also have the `setup()` and `draw()` functions.

You should call `size()` in `setup()`.

You should call `background()` in `draw()`.

Attempt to write even this small amount of code, and post it, for more help.

---

<div class="post-metadata">

**Author:** ![VLAD](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@VLAD](https://discourse.processing.org/u/VLAD)\
**Post date:** [February 5, 2019, 5:54pm UTC](https://discourse.processing.org/t/pong-game-help-me/7499/3 "2019-02-05T17:54:32Z")

</div>

i want the line code and can u explain what did u do. I’m a absolut beginner

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 6, 2019, 1:43pm UTC](https://discourse.processing.org/t/pong-game-help-me/7499/4 "2019-02-06T13:43:30Z")

</div>

Look at the examples for motion.

Can you draw an ellipse/ball? Make it red now. Now let it fly/move by adding something to its position. Now let it reflect on screen border…

---

<div class="post-metadata">

**Author:** ![humayung](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/humayung/32/6089_2.png) [@humayung](https://discourse.processing.org/u/humayung)\
**Post date:** [February 6, 2019, 6:10pm UTC](https://discourse.processing.org/t/pong-game-help-me/7499/5 "2019-02-06T18:10:44Z")

</div>

maybe you can watch this

The Coding Train: Coding Challenge #67: Pong!

[![](https://img.youtube.com/vi/IIrC5Qcb2G4/maxresdefault.jpg "Coding Challenge #67: Pong!") ](https://www.youtube.com/watch?v=IIrC5Qcb2G4)
