Difference between revisions of "Simple Game of Pong"
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
* This is a quick game of pong written in [http://processing.org Processing]. | * This is a quick game of pong written in [http://processing.org Processing]. | ||
− | + | <onlydft> | |
<source lang="java"> | <source lang="java"> | ||
// pong.pde | // pong.pde | ||
Line 55: | Line 55: | ||
fill( 255 ); | fill( 255 ); | ||
stroke( 255 ); | stroke( 255 ); | ||
− | ellipse( ballX, ballY, radius, radius ); | + | ellipse( ballX, ballY, radius*2, radius*2 ); |
//--- draw paddle --- | //--- draw paddle --- | ||
Line 64: | Line 64: | ||
</source> | </source> | ||
− | + | </onlydft> | |
<br /> | <br /> | ||