我玩過draw函數,但現在我正在轉移到我碰到過磚牆的圖像。這裏是代碼: var x
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var ghost = new Image();
ghost.src = "ghost.png"
window.setTimeout(x,
我可以問你的幫助嗎?我在JPanel內部繪製圖像時遇到了一些麻煩。我用來創建擴展的JPanel類,這樣做, public class Example extends JPanel {
BufferedImage background;
public Example() {
background = loadImage();
}
pri