So I ran out of memory. Does anyone know why? Here's my error:
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:470)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:186)
at greenfoot.util.GraphicsUtilities.createCompatibleTranslucentImage(GraphicsUtilities.java:179)
at greenfoot.GreenfootImage.scale(GreenfootImage.java:403)
at FadeOverlay.addedToWorld(FadeOverlay.java:10)
at greenfoot.World.addObject(World.java:408)
at XEngine.<init>(XEngine.java:24)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
at XEngine.<init>(XEngine.java:26)
at MainMenu.<init>(MainMenu.java:10)
Thank you.