Background and foreground canvas

Hi, I'm developing a Pacman clone (very original idea, I know) for mobile phone with J2ME.

I've a question about canvas: can I use a background canvas with an image and a foreground canvas with Pacman and the bad ghosts(images too)? Can I move images on the foreground canvas and render only it? And, if I do this, the game will speed up?

regards,

raf

[378 byte] By [raffaelesergi] at [2007-9-27 21:54:10]
# 1
you should. i dont know much about canvases though. try looking to se if you can make canvases tranparent by typing java.awt.Canvas into yahoo and see if it has the setOpaque method or something.
javatypo at 2007-7-7 11:36:34 > top of Java-index,Other Topics,Java Game Development...
# 2

Wrong canvas, the canvas in question is javax.mobileedition.Canvas, which like all of the Displayable in J2ME, can only have one on screen at one time.

So, no. You could use 2 pictures a background and a forground picture, which might help, as well as only redrawing the areas of the screen that changes.

Will it speed it up, quite likely, give it a go.

mlk at 2007-7-7 11:36:34 > top of Java-index,Other Topics,Java Game Development...
# 3
oh oops sorry about the wrong answer.
javatypo at 2007-7-7 11:36:34 > top of Java-index,Other Topics,Java Game Development...