About | Rules and Guide | Sign In/Create Account | Write a Post
Construction1990’s Internet Montage? No!
Please excuse the site weirdness. Mike is fixing and making things.
Ludum Dare 31 — Coming December 5th-8th 2014!

  • ??? Begins: in 7 days, 18 hours, 38 minutes, 2 seconds
  • October Ends: in 8 days, 18 hours, 50 minutes, 2 seconds
  • Ludum Dare 31 begins: in 43 days, 19 hours, 38 minutes, 2 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!)

    [ October Challenge 2014 | Resources | Submit/Edit | View All ]


    tip for people using processing.js

    Posted by
    April 21st, 2012 7:14 pm

    If you’re using ArrayList, don’t give it an initial value. Anotherwords don’t do this:

    ArrayList enemies;
    enemies = new ArrayList(20);

    I wasted too much time trying to figure that out. It was working fine in processing, but in the webbrowser it wasn’t working. Just leave it blank:

    ArrayList enemies;
    enemies = new ArrayList();

     

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]