Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #ludumdare on irc.afternet.org (Info)

Thanks for making Ludum Dare 26 AWESOME! See you in August!

Ludum Dare 26 — April 26-29th, 2013
[ Results: Top 100 Compo, Jam | Top 25 Categories | View My Entry ]
[ View All 2346 Games (Compo Only, Jam Only) | Warmup ]

[ 10 Sec Video Compilation (x3) | 260 Game Video Compilation | IndieCade Deal | Ludum Deals (Unity Deal Ends Soon!) ]


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]