processing tutorial

Nikolaus Gradwohl2009-06-19T02:02:00+00:00

I started to write a little processing tutorial, showing how to write a great sidescrolling space shooter like in this screenshot below.

please give me a little bit of feedback and show me all the great games you make with the help of my tutorial





Tweet This! submit to reddit Digg! Tags: | 19 comments | no trackbacks

See also:

howto use svg for rigged 2D-animations in processing
how to make a tentacle using processing and toxiclibs
Processing SpaceShooter ported to Processing.js
A Color-Gradient-Sliding-Puzzle in Processing
processing arkanoid clone



Leave a response

  1. Jack 2009-06-19T09:42:00+00:00

    Great! the torpedo looks especially nice. I'm going to get a lot of use out of that technique for creating the graphic.

  2. lu 2010-02-22T20:37:08+00:00

    great job!

  3. Protoboard 2010-09-04T01:35:32+00:00

    This is a very nice tutorial, it's a great application for the ones who are new to programming

  4. php flash chat 2010-09-07T10:25:29+00:00

    It was my first visit to your blog, but I admire time and effort you put into it! I have enjoyed reading many of your articles, looks like you are a professional writer! Well done! James,

  5. 2010-09-25T21:02:50+00:00

    i am gonna make paper airplane, just like helicopter game in flash in which we must click n hold to avoid it from falling

  6. medical assistant 2010-09-27T07:37:36+00:00

    Thanks for the above tutorial.

  7. Aelicia 2011-03-14T03:18:12+00:00

    The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.

  8. young 2012-05-29T02:22:24+00:00


  9. XRumerTest 2013-02-04T23:51:29+00:00

    Hello. And Bye.

  10. Will 2013-03-16T23:54:29+00:00

    i'm having a slight issue with the 'box' tab. when i try to run the program it tells me that there's and 'unexpected tooken: }' any idea what's going on?

  11. Nikolaus Gradwohl 2013-03-17T07:40:52+00:00

    "unexpected token" errors usually mean that you are mission a ";" at the end of a line

  12. Phil 2013-05-21T12:49:39+00:00

    Hey Will, Some PDF viewers truncate the code in getBox on the comet and spaceship. The error is likely coming from those methods rather than the actual Box class.

  13. Stacy 2013-10-06T03:39:10+00:00

    I am working in your Processing 2:Creative Coding.

    I am working in chapter 2. I completed the first exercise and the Kinect capture worked. When I added the code for the second exercise (code below) I get an error saying: Cannot find anything named "SimpleOpenNI.SKEL_PROFILE_ALL" if change the function to context.enableUser(); then I get an error saying: The function getUserPixels(int) does not exist. Can you tell me what is going wrong and how to fix it? Thanks, Stacy import SimpleOpenNI.*;

    SimpleOpenNI context;

    int player = -1;

    void setup() { size( 640,480 ); context = new SimpleOpenNI( this ); context.setMirror( true ); context.enableDepth(); context.enableUser( SimpleOpenNI.SKEL_PROFILE_ALL ); }

    void draw() { context.update(); image( context.depthImage(), 0, 0 );

    loadPixels(); if ( player != -1 ) { int[] userPixels = context.getUsersPixels( player );

    for( int p = 0; p < width * height; p++) {
      if ( userPixels[p] != 0 ) {
        pixels[p] = color( 0, green( pixels[p] ), 0 );    

    } updatePixels(); }

    void onNewUser( int userId ) { println( "new user " + userId ); player = userId;

    void onLostUser( int userId ) { println( "lost user " + userId ); if ( userId == player ) { player = -1; } }

  14. MEENAKSHI 2014-01-31T07:50:54+00:00

    This is a very nice tutorial. Got many useful tips and techniques for creating the graphic. This little processing tutorial shows how to write a great side scrolling space shooter. Games that can be made using your tutorial guide.

  15. Warhus Druck GbR 2015-01-07T10:47:51+00:00

    Hey Will, Some PDF viewers truncate the code in getBox on the comet and spaceship. The error is likely coming from those methods rather than the actual Box class.

  16. Sam 2016-11-08T04:44:52+00:00

    Nice blog. Found this while searching through google

  17. Laurence Arlidge 2016-11-21T12:32:13+00:00

    It must be five years since I discovered your page. Glad I did. Thank you for your efforts and sharing. It has been a great help. Regards.

  18. apc 2017-09-11T23:42:52+00:00

    I downloaded your processing tutorial. Your tutorial is the only one of its kind that covers essential Processing in a simplified form in a concise guide. Other tutorials/books that I have found make simple things very complicated, yet they do not move beyond the basics. Kudos. Great work. Your guide was an immense help. Thank you !

  19. apc 2017-09-11T23:43:48+00:00

    In the last comment, I meant your Processing e-book.

Leave a comment