I recently made a 2D sidescroller and i now want it to be on a website. The game runs via Canvas or JFrame either one. Prob Canvas hence the code.
public class Game extends Canvas implements Runnable{
But i just wanted to know how to a Java Game on a website.
EDIT: Currently my code:
public class Game extends Canvas implements Runnable{
If i change canvas to Applet
private void render() {
//This is a loop for drawing graphics repeatedly on screen
BufferStrategy bs = this.**getBufferStrategy**();
if(bs == null){
this.**createBufferStrategy**(3);
return;
}
The Bold is underlined as red.