ok, done, this one is SOLVED.
Big thanks to Norm. :)
Type: Posts; User: scorpas
ok, done, this one is SOLVED.
Big thanks to Norm. :)
if i understand what u asking, then:
i have array list of blocks (bricks).
when an applet is running blocks are destroying by a ball collision. So yes, list are changing while the game is playing....
i understand that, but can't figure out, how to load images only once.
i do load same image for all blocks. and sometimes when the ball hits a block, errors appears:
Exception in thread...
sleep change the speed of an applet, but lag still remains.
i guess it is something with repaint() method.
Yeah. Finally, u are genius, man!!! \m/
THANK YOU!
It works, but its very laggy :D
any ideas how to fix lag? :(
an app for a PC (my task is to create something who works on Linux). Runnable from .jar file after double clicks on it.
as I said, my images are in 'this_project/src/images' folder.
display existing ones.
the problem is, that i don't understand ur suggestion.
my applet is in Main class...
i tried to create in the Main class getCodeBase() and getDocumentBase() methods. ...
is there any other ways/methods to draw images?
package Zaidimas;
import java.applet.AppletContext;
import java.applet.AppletStub;
import java.net.URL;
public class MyStub implements AppletStub {
Main applet = new Main();...
first of all, i cant create constructor like that: applet = new YourApplet();
that's the way how i create it: YourApplet applet = new YourApplet();
but i got error here: yourApplet.setStub(new...
damn, im just a rookie in programming, ur language is too good to understand for me ...
package Zaidimas;
import java.applet.AppletContext;
import java.applet.AppletStub;
import...
Where can i find any example how those methods are useing?
But i'm creating it not for the web or browsers...
That just a simple java game, that will be runnable from .jar file.
Anyway, i don't get it how i cant provide it.
I need to use this method: ...
ok, i did that.
My JFrame works like that: I press run (Window) on Eclipse, JFrame appears, then i click Start button, and applet shows up in the same window.
So it runs good, but when i press...
Hi guys,
i'm new here and i am new in java and using ECLIPSE.
So, very shortly. The problem is explained in the title.
In an applet my mini game looks like this: single Applet
As u can see,...