Difference between revisions of "Simple Game of Pong"

From dftwiki3
Jump to: navigation, search
 
(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 />
  

Latest revision as of 10:58, 22 November 2011

--D. Thiebaut 22:13, 21 November 2011 (EST)


  • This is a quick game of pong written in Processing.

...